-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathdrill.h
More file actions
33 lines (27 loc) · 710 Bytes
/
drill.h
File metadata and controls
33 lines (27 loc) · 710 Bytes
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
31
32
33
#ifndef _DRILL_H
#define _DRILL_H
/*
* A buffer size for storing string "act arg1 arg2 arg3", where
* - act is 1 symbol,
* - arg1 is maximum 18 symbols (0xffffffffffffffff),
* - arg2 is maximum 18 symbols (0xffffffffffffffff),
* - arg3 is maximum 18 symbols (0xffffffffffffffff),
* - three spaces and null byte at the end.
*/
#define DRILL_ACT_SIZE 59
enum drill_act_t {
DRILL_ACT_NONE = 0,
DRILL_ACT_ALLOC = 1,
DRILL_ACT_CALLBACK = 2,
DRILL_ACT_SAVE_VAL = 3,
DRILL_ACT_FREE = 4,
DRILL_ACT_RESET = 5
};
#define DRILL_ITEM_SIZE 95
struct drill_item_t {
unsigned long foobar;
void (*callback)(void);
char data[]; /* C99 flexible array */
};
#define DRILL_N 10240
#endif /* _DRILL_H */