X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-daemon-v2.h;h=4b8399c4488e978fb5093a8c87db2107fb5c51c6;hb=refs%2Fchanges%2F57%2F14357%2F1;hp=186fc6d6c70ea92d897e54edac7f9c8b74f53e6a;hpb=59cd34b59853f6a47e756d7ab5bc0329f40a471c;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-daemon-v2.h b/include/afb/afb-daemon-v2.h index 186fc6d6..4b8399c4 100644 --- a/include/afb/afb-daemon-v2.h +++ b/include/afb/afb-daemon-v2.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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 @@ -171,9 +171,10 @@ static inline int afb_daemon_rename_api_v2(const char *name) static inline int afb_daemon_new_api_v2( const char *api, const char *info, + int noconcurrency, 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); + return afb_get_daemon_v2().itf->new_api(afb_get_daemon_v2().closure, api, info, noconcurrency, preinit, closure); }