Little fix.
[irreco.git] / lirc-0.8.4a / daemons / hardware.h
blob2be258fa6af50d79fc5591a7577624cce5272428
1 /* $Id: hardware.h,v 5.11 2007/07/29 18:20:06 lirc Exp $ */
3 /****************************************************************************
4 ** hardware.h **************************************************************
5 ****************************************************************************
7 * hardware.h - internal hardware interface
9 * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
11 */
13 #ifndef _HARDWARE_H
14 #define _HARDWARE_H
16 #include "drivers/lirc.h"
17 #include "ir_remote_types.h"
19 struct hardware
21 char *device;
22 int fd;
23 unsigned long features;
24 unsigned long send_mode;
25 unsigned long rec_mode;
26 unsigned long code_length;
27 int (*init_func)(void);
28 int (*config_func)(struct ir_remote *remotes);
29 int (*deinit_func)(void);
30 int (*send_func)(struct ir_remote *remote,struct ir_ncode *code);
31 char *(*rec_func)(struct ir_remote *remotes);
32 int (*decode_func)(struct ir_remote *remote,
33 ir_code *prep,ir_code *codep,ir_code *postp,
34 int *repeat_flag,
35 lirc_t *min_remaining_gapp,
36 lirc_t *max_remaining_gapp);
37 int (*ioctl_func)(unsigned int cmd, void *arg);
38 lirc_t (*readdata)(lirc_t timeout);
39 char *name;
41 int resolution;
44 extern struct hardware hw;
45 #endif