chiark / gitweb /
main: we want all setup functions to be in files called xxx-setup.[ch]
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 12:28:43 +0000 (14:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2012 12:29:29 +0000 (14:29 +0200)
Makefile.am
src/core/main.c
src/machine-id-setup/machine-id-setup-main.c [moved from src/machine-id-setup.c with 97% similarity]
src/shared/machine-id-setup.c [moved from src/shared/machine-id-util.c with 99% similarity]
src/shared/machine-id-setup.h [moved from src/shared/machine-id-util.h with 100% similarity]

index b38489b..8b1cafe 100644 (file)
@@ -565,8 +565,8 @@ libsystemd_shared_la_SOURCES = \
        src/shared/spawn-ask-password-agent.h \
        src/shared/mount-setup.c \
        src/shared/mount-setup.h \
-       src/shared/machine-id-util.c \
-       src/shared/machine-id-util.h \
+       src/shared/machine-id-setup.c \
+       src/shared/machine-id-setup.h \
        src/shared/loopback-setup.h \
        src/shared/loopback-setup.c \
        src/shared/specifier.c \
@@ -988,7 +988,7 @@ systemd_tmpfiles_LDADD = \
 
 # ------------------------------------------------------------------------------
 systemd_machine_id_setup_SOURCES = \
-       src/machine-id-setup.c
+       src/machine-id-setup/machine-id-setup-main.c
 
 systemd_machine_id_setup_LDADD = \
        libsystemd-label.la \
index 4c2be26..9db83aa 100644 (file)
 
 #include "manager.h"
 #include "log.h"
-#include "mount-setup.h"
-#include "hostname-setup.h"
-#include "loopback-setup.h"
-#include "kmod-setup.h"
-#include "locale-setup.h"
-#include "selinux-setup.h"
-#include "ima-setup.h"
-#include "machine-id-util.h"
 #include "load-fragment.h"
 #include "fdset.h"
 #include "special.h"
 #include "virt.h"
 #include "watchdog.h"
 
+#include "mount-setup.h"
+#include "loopback-setup.h"
+#include "kmod-setup.h"
+#include "hostname-setup.h"
+#include "machine-id-setup.h"
+#include "locale-setup.h"
+#include "selinux-setup.h"
+#include "ima-setup.h"
+
 static enum {
         ACTION_RUN,
         ACTION_HELP,
similarity index 97%
rename from src/machine-id-setup.c
rename to src/machine-id-setup/machine-id-setup-main.c
index cb8101e..ca8af59 100644 (file)
@@ -22,7 +22,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 
-#include "machine-id-util.h"
+#include "machine-id-setup.h"
 #include "log.h"
 
 int main(int argc, char *argv[]) {
similarity index 99%
rename from src/shared/machine-id-util.c
rename to src/shared/machine-id-setup.c
index d65fd51..9e84ac0 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <systemd/sd-id128.h>
 
-#include "machine-id-util.h"
+#include "machine-id-setup.h"
 #include "macro.h"
 #include "util.h"
 #include "mkdir.h"