summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-09-18 12:12:04 -0400
committerDave Reisner <dreisner@archlinux.org>2013-09-19 11:50:34 -0400
commit8f6ce71fe79d897b67157d92869db87ee2042af6 (patch)
tree30055a64faf4d6b3aeb0ba84979627a4a23c16b3 /Makefile.am
parent7991ac34ab08421415b907e42775c5539a4a5bbb (diff)
device-nodes: move device node specific code to own file
In the process, rename udev_encode_string which is poorly named for what it does. It deals specifically with encoding names that udev creates and has its own rules: utf8 is valid but some ascii is not (e.g. path separators), and everything else is simply escaped. Rename it to encode_devnode_name.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8d70ad3e5a..89a5c86357 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -642,6 +642,8 @@ libsystemd_shared_la_SOURCES = \
src/shared/list.h \
src/shared/macro.h \
src/shared/def.h \
+ src/shared/device-nodes.c \
+ src/shared/device-nodes.h \
src/shared/sparse-endian.h \
src/shared/util.c \
src/shared/util.h \
@@ -1137,7 +1139,8 @@ tests += \
test-time \
test-hashmap \
test-list \
- test-tables
+ test-tables \
+ test-device-nodes
EXTRA_DIST += \
test/sched_idle_bad.service \
@@ -1149,6 +1152,15 @@ EXTRA_DIST += \
EXTRA_DIST += \
src/test/test-helper.h
+test_device_nodes_SOURCES = \
+ src/test/test-device-nodes.c
+
+test_device_nodes_CFLAGS = \
+ $(AM_CFLAGS)
+
+test_device_nodes_LDADD = \
+ libsystemd-shared.la
+
test_engine_SOURCES = \
src/test/test-engine.c