summaryrefslogtreecommitdiffstats
path: root/include/proto-def.h
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-21 16:33:23 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-21 16:33:23 +0100
commit5472e85501418302959040eacb819c57f849d63e (patch)
treef2f7d5e7b67b1ae73184137e418106c9b21a78cd /include/proto-def.h
parent33c9353cce432422fea4ba61ab17b20dd8cfe800 (diff)
Hack --plugins=path
Diffstat (limited to 'include/proto-def.h')
-rw-r--r--include/proto-def.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/proto-def.h b/include/proto-def.h
index 937d6930..ac4f21b9 100644
--- a/include/proto-def.h
+++ b/include/proto-def.h
@@ -17,19 +17,20 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: $
*/
-// Rest-api
-
-PUBLIC json_object* apiPingTest(AFB_request *request);
+// helper-api
+PUBLIC json_object* getPingTest(AFB_request *request);
PUBLIC const char* getQueryValue (AFB_request * request, char *name);
PUBLIC int getQueryAll(AFB_request * request, char *query, size_t len);
+PUBLIC AFB_PostHandle* getPostHandle (AFB_request *request);
+PUBLIC json_object* getPostFile (AFB_request *request, AFB_PostItem *item, char* destination) ;
+PUBLIC AFB_PostCtx* getPostContext (AFB_request *request);
+// rest-api
PUBLIC void endPostRequest(AFB_PostHandle *posthandle);
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);
-PUBLIC AFB_PostHandle* getPostHandle (AFB_request *request);
void initPlugins (AFB_session *session);