summaryrefslogtreecommitdiff
path: root/udev/udev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-18 15:02:01 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-18 15:02:01 +0200
commitd7ddce186c8a0171eb98862b6f8ff72d64261b33 (patch)
treeddacebf3401680c0e5da78132c3c7ed03b23519f /udev/udev.h
parentc7521974a39bcb68f313a324b8ec60ec11fed3d8 (diff)
make struct udev_rules opaque
Diffstat (limited to 'udev/udev.h')
-rw-r--r--udev/udev.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/udev/udev.h b/udev/udev.h
index 0e8a8697bd..eb020cd3bb 100644
--- a/udev/udev.h
+++ b/udev/udev.h
@@ -92,14 +92,8 @@ extern void udev_event_unref(struct udev_event *event);
extern int udev_event_run(struct udev_event *event, struct udev_rules *rules);
/* udev-rules.c */
-struct udev_rules {
- struct udev *udev;
- char *buf;
- size_t bufsize;
- int resolve_names;
-};
-extern int udev_rules_init(struct udev *udev, struct udev_rules *rules, int resolve_names);
-extern void udev_rules_cleanup(struct udev_rules *rules);
+extern struct udev_rules *udev_rules_new(struct udev *udev, int resolve_names);
+extern void udev_rules_unref(struct udev_rules *rules);
extern int udev_rules_get_name(struct udev_rules *rules, struct udev_event *event);
extern int udev_rules_get_run(struct udev_rules *rules, struct udev_event *event);
extern int udev_rules_run(struct udev_event *event);