summaryrefslogtreecommitdiffstats
path: root/include/proto-def.h
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-09 01:27:23 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-09 01:27:23 +0100
commitb55efc33fb8df8b0518570b2584b6da9abb3221b (patch)
treeef09396c903355a7d61d57e029f13af90f3ffa3e /include/proto-def.h
parent6458b6eb67426974e9a3b8eed1f5620f0de0efc5 (diff)
Added POST, Plugin API signal protection, refactor HTML5 rewrite
Diffstat (limited to 'include/proto-def.h')
-rw-r--r--include/proto-def.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/proto-def.h b/include/proto-def.h
index d1b0c3fb..3e1d1c38 100644
--- a/include/proto-def.h
+++ b/include/proto-def.h
@@ -21,9 +21,15 @@
*/
// Rest-api
-PUBLIC json_object* pingSample (AFB_plugin *plugin, AFB_session *session, AFB_request *post);
+
+PUBLIC json_object* apiPingTest(AFB_session *session, AFB_request *request, void* handle);
PUBLIC const char* getQueryValue (AFB_request * request, char *name);
-PUBLIC int doRestApi(struct MHD_Connection *connection, AFB_session *session, const char *method, const char* url);
+PUBLIC const char* getQueryAll(AFB_request * request, char *query, size_t len);
+
+
+PUBLIC int doRestApi(struct MHD_Connection *connection, AFB_session *session, const char* url, const char *method
+ , const char *upload_data, size_t *upload_data_size, void **con_cls);
+
void initPlugins (AFB_session *session);
typedef AFB_plugin* (*AFB_pluginCB)(AFB_session *session);