diff options
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/service.h | 10 | ||||
-rw-r--r-- | lib/include/util.h | 10 |
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 */ |