1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#include "nfc-binding.h"
/*
static const struct afb_auth nfc_auths[] = {
};
*/
static const struct afb_verb_v2 nfc_verbs[] = {
{
.verb = "subscribe",
.callback = verb_subscribe,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
.verb = "unsubscribe",
.callback = verb_unsubscribe,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
.verb = "list-devices",
.callback = verb_list_devices,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
.verb = "list-devices-capabilities",
.callback = verb_list_devices_capabilities,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
.verb = "start",
.callback = verb_start,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
.verb = "stop",
.callback = verb_stop,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{ .verb = NULL }
};
const struct afb_binding afbBindingV2 = {
.api = "nfc",
.specification = NULL,
.info = NULL,
.verbs = nfc_verbs,
.preinit = NULL,
.init = init,
.onevent = NULL,
.noconcurrency = 0
};
|