X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.h;h=2af76d2803722413cd4079469bed8e6504f5dcaa;hb=0609e7481a2c2ab475ebd3cba60ce88eb53ddd20;hp=3e8d99a7ee104c2d556698057fccec55fe3c6624;hpb=a8e971702f23ee67e02b4716ad4159f12cefdca6;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.h b/src/afb-ditf.h index 3e8d99a7..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 @@ -33,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);