summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-private.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-03-05 18:08:50 +0100
committerTom Gundersen <teg@jklm.no>2015-03-09 22:50:44 +0100
commitdf546eb56a3e8cb7cbea7a1cb630f9ed21ea5c6b (patch)
tree24a1a597f2b0e445bff200a1b275a2890573255b /src/libudev/libudev-private.h
parent3738cc858d6d1312f66a31d2f7652328bb317876 (diff)
libudev: udev_device_add_property - implicitly mark properties for saving to db
Properties should only be saved to the db when added to the udev_device by udevd, and only if the property does not start with a '.'. Make this implicit rather than expose the marking of properties.
Diffstat (limited to 'src/libudev/libudev-private.h')
-rw-r--r--src/libudev/libudev-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h
index cf8e0fd293..f6b641a326 100644
--- a/src/libudev/libudev-private.h
+++ b/src/libudev/libudev-private.h
@@ -45,7 +45,7 @@ gid_t udev_device_get_devnode_gid(struct udev_device *udev_device);
int udev_device_rename(struct udev_device *udev_device, const char *new_name);
int udev_device_add_devlink(struct udev_device *udev_device, const char *devlink);
void udev_device_cleanup_devlinks_list(struct udev_device *udev_device);
-struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value);
+int udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value);
char **udev_device_get_properties_envp(struct udev_device *udev_device);
ssize_t udev_device_get_properties_monitor_buf(struct udev_device *udev_device, const char **buf);
int udev_device_read_db(struct udev_device *udev_device, const char *dbfile);