aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-19 11:06:51 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:15 +0200
commitd8a55daf9d4d22245f5362f32c42f591ac2faaa6 (patch)
treeac5eccf747d60fa70ebb6a27e45d8e759c7031bb
parent5a238d940fa5b093ec2728a958079c486a1c8927 (diff)
Use latest version of app-controller-submodule submodule.
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 <sebastien.douheret@iot.bzh>
-rw-r--r--.vscode/settings.json3
m---------app-controller-submodule0
-rw-r--r--src/harvester-binding.c4
-rw-r--r--src/plugins/influxdb-writer.c2
4 files changed, 5 insertions, 4 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
-Subproject 4a723022410de1a72b03a4901537af4e0d27397
+Subproject c04f0292f9dd0ef4cc26179ace0c733f9af4d16
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);