projects
/
petitboot
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
event: Make strings const
[petitboot]
/
discover
/
event.h
1
#ifndef _PB_EVENT_H
2
#define _PB_EVENT_H
3
4
enum event_type {
5
EVENT_TYPE_UDEV = 10,
6
EVENT_TYPE_USER,
7
EVENT_TYPE_MAX,
8
};
9
10
enum event_action {
11
EVENT_ACTION_ADD = 20,
12
EVENT_ACTION_REMOVE,
13
EVENT_ACTION_MAX,
14
};
15
16
struct event {
17
enum event_type type;
18
enum event_action action;
19
const char *device;
20
21
struct param {
22
const char *name;
23
const char *value;
24
} *params;
25
int n_params;
26
};
27
28
int event_parse_ad_message(struct event *event, char *buf, int len);
29
const char *event_get_param(const struct event *event, const char *name);
30
31
#endif /* _PB_EVENT_H */