blob: 5ca49d4a373e041f638683a827a5b3844d257d69 (
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
|
#ifndef _RFIDTOOL_H
#define _RFIDTOOL_H
#define _GNU_SOURCE
#include <getopt.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
extern const char *
hexdump(const void *data, unsigned int len);
extern int
hexread(unsigned char *result, const unsigned char *in, unsigned int len);
extern struct rfid_reader_handle *rh;
extern struct rfid_layer2_handle *l2h;
extern struct rfid_protocol_handle *ph;
extern int reader_init(void);
extern int l2_init(int layer2);
extern int l3_init(int protocol);
#define LIBRFID_TOOL_VERSION "0.1"
struct rfidtool_module {
struct rfidtool_module *next;
char *name;
char *version;
const struct option *extra_opts;
unsigned int option_offset;
};
#endif /* _REFIDTOOL_H */
|