20 lines
307 B
C
20 lines
307 B
C
#ifndef READER_FILE
|
|
#define READER_FILE
|
|
#include <stdint.h>
|
|
#include "config.h"
|
|
|
|
struct reader_t{
|
|
int fd;
|
|
unsigned char buff[80];
|
|
int reader;
|
|
int state;
|
|
unsigned int opentime;
|
|
int cardnumber;
|
|
char *readername;
|
|
};
|
|
|
|
void readerrequest(struct reader_t *reader, struct config_t *config);
|
|
|
|
#endif
|
|
|