summaryrefslogtreecommitdiffstats
path: root/bindings/tutorial/tuto-4.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/tutorial/tuto-4.c')
-rw-r--r--bindings/tutorial/tuto-4.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/bindings/tutorial/tuto-4.c b/bindings/tutorial/tuto-4.c
deleted file mode 100644
index cb909fd0..00000000
--- a/bindings/tutorial/tuto-4.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#define AFB_BINDING_VERSION 3
-#include <afb/afb-binding.h>
-
-void hello(afb_req_t req)
-{
- AFB_REQ_DEBUG(req, "hello world");
- afb_req_reply(req, NULL, NULL, "hello world");
-}
-
-const afb_verb_t verbs[] = {
- { .verb="hello", .callback=hello },
- { .verb=NULL }
-};
-
-
-static int init(afb_api_t api)
-{
- int rc = afb_api_require_api(api, "hello", 1);
- if (!rc)
- rc = afb_api_call_sync(api, "hello", "ping", NULL, NULL, NULL, NULL);
- return rc;
-}
-
-const afb_binding_t afbBindingExport = {
- .api = "tuto-4",
- .verbs = verbs,
- .init = init
-};
-