diff options
Diffstat (limited to 'discover/udev.h')
-rw-r--r-- | discover/udev.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/discover/udev.h b/discover/udev.h new file mode 100644 index 0000000..c30adc9 --- /dev/null +++ b/discover/udev.h @@ -0,0 +1,26 @@ +#ifndef _UDEV_H +#define _UDEV_H + +enum udev_action { + UDEV_ACTION_ADD, + UDEV_ACTION_REMOVE, +}; + +struct udev_event { + enum udev_action action; + char *device; + + struct param { + char *name; + char *value; + } *params; + int n_params; +}; + +struct udev; + +struct udev *udev_init(void); + +void udev_destroy(struct udev *udev); + +#endif /* _UDEV_H */ |