From d8a55daf9d4d22245f5362f32c42f591ac2faaa6 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 19 Jun 2018 11:06:51 +0200 Subject: Use latest version of app-controller-submodule submodule. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes of app-controller-submodule: (c04f029 - Sebastien Douheret) Fixed hidden bound variable (apiHandle) (cfe3919 - Sebastien Douheret) Fixed null value when push Lua arguments (69c0585 - José Bollo) Adjust to compile with incoming bindings v3 (d7e260c - José Bollo) Remove declaration to not existing functions (8ac6625 - Romain Forlot) Add 2 lua utilities function (d3504bb - Jonathan Aillet) Update README.md for new metadata keys. (690bdee - Jonathan Aillet) Fix a compilation issue due to modif of AFB_ReqSuccess (4063ff0 - Clément Bénier) README:md: update README accordingly to new json scheme. (e9f423a - Sebastien Douheret) Fixed crash due to call to json_object_put (ce3e14c - Sebastien Douheret) Fix segfault when printing long message from lua (6838dff - Sebastien Douheret) Fixed spelling of AFB_ReqSuccess (5b079d4 - Jonathan Aillet) Remove an unnecessary variable (ddd10be - Jonathan Aillet) Make parsing of action loading non blocking (540522a - Jonathan Aillet) Use an external file for app fw functions link (50feaf0 - Jonathan Aillet) Use macro to test request validity (bcd9efc - Sebastien Douheret) Fixed build warnings with gcc >= 7.3 (0e30275 - Jonathan Aillet) Increase lua script max message size (263731b - Jonathan Aillet) Prevent lost of config file path when searching (8ce6d20 - Jonathan Aillet) Correct way that api actions are handled in controller (64671ea - Jonathan Aillet) Handle more metadata in the controller. (53bc4e4 - Jonathan Aillet) Add possibility to set prefix to NULL in CtlConfigScan Change-Id: I25e46f4bf84f988035faaeb35fac7904d0231429 Signed-off-by: Sebastien Douheret --- .vscode/settings.json | 3 ++- app-controller-submodule | 2 +- src/harvester-binding.c | 4 ++-- src/plugins/influxdb-writer.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9dedb11..c3827a8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -23,7 +23,8 @@ "tsdb.h": "c", "ctl-plugin.h": "c", "escape.h": "c", - "ostream": "c" + "ostream": "c", + "harvester-binding.h": "c" }, "C_Cpp.intelliSenseEngineFallback": "Disabled", "C_Cpp.errorSquiggles": "Disabled", diff --git a/app-controller-submodule b/app-controller-submodule index 4a72302..c04f029 160000 --- a/app-controller-submodule +++ b/app-controller-submodule @@ -1 +1 @@ -Subproject commit 4a723022410de1a72b03a4901537af4e0d27397b +Subproject commit c04f0292f9dd0ef4cc26179ace0c733f9af4d163 diff --git a/src/harvester-binding.c b/src/harvester-binding.c index c5d0602..679767c 100644 --- a/src/harvester-binding.c +++ b/src/harvester-binding.c @@ -41,7 +41,7 @@ static void ctrlapi_ping(AFB_ReqT request) { count++; AFB_ReqNotice(request, "Controller:ping count=%d", count); - AFB_ReqSucess(request, json_object_new_int(count), NULL); + AFB_ReqSuccess(request, json_object_new_int(count), NULL); return; } @@ -49,7 +49,7 @@ static void ctrlapi_ping(AFB_ReqT request) { void ctrlapi_auth(AFB_ReqT request) { AFB_ReqSetLOA(request, 1); - AFB_ReqSucess(request, NULL, NULL); + AFB_ReqSuccess(request, NULL, NULL); } static AFB_ApiVerbs CtrlApiVerbs[] = { diff --git a/src/plugins/influxdb-writer.c b/src/plugins/influxdb-writer.c index c1f8abd..dd0da97 100644 --- a/src/plugins/influxdb-writer.c +++ b/src/plugins/influxdb-writer.c @@ -28,7 +28,7 @@ void influxdb_write_curl_cb(void* closure, int status, CURL* curl, const char* r switch (rep_code) { case 204: AFB_ReqDebug(request, "Request correctly written"); - AFB_ReqSucess(request, NULL, "Request has been successfully written"); + AFB_ReqSuccess(request, NULL, "Request has been successfully written"); break; case 400: AFB_ReqFail(request, "Bad request", result); -- cgit 1.2.3-korg