summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-06 14:19:05 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-06 14:21:11 +0100
commit134e56dcc53970a20a858283650bb92cd5da1d17 (patch)
tree7d6850a3e6793030110b099f6f8b370bc94e66b8 /src
parent493657337ad8569e0998a3afa7d6fb357757364a (diff)
shared: rename condition-util.[ch] to condition.[ch]
Now that we only have one file with condition implementations around, we can drop the -util suffix and simplify things a bit.
Diffstat (limited to 'src')
-rw-r--r--src/core/unit.h2
-rw-r--r--src/libsystemd-network/network-internal.c2
-rw-r--r--src/libsystemd-network/network-internal.h2
-rw-r--r--src/network/networkd-netdev.h1
-rw-r--r--src/network/networkd.h2
-rw-r--r--src/shared/condition.c (renamed from src/shared/condition-util.c)2
-rw-r--r--src/shared/condition.h (renamed from src/shared/condition-util.h)0
-rw-r--r--src/test/test-condition.c (renamed from src/test/test-condition-util.c)2
-rw-r--r--src/test/test-tables.c2
-rw-r--r--src/udev/net/link-config.h5
10 files changed, 9 insertions, 11 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index b5a224b3d4..8b24272245 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -38,7 +38,7 @@ typedef struct UnitStatusMessageFormats UnitStatusMessageFormats;
#include "socket-util.h"
#include "execute.h"
#include "cgroup.h"
-#include "condition-util.h"
+#include "condition.h"
#include "install.h"
#include "unit-name.h"
#include "failure-action.h"
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index f3141f75dc..6f16050cdc 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -32,7 +32,7 @@
#include "utf8.h"
#include "util.h"
#include "conf-parser.h"
-#include "condition-util.h"
+#include "condition.h"
#include "network-internal.h"
const char *net_get_name(struct udev_device *device) {
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h
index 49387d03cf..c64db2e79d 100644
--- a/src/libsystemd-network/network-internal.h
+++ b/src/libsystemd-network/network-internal.h
@@ -26,7 +26,7 @@
#include <stdbool.h>
#include "udev.h"
-#include "condition-util.h"
+#include "condition.h"
bool net_match_config(const struct ether_addr *match_mac,
const char *match_path,
diff --git a/src/network/networkd-netdev.h b/src/network/networkd-netdev.h
index e9a8a169db..a6fad2dbc4 100644
--- a/src/network/networkd-netdev.h
+++ b/src/network/networkd-netdev.h
@@ -25,7 +25,6 @@
#include "hashmap.h"
#include "list.h"
#include "set.h"
-#include "condition-util.h"
#include "in-addr-util.h"
typedef struct NetDevVTable NetDevVTable;
diff --git a/src/network/networkd.h b/src/network/networkd.h
index d4e79ab2f3..19a661e131 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -37,7 +37,7 @@
#include "hashmap.h"
#include "list.h"
#include "set.h"
-#include "condition-util.h"
+#include "condition.h"
#include "in-addr-util.h"
#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU
diff --git a/src/shared/condition-util.c b/src/shared/condition.c
index 5db20a7085..08bebeee73 100644
--- a/src/shared/condition-util.c
+++ b/src/shared/condition.c
@@ -28,7 +28,6 @@
#include "sd-id128.h"
#include "util.h"
-#include "condition-util.h"
#include "virt.h"
#include "path-util.h"
#include "fileio.h"
@@ -40,6 +39,7 @@
#include "ima-util.h"
#include "selinux-util.h"
#include "audit.h"
+#include "condition.h"
Condition* condition_new(ConditionType type, const char *parameter, bool trigger, bool negate) {
Condition *c;
diff --git a/src/shared/condition-util.h b/src/shared/condition.h
index 28d1d94ff4..28d1d94ff4 100644
--- a/src/shared/condition-util.h
+++ b/src/shared/condition.h
diff --git a/src/test/test-condition-util.c b/src/test/test-condition.c
index b69e62bfd3..349c6470c3 100644
--- a/src/test/test-condition-util.c
+++ b/src/test/test-condition.c
@@ -17,7 +17,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "condition-util.h"
+#include "condition.h"
#include "macro.h"
#include "util.h"
#include "log.h"
diff --git a/src/test/test-tables.c b/src/test/test-tables.c
index d0a621c775..97d5609adf 100644
--- a/src/test/test-tables.c
+++ b/src/test/test-tables.c
@@ -20,7 +20,7 @@
#include "automount.h"
#include "cgroup.h"
#include "compress.h"
-#include "condition-util.h"
+#include "condition.h"
#include "device.h"
#include "execute.h"
#include "exit-status.h"
diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h
index 5f3d4ad142..844ea98629 100644
--- a/src/udev/net/link-config.h
+++ b/src/udev/net/link-config.h
@@ -22,11 +22,10 @@
#pragma once
#include "ethtool-util.h"
-
-#include "condition-util.h"
-#include "libudev.h"
+#include "condition.h"
#include "util.h"
#include "list.h"
+#include "libudev.h"
typedef struct link_config_ctx link_config_ctx;
typedef struct link_config link_config;