summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-device
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-28 20:49:20 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-28 21:10:14 +0200
commit9e0196b1e2b9637f8d62d39e7ff239732b982452 (patch)
tree2e93e027530a29aa59b0e4b45971aad9cd2c22fb /src/libsystemd/sd-device
parentMerge pull request #12905 from keszybz/udev-warnings (diff)
downloadsystemd-9e0196b1e2b9637f8d62d39e7ff239732b982452.tar.xz
systemd-9e0196b1e2b9637f8d62d39e7ff239732b982452.zip
sd-device: introduce dump_device_action_table()
Will be used in later commits.
Diffstat (limited to 'src/libsystemd/sd-device')
-rw-r--r--src/libsystemd/sd-device/device-private.c4
-rw-r--r--src/libsystemd/sd-device/device-private.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c
index 731b0ed0a7..16f8627bdb 100644
--- a/src/libsystemd/sd-device/device-private.c
+++ b/src/libsystemd/sd-device/device-private.c
@@ -998,3 +998,7 @@ static const char* const device_action_table[_DEVICE_ACTION_MAX] = {
};
DEFINE_STRING_TABLE_LOOKUP(device_action, DeviceAction);
+
+void dump_device_action_table(void) {
+ DUMP_STRING_TABLE(device_action, DeviceAction, _DEVICE_ACTION_MAX);
+}
diff --git a/src/libsystemd/sd-device/device-private.h b/src/libsystemd/sd-device/device-private.h
index 9696f9c02d..2bde53e969 100644
--- a/src/libsystemd/sd-device/device-private.h
+++ b/src/libsystemd/sd-device/device-private.h
@@ -75,3 +75,4 @@ static inline int device_read_db(sd_device *device) {
DeviceAction device_action_from_string(const char *s) _pure_;
const char *device_action_to_string(DeviceAction a) _const_;
+void dump_device_action_table(void);