aboutsummaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-04 14:27:28 +0100
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-11-04 14:30:16 +0100
commit34f542b7cc6e84403326acf145487a7d83175a11 (patch)
treef63accb7d3f22e5cae61dcdeb3b65add403d28cf /lib/include
parent1ffc240b3f7668ff2fb4e72b6e15937824a6cf3e (diff)
Seperate init specific code from utility code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/service.h10
-rw-r--r--lib/include/util.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/include/service.h b/lib/include/service.h
index abe4968..ca96e58 100644
--- a/lib/include/service.h
+++ b/lib/include/service.h
@@ -57,12 +57,6 @@ enum {
SVC_FLAG_TRUNCATE_OUT = 0x01,
};
-typedef struct exec_t {
- struct exec_t *next;
- int argc; /* number of elements in argument vector */
- char args[]; /* argument vectot string blob */
-} exec_t;
-
typedef struct service_t {
struct service_t *next;
@@ -125,9 +119,5 @@ const char *svc_target_to_string(int target);
int svc_target_from_string(const char *target);
-int setup_tty(const char *tty, bool truncate);
-
-NORETURN void argv_exec(exec_t *e);
-
#endif /* SERVICE_H */
diff --git a/lib/include/util.h b/lib/include/util.h
index 6d2bf5d..925a1f0 100644
--- a/lib/include/util.h
+++ b/lib/include/util.h
@@ -35,6 +35,12 @@ typedef struct {
int value;
} enum_map_t;
+typedef struct exec_t {
+ struct exec_t *next;
+ int argc; /* number of elements in argument vector */
+ char args[]; /* argument vectot string blob */
+} exec_t;
+
enum {
/* only allow root to connect */
SOCK_FLAG_ROOT_ONLY = 0x01,
@@ -73,5 +79,9 @@ int mksock(const char *path, int flags);
/* print a default version info and license string */
NORETURN void print_version(const char *program);
+int setup_tty(const char *tty, bool truncate);
+
+NORETURN void argv_exec(exec_t *e);
+
#endif /* UTIL_H */