diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-09 14:31:48 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-21 12:55:18 +0200 |
commit | 68c4abd337246eb03ffab9366764e565820494a3 (patch) | |
tree | e6afeccd866ac2f11ec738d21bd7e62afc3cc0d3 /src/mapis.c | |
parent | 5fea6a5fec23527173df1901e4cdf4481223c1a0 (diff) |
Migration to binding version 3
For compatibility between different binding versions
Submodule app-controller-submodule e3f2c45...4386ec5:
> Migration to v3
> Adds v3 function to get binding settings
> New function returning the binding root directory
> Change the default GLOB pattern
> Fix wrong computed length
> Add path to the installed widget path.
> Controller: Converted README to a gitbook version.
Submodule conf.d/app-templates 9c1a0fb..f0b24b0:
> Rollback about TEST build type
> Adding a TEST build type
> Change default compilation options.
> Test widget only if there are test materials
> Handles more test LABELS.
> Missing flag for COVERAGE build type
> Create a test widget
Change-Id: I4f96cc6773ec4da7eba96f243d6bf06170ef0cb0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/mapis.c')
-rw-r--r-- | src/mapis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapis.c b/src/mapis.c index ba524a0..ba72857 100644 --- a/src/mapis.c +++ b/src/mapis.c @@ -32,7 +32,7 @@ static int LoadOneMapi(void *data, AFB_ApiT apiHandle) { int savedCount = 0, count = 0, idx = 0; CtlActionT *savedActions = NULL, *newActions = NULL; struct mapisHandleT *mapisHandle = (struct mapisHandleT*)data; - CtlConfigT *ctrlConfig = afb_api_get_userdata(mapisHandle->mainApiHandle); + CtlConfigT *ctrlConfig = AFB_ApiGetUserData(mapisHandle->mainApiHandle); if(PluginConfig(apiHandle, mapisHandle->section, mapisHandle->mapiJ)) { AFB_ApiError(apiHandle, "Problem loading the plugin as an API for %s, see log message above", json_object_get_string(mapisHandle->mapiJ)); @@ -85,7 +85,7 @@ static int LoadOneMapi(void *data, AFB_ApiT apiHandle) { } // declare an event event manager for this API; - afb_api_on_event(apiHandle, CtrlDispatchApiEvent); + AFB_ApiOnEvent(apiHandle, CtrlDispatchApiEvent); return 0; } @@ -114,7 +114,7 @@ static void OneMapiConfig(void *data, json_object *mapiJ) { json_object_object_del(mapiJ, "events"); mapisHandle->mapiJ = mapiJ; - if (!afb_api_new_api(mapisHandle->mainApiHandle, uid, info, 1, LoadOneMapi, (void*)mapisHandle)) + if (!AFB_NewApi(mapisHandle->mainApiHandle, uid, info, 1, LoadOneMapi, (void*)mapisHandle)) AFB_ApiError(mapisHandle->mainApiHandle, "Error creating new api: %s", uid); } } |