X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-daemon-v1.h;h=d199a486b4fb7ba0c4e4d0c7693d76c0464a7756;hb=f8ca7444353ca2ea3384d53482219e26f624b7d8;hp=7fc2c23518b6bd23a793672986329e435c45c661;hpb=550b36945f2e9eae1fc4b822ea9a00a2a866eb83;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-daemon-v1.h b/include/afb/afb-daemon-v1.h index 7fc2c235..d199a486 100644 --- a/include/afb/afb-daemon-v1.h +++ b/include/afb/afb-daemon-v1.h @@ -17,7 +17,7 @@ #pragma once -#include "afb-daemon-common.h" +#include "afb-daemon-itf.h" /* * Retrieves the common systemd's event loop of AFB @@ -191,3 +191,13 @@ static inline int afb_daemon_rename_api_v1(struct afb_daemon daemon, const char return daemon.itf->rename_api(daemon.closure, name); } +static inline int afb_daemon_new_api_v1( + struct afb_daemon daemon, + const char *api, + const char *info, + int noconcurrency, + int (*preinit)(void*, struct afb_dynapi *), + void *closure) +{ + return daemon.itf->new_api(daemon.closure, api, info, noconcurrency, preinit, closure); +}