- Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathcommand.h
More file actions
Latest commit
29 lines (26 loc) · 611 Bytes
/
Copy pathcommand.h
File metadata and controls
29 lines (26 loc) · 611 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
/* Copyright 2010 Stefan Tomanek <stefan.tomanek+th@wertarbyte.de>
* You have permission to copy, modify, and redistribute under the
* terms of the GPLv3 or any later version.
* For full license terms, see COPYING.
*/
#include"devtag.h"
#defineTH_COMMAND_PARAM_LENGTH 256
enumcommand_type {
CMD_NOP,
CMD_ADD,
CMD_REMOVE,
CMD_QUIT,
CMD_DISABLE,
CMD_ENABLE,
CMD_PASSFD,
CMD_CLEARDEVS,
CMD_CHANGEMODE
};
structcommand {
enumcommand_typetype;
/* udev pathnames are long, but not that long */
charparam[TH_COMMAND_PARAM_LENGTH];
intfd;
intexclusive;
chartag[TH_DEVICE_TAG_LENGTH];
};