Update copyright dates
[src/app-framework-binder.git] / include / afb / afb-req-v2.h
index 34cbbda..9657796 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
 
 #pragma once
 
-#include "afb-req.h"
+#include "afb-req-x1.h"
 
-/*
+/** @addtogroup AFB_REQ
+ *  @{ */
+
+/**
+ * @deprecated use bindings version 3
+ *
  * Stores 'req' on heap for asynchrnous use.
  * Returns a handler to the stored 'req' or NULL on memory depletion.
  * The count of reference to 'req' is incremented on success
  * (see afb_req_addref).
  */
-static inline struct afb_stored_req *afb_req_store_v2(struct afb_req req)
+static inline struct afb_stored_req *afb_req_x1_store_v2(struct afb_req_x1 req)
 {
-       return req.itf->store(req.closure);
+       return req.itf->legacy_store_req(req.closure);
 }
 
+
+/** @} */