summaryrefslogtreecommitdiff
path: root/include/nfct.h
blob: 5548b03635549c26bc35875d6e8bc4c52c431235 (plain)
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
#ifndef _NFCT_H_
#define _NFCT_H_

enum {
	NFCT_SUBSYS_NONE = 0,
	NFCT_SUBSYS_TIMEOUT,
	NFCT_SUBSYS_HELPER,
	NFCT_SUBSYS_VERSION,
	NFCT_SUBSYS_HELP,
};

enum {
	NFCT_CMD_NONE = 0,
	NFCT_CMD_LIST,
	NFCT_CMD_ADD,
	NFCT_CMD_DELETE,
	NFCT_CMD_GET,
	NFCT_CMD_FLUSH,
	NFCT_CMD_DISABLE,
};

void nfct_perror(const char *msg);

int nfct_cmd_timeout_parse_params(int argc, char *argv[]);
int nfct_cmd_timeout_list(int argc, char *argv[]);
int nfct_cmd_timeout_add(int argc, char *argv[]);
int nfct_cmd_timeout_delete(int argc, char *argv[]);
int nfct_cmd_timeout_get(int argc, char *argv[]);
int nfct_cmd_timeout_flush(int argc, char *argv[]);

int nfct_cmd_helper_parse_params(int argc, char *argv[]);
int nfct_cmd_helper_list(int argc, char *argv[]);
int nfct_cmd_helper_add(int argc, char *argv[]);
int nfct_cmd_helper_delete(int argc, char *argv[]);
int nfct_cmd_helper_get(int argc, char *argv[]);
int nfct_cmd_helper_flush(int argc, char *argv[]);
int nfct_cmd_helper_disable(int argc, char *argv[]);

#endif