summaryrefslogtreecommitdiffstats
path: root/binding/src/binding-api.h
diff options
context:
space:
mode:
authorLi, Xiaoming <lixm.fnst@cn.fujitsu.com>2020-06-22 11:07:30 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2020-07-21 12:31:15 +0000
commitabb024ffcbf800a51dc7a7c513611141d82b2a3b (patch)
treed527d9ffb743460058ef3f275cd063efcb65a9d8 /binding/src/binding-api.h
parent0c6f41e5965d0013cd871659c52c9abb1057550c (diff)
The test folder should rest in the root of a package. Bug-AGL: SPEC-2807 Change-Id: I6e44e68f40aaf58d2c59973e6a2413947dcb4eaf Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'binding/src/binding-api.h')
-rw-r--r--binding/src/binding-api.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/binding/src/binding-api.h b/binding/src/binding-api.h
deleted file mode 100644
index e274f9a..0000000
--- a/binding/src/binding-api.h
+++ /dev/null
@@ -1,49 +0,0 @@
-#pragma once
-
-#ifndef AFB_BINDING_VERSION
-#define AFB_BINDING_VERSION 3
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <afb/afb-binding.h>
-
-extern afb_event_t gEventRequestReceived;
-extern afb_event_t gEventResponseReceived;
-
-// Verbs
-extern void send_request(afb_req_t req);
-extern void request_processed(afb_req_t req);
-extern void subscribe_requests(afb_req_t req);
-extern void unsubscribe_requests(afb_req_t req);
-extern void subscribe_responses(afb_req_t req);
-extern void unsubscribe_responses(afb_req_t req);
-
-#define POIAPI_BINDING_API_NAME "poi"
-
-#define POIAPI_BINDING_VERB_SEND_REQUEST "send-request"
-#define POIAPI_BINDING_VERB_REQUEST_PROCESSED "request-processed"
-#define POIAPI_BINDING_VERB_SUBSCRIBE_REQUESTS "subscribe-requests"
-#define POIAPI_BINDING_VERB_UNSUBSCRIBE_REQUESTS "unsubscribe-requests"
-#define POIAPI_BINDING_VERB_SUBSCRIBE_RESPONSES "subscribe-responses"
-#define POIAPI_BINDING_VERB_UNSUBSCRIBE_RESPONSES "unsubscribe-responses"
-
-#define POIAPI_BINDING_EVENT_REQUEST_RECEIVED "reqest-received-event"
-#define POIAPI_BINDING_EVENT_RESPONSE_RECEIVED "response-received-event"
-
-// Some definitions is not used in this project
-
-#define POIAPI_BINDING_PARAMETER_KEY_REQUEST_ID "request-id"
-#define POIAPI_BINDING_PARAMETER_KEY_REQUEST_OBJECT "request-object"
-#define POIAPI_BINDING_PARAMETER_KEY_RESPONSE_OBJECT "response-object"
-
-#define POIAPI_BINDING_REQUEST_OBJECT_KEY_REQUEST_TYPE "request-type"
-#define POIAPI_BINDING_REQUEST_OBJECT_KEY_REQUEST_PARAMETER "request-parameter"
-
-#define POIAPI_BINDING_REQUEST_TYPE_EXTERNAL_ONLINE_REQUEST_HTTP_GET_JSON "external-online-request-http-get-json"
-
-#ifdef __cplusplus
-} // extern "C"
-#endif