error: two types specified in one empty declaration
quand je compile avec le hardware.h suivant
Code:
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
| #ifndef _HARDWARE_H
#define _HARDWARE_H
#include "lirc.h"
#include "ir_remote_types.h"
struct hardware
{
char *device;
int fd;
unsigned long features;
unsigned long send_mode;
unsigned long rec_mode;
unsigned long code_length;
int (*init_func)(void);
int (*config_func)(struct ir_remote *remotes);
int (*deinit_func)(void);
int (*send_func)(struct ir_remote *remote,struct ir_ncode *code);
char *(*rec_func)(struct ir_remote *remotes);
int (*decode_func)(struct ir_remote *remote,
ir_code *prep,ir_code *codep,ir_code *postp,
int *repeat_flag,lirc_t *remaining_gapp);
int (*ioctl_func)(unsigned int cmd, void *arg);
lirc_t (*readdata)(lirc_t timeout);
char *name;
int resolution;
};
/*struct hardware hardware ;*/
#endif |
est ce que quelqu'un peut fixer l'erreur merci .