X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.h;h=5b8dbf5a2de829201f571971a533055a457863ea;hb=a63851bb4726c89d9a3c5755d78d1c4bbc3f3b2e;hp=7d56c604bb4e01a57878fe26eb065375e4f57dec;hpb=e62227977bbc161d2d0ae49951f9a4fbf02a354e;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.h b/src/afb-ditf.h index 7d56c604..5b8dbf5a 100644 --- a/src/afb-ditf.h +++ b/src/afb-ditf.h @@ -15,33 +15,23 @@ * limitations under the License. */ -#define _GNU_SOURCE -#define NO_BINDING_VERBOSE_MACRO +#pragma once -#include -#include -#include - -#include - -#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_binding_interface interface; - const char *prefix; + int version; + const char *api; + 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_rename(struct afb_ditf *ditf, const char *prefix); +extern void afb_ditf_init_v1(struct afb_ditf *ditf, const char *api, struct afb_binding_interface_v1 *itf); +extern void afb_ditf_init_v2(struct afb_ditf *ditf, const char *api, struct afb_binding_data_v2 *data); +extern void afb_ditf_rename(struct afb_ditf *ditf, const char *api); +extern void afb_ditf_update_hook(struct afb_ditf *ditf);