X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.h;h=6bc849865fa243219f7b2c235bc6c3985ddb0f36;hb=95c29ef579d6320a721f96d7146efd10f74a201b;hp=2af76d2803722413cd4079469bed8e6504f5dcaa;hpb=e9040472b72ff699964d89dda03ef07ce72b487b;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.h b/src/afb-ditf.h index 2af76d28..6bc84986 100644 --- a/src/afb-ditf.h +++ b/src/afb-ditf.h @@ -15,36 +15,23 @@ * limitations under the License. */ -#define _GNU_SOURCE -#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO - -#include -#include -#include - -#include - -#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" +#pragma once +struct afb_binding_interface_v1; +struct afb_binding_data_v2; struct afb_ditf { int version; const char *prefix; union { - struct afb_binding_interface_v1 interface; - struct afb_daemon daemon; + struct afb_binding_interface_v1 *v1; + struct afb_binding_data_v2 *v2; }; }; -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_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);