diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-12-12 09:30:50 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-12-12 09:30:50 +0100 |
commit | 0b9315719154fa7ea1a075e1b3785713f5acc3a1 (patch) | |
tree | d422d9636d9c135fdccf341fc61b10f9050348b3 /src | |
parent | 3853d4cf8957e58bf8a7faa6262b7b1ab58565b5 (diff) |
hwdb: FOREACH_HWDB_PROPERTY -> SD_HWDB_FOREACH_PROPERTY
Lets not pollute the global namespace. Prefix all our exported names and
macros with SD_HWDB_*.
Diffstat (limited to 'src')
-rw-r--r-- | src/libudev/libudev-hwdb.c | 2 | ||||
-rw-r--r-- | src/systemd/sd-hwdb.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c index 7a21b3d3ee..2e198f2049 100644 --- a/src/libudev/libudev-hwdb.c +++ b/src/libudev/libudev-hwdb.c @@ -140,7 +140,7 @@ _public_ struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev udev_list_cleanup(&hwdb->properties_list); - FOREACH_HWDB_PROPERTY(hwdb->hwdb, modalias, key, value) { + SD_HWDB_FOREACH_PROPERTY(hwdb->hwdb, modalias, key, value) { if (udev_list_entry_add(&hwdb->properties_list, key, value) == NULL) { errno = ENOMEM; return NULL; diff --git a/src/systemd/sd-hwdb.h b/src/systemd/sd-hwdb.h index fae9b9fd4b..f41555df7e 100644 --- a/src/systemd/sd-hwdb.h +++ b/src/systemd/sd-hwdb.h @@ -39,7 +39,7 @@ int sd_hwdb_get(sd_hwdb *hwdb, const char *modalias, const char *key, const char int sd_hwdb_seek(sd_hwdb *hwdb, const char *modalias); int sd_hwdb_enumerate(sd_hwdb *hwdb, const char **key, const char **value); -#define FOREACH_HWDB_PROPERTY(hwdb, modalias, key, value) \ +#define SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) \ if (sd_hwdb_seek(hwdb, modalias) >= 0) \ while (sd_hwdb_enumerate(hwdb, &(key), &(value)) > 0) |