From 0455a7401f9f0f9bfad82c5ddf04f7dd70b0b852 Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Tue, 11 Jul 2017 06:36:33 +0200 Subject: first somewhat working version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3101dc6b8add87eccac3bbf177b1320137f72463 Signed-off-by: Loïc Collignon --- binding/identity-binding.c | 96 ---------------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 binding/identity-binding.c (limited to 'binding/identity-binding.c') diff --git a/binding/identity-binding.c b/binding/identity-binding.c deleted file mode 100644 index a0e9232..0000000 --- a/binding/identity-binding.c +++ /dev/null @@ -1,96 +0,0 @@ -#define _GNU_SOURCE -#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO - -#include -#include -#include -#include -#include - -// ---------- Verb's declaration ---------------------------------------------- -static void verb_login(struct afb_req req); -static void verb_logout(struct afb_req req); -static void verb_open_session(struct afb_req req); -static void verb_close_session(struct afb_req req); -static void verb_set_data(struct afb_req req); -static void verb_get_data(struct afb_req req); - -// ---------- Binding's metadata ---------------------------------------------- -static const struct afb_auth _afb_auth_v2_identity[] = {}; - -static const struct afb_verb_v2 _afb_verbs_v2_identity[] = -{ - { - .verb = "login", - .callback = verb_login, - .auth = NULL, - .session = 0, - }, - { - .verb = "logout", - .callback = verb_logout, - .auth = NULL, - .session = 0, - }, - { - .verb = "open_session", - .callback = verb_open_session, - .auth = NULL, - .session = 0, - }, - { - .verb = "close_session", - .callback = verb_close_session, - .auth = NULL, - .session = 0, - }, - { - .verb = "get_data", - .callback = verb_get_data, - .auth = NULL, - .session = 0, - }, - { - .verb = "set_data", - .callback = set_data, - .auth = NULL, - .session = 0, - }, - { .verb = NULL } -}; - -static const struct afb_binding_v2 _afb_binding_v2_identity = -{ - .api = "identity", - .specification = NULL, - .verbs = _afb_verbs_v2_identity, - .preinit = NULL, - .init = NULL, - .onevent = NULL -}; - -// ---------- Verb's implementation ------------------------------------------- - -static void verb_login(struct afb_req req) -{ -} - -static void verb_logout(struct afb_req req) -{ -} - -static void verb_open_session(struct afb_req req) -{ -} - -static void verb_close_session(struct afb_req req) -{ -} - -static void verb_get_data(struct afb_req req) -{ -} - -static void verb_set_data(struct afb_req req) -{ -} -- cgit 1.2.3-korg