summaryrefslogtreecommitdiffstats
path: root/src/test-binding.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-06-29 19:42:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:12:14 +0200
commitdc63d731f884da11cb0fc2d3b98eef5e2c2c07bc (patch)
tree09b095334b9e0b57574e8d31df033c61ed53c735 /src/test-binding.c
parent06e96704868d7b13c1e8e296ce1b262069ca9b4a (diff)
First draft for mock apis
An m(ock)api is a plugin with its action as verb. About now the event listener is the same then the main api Change-Id: Iadbbb60cfbe9d5ef85801c346e6565ccde92b0c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/test-binding.c')
-rw-r--r--src/test-binding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test-binding.c b/src/test-binding.c
index 1668360..d0fcb3c 100644
--- a/src/test-binding.c
+++ b/src/test-binding.c
@@ -22,7 +22,7 @@
#include <time.h>
#include "test-binding.h"
-#include "fapis.h"
+#include "mapis.h"
// default api to print log when apihandle not avaliable
afb_dynapi *AFB_default;
@@ -31,7 +31,7 @@ static CtlSectionT ctrlSections[] = {
{.key = "resources", .loadCB = PluginConfig},
{.key = "onload", .loadCB = OnloadConfig},
{.key = "events", .loadCB = EventConfig},
- {.key = "fapis", .loadCB = FapisConfig},
+ {.key = "mapis", .loadCB = mapisConfig},
{.key = NULL}
};
@@ -114,7 +114,7 @@ int afbBindingVdyn(afb_dynapi *apiHandle) {
if (!dirList)
dirList = CONTROL_CONFIG_PATH;
- configPath = CtlConfigSearch(apiHandle, dirList, "");
+ configPath = CtlConfigSearch(apiHandle, dirList, "aft");
if (!configPath) {
AFB_ApiError(apiHandle, "CtlPreInit: No %s* config found in %s ", GetBinderName(), dirList);
return ERROR;