blob: 51ac7968534b85878a1809fc2fd90e63e300bb46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdio.h>
#include "nfcommander.h"
#include "config.h"
static void __attribute__((constructor)) init() {
printf("This is the yhy reader plugin\n");
size_t poll_timeout = 1000;
if(config_get("nfc", "interval")){
poll_timeout = strtoul(config_get("nfc", "interval"), NULL, 10);
}
char* port = config_get("nfc", "device");
printf("Opening %s with polltime %d\n", port, poll_timeout);
}
static void __attribute__((destructor)) cleanup() {
printf("This is the yhy reader plugin cleanup\n");
}
|