Statistics
| Branch: | Revision:

root / mainbox / tool.h @ 7bdb98c5

History | View | Annotate | Download (352 Bytes)

1
#ifndef TOOL_H
2
#define TOOL_H
3

    
4
enum toolstate_t {
5
  TS_INIT,
6
  TS_OFF,
7
  TS_REQ_DIS,
8
  TS_ON
9
};
10

    
11
struct tool_t {
12
  int address;
13
  const char *name;
14
  enum toolstate_t state;
15
  unsigned int user;
16
};
17

    
18
int tool_init_mb(const char *device);
19
void tool_close_mb();
20
void tool_request_disable(struct tool_t *tool);
21
void tool_poll(struct tool_t *tool);
22

    
23
#endif