Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bindings V2: migration of HelloWorld binder
[src/app-framework-binder.git]
/
src
/
afb-ditf.h
diff --git
a/src/afb-ditf.h
b/src/afb-ditf.h
index
ad8c992
..
6bc8498
100644
(file)
--- a/
src/afb-ditf.h
+++ b/
src/afb-ditf.h
@@
-15,34
+15,23
@@
* limitations under the License.
*/
* limitations under the License.
*/
-#define _GNU_SOURCE
-#define NO_BINDING_VERBOSE_MACRO
+#pragma once
-#include <string.h>
-#include <dlfcn.h>
-#include <assert.h>
-
-#include <afb/afb-binding.h>
-
-#include "afb-apis.h"
-#include "afb-svc.h"
-#include "afb-evt.h"
-#include "afb-common.h"
-#include "afb-context.h"
-#include "afb-api-so.h"
-#include "afb-xreq.h"
-#include "verbose.h"
-
-
-struct afb_binding_interface;
+struct afb_binding_interface_v1;
+struct afb_binding_data_v2;
struct afb_ditf
{
struct afb_ditf
{
-
struct afb_binding_interface interface
;
+
int version
;
const char *prefix;
const char *prefix;
+ union {
+ struct afb_binding_interface_v1 *v1;
+ struct afb_binding_data_v2 *v2;
+ };
};
};
-extern void afb_ditf_init(struct afb_ditf *ditf, const char *prefix);
+extern void afb_ditf_init_v1(struct afb_ditf *ditf, const char *prefix, struct afb_binding_interface_v1 *itf);
+extern void afb_ditf_init_v2(struct afb_ditf *ditf, const char *prefix, struct afb_binding_data_v2 *data);
extern void afb_ditf_rename(struct afb_ditf *ditf, const char *prefix);
extern void afb_ditf_update_hook(struct afb_ditf *ditf);
extern void afb_ditf_rename(struct afb_ditf *ditf, const char *prefix);
extern void afb_ditf_update_hook(struct afb_ditf *ditf);