util-lib: split string parsing related calls from util.[ch] into parse-util.[ch]
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "label.h"
|
||||
#include "mkdir.h"
|
||||
#include "mount.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "special.h"
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "fd-util.h"
|
||||
#include "formats-util.h"
|
||||
#include "kdbus.h"
|
||||
#include "parse-util.h"
|
||||
#include "service.h"
|
||||
#include "signal-util.h"
|
||||
#include "special.h"
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "cgroup-util.h"
|
||||
#include "cgroup.h"
|
||||
#include "fd-util.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "special.h"
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
#include "ioprio.h"
|
||||
#include "missing.h"
|
||||
#include "namespace.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "strv.h"
|
||||
#include "utf8.h"
|
||||
|
||||
#ifdef HAVE_SECCOMP
|
||||
#include "seccomp-util.h"
|
||||
#endif
|
||||
#include "strv.h"
|
||||
#include "utf8.h"
|
||||
|
||||
BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
|
||||
|
||||
|
||||
+2
-1
@@ -25,14 +25,15 @@
|
||||
#include "libudev.h"
|
||||
|
||||
#include "dbus-device.h"
|
||||
#include "device.h"
|
||||
#include "log.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "string-util.h"
|
||||
#include "swap.h"
|
||||
#include "udev-util.h"
|
||||
#include "unit-name.h"
|
||||
#include "unit.h"
|
||||
#include "device.h"
|
||||
|
||||
static const UnitActiveState state_translation_table[_DEVICE_STATE_MAX] = {
|
||||
[DEVICE_DEAD] = UNIT_INACTIVE,
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#include "namespace.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "rm-rf.h"
|
||||
|
||||
+2
-1
@@ -28,8 +28,10 @@
|
||||
#include "dbus-job.h"
|
||||
#include "dbus.h"
|
||||
#include "escape.h"
|
||||
#include "job.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#include "parse-util.h"
|
||||
#include "set.h"
|
||||
#include "special.h"
|
||||
#include "string-util.h"
|
||||
@@ -37,7 +39,6 @@
|
||||
#include "terminal-util.h"
|
||||
#include "unit.h"
|
||||
#include "virt.h"
|
||||
#include "job.h"
|
||||
|
||||
Job* job_new_raw(Unit *unit) {
|
||||
Job *j;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "fd-util.h"
|
||||
#include "formats-util.h"
|
||||
#include "killall.h"
|
||||
#include "parse-util.h"
|
||||
#include "process-util.h"
|
||||
#include "set.h"
|
||||
#include "string-util.h"
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
#include "load-fragment.h"
|
||||
#include "log.h"
|
||||
#include "missing.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#ifdef HAVE_SECCOMP
|
||||
#include "seccomp-util.h"
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#include "missing.h"
|
||||
#include "mount-setup.h"
|
||||
#include "pager.h"
|
||||
#include "parse-util.h"
|
||||
#include "process-util.h"
|
||||
#include "selinux-setup.h"
|
||||
#include "selinux-util.h"
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
#include "manager.h"
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-lookup.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "mkdir.h"
|
||||
#include "mount-setup.h"
|
||||
#include "mount.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "smack-util.h"
|
||||
#include "special.h"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include "load-fragment.h"
|
||||
#include "log.h"
|
||||
#include "manager.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "service.h"
|
||||
|
||||
@@ -19,9 +19,10 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include "parse-util.h"
|
||||
#include "show-status.h"
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
#include "show-status.h"
|
||||
|
||||
int parse_show_status(const char *v, ShowStatus *ret) {
|
||||
int r;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "killall.h"
|
||||
#include "log.h"
|
||||
#include "missing.h"
|
||||
#include "parse-util.h"
|
||||
#include "process-util.h"
|
||||
#include "string-util.h"
|
||||
#include "switch-root.h"
|
||||
|
||||
+3
-1
@@ -23,10 +23,12 @@
|
||||
|
||||
#include "bus-common-errors.h"
|
||||
#include "dbus-snapshot.h"
|
||||
#include "parse-util.h"
|
||||
#include "parse-util.h"
|
||||
#include "snapshot.h"
|
||||
#include "string-util.h"
|
||||
#include "unit-name.h"
|
||||
#include "unit.h"
|
||||
#include "snapshot.h"
|
||||
|
||||
static const UnitActiveState state_translation_table[_SNAPSHOT_STATE_MAX] = {
|
||||
[SNAPSHOT_DEAD] = UNIT_INACTIVE,
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
typedef struct Snapshot Snapshot;
|
||||
|
||||
#include "unit.h"
|
||||
|
||||
struct Snapshot {
|
||||
Unit meta;
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "log.h"
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "selinux-util.h"
|
||||
#include "signal-util.h"
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "fd-util.h"
|
||||
#include "formats-util.h"
|
||||
#include "fstab-util.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "special.h"
|
||||
#include "string-util.h"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "bus-error.h"
|
||||
#include "bus-util.h"
|
||||
#include "dbus-timer.h"
|
||||
#include "parse-util.h"
|
||||
#include "special.h"
|
||||
#include "string-util.h"
|
||||
#include "timer.h"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "macro.h"
|
||||
#include "missing.h"
|
||||
#include "mkdir.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
#include "set.h"
|
||||
|
||||
Reference in New Issue
Block a user