X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.h;h=2af76d2803722413cd4079469bed8e6504f5dcaa;hb=e000e3b73ee0582882324e504fe2dae7386534f8;hp=ad8c99206a77f0b1457c7985e5000acb448d4dfd;hpb=b529ded85a3e50a1aa6529e870b2e2f43e377ca2;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.h b/src/afb-ditf.h index ad8c9920..2af76d28 100644 --- a/src/afb-ditf.h +++ b/src/afb-ditf.h @@ -16,7 +16,7 @@ */ #define _GNU_SOURCE -#define NO_BINDING_VERBOSE_MACRO +#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO #include #include @@ -24,7 +24,6 @@ #include -#include "afb-apis.h" #include "afb-svc.h" #include "afb-evt.h" #include "afb-common.h" @@ -34,15 +33,18 @@ #include "verbose.h" -struct afb_binding_interface; - struct afb_ditf { - struct afb_binding_interface interface; + int version; const char *prefix; + union { + struct afb_binding_interface_v1 interface; + struct afb_daemon daemon; + }; }; -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); +extern void afb_ditf_init_v2(struct afb_ditf *ditf, const char *prefix); extern void afb_ditf_rename(struct afb_ditf *ditf, const char *prefix); extern void afb_ditf_update_hook(struct afb_ditf *ditf);