X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-ditf.h;h=6bc849865fa243219f7b2c235bc6c3985ddb0f36;hb=52384789f904e7ebbfb901e15cc62521c9b9468f;hp=7d56c604bb4e01a57878fe26eb065375e4f57dec;hpb=e62227977bbc161d2d0ae49951f9a4fbf02a354e;p=src%2Fapp-framework-binder.git diff --git a/src/afb-ditf.h b/src/afb-ditf.h index 7d56c604..6bc84986 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; + int version; 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);