#include #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"); }