X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-daemon-v2.h;fp=include%2Fafb%2Fafb-daemon-v2.h;h=186fc6d6c70ea92d897e54edac7f9c8b74f53e6a;hb=59cd34b59853f6a47e756d7ab5bc0329f40a471c;hp=1451a0976d03daa1c31685122e0e7f47e18f92b3;hpb=325e6a7f034c80562096d60ab01f2e4532eea98c;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-daemon-v2.h b/include/afb/afb-daemon-v2.h index 1451a097..186fc6d6 100644 --- a/include/afb/afb-daemon-v2.h +++ b/include/afb/afb-daemon-v2.h @@ -168,3 +168,12 @@ static inline int afb_daemon_rename_api_v2(const char *name) return afb_get_daemon_v2().itf->rename_api(afb_get_daemon_v2().closure, name); } +static inline int afb_daemon_new_api_v2( + const char *api, + const char *info, + int (*preinit)(void*, struct afb_dynapi *), + void *closure) +{ + return afb_get_daemon_v2().itf->new_api(afb_get_daemon_v2().closure, api, info, preinit, closure); +} +