diff options
Diffstat (limited to 'src/genrc.h')
-rw-r--r-- | src/genrc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/genrc.h b/src/genrc.h index 9842016..c6ee57b 100644 --- a/src/genrc.h +++ b/src/genrc.h | |||
@@ -60,12 +60,15 @@ void pidlist_kill(PIDLIST *plist, int sig); | |||
60 | 60 | ||
61 | pid_t strtopid(char const *str); | 61 | pid_t strtopid(char const *str); |
62 | 62 | ||
63 | int pid_is_running(pid_t pid); | 63 | int pid_is_running(pid_t pid); |
64 | 64 | ||
65 | void runas(void); | 65 | void runas(void); |
66 | int str_to_sig(char const *); | ||
67 | int str_to_int(char const *); | ||
68 | |||
66 | 69 | ||
67 | enum { | 70 | enum { |
68 | MATCH_REGEX, /* extended POSIX regexp match (default) */ | 71 | MATCH_REGEX, /* extended POSIX regexp match (default) */ |
69 | MATCH_PCRE, /* PCRE match (not implemented) */ | 72 | MATCH_PCRE, /* PCRE match (not implemented) */ |
70 | MATCH_GLOB, /* glob pattern match */ | 73 | MATCH_GLOB, /* glob pattern match */ |
71 | MATCH_EXACT, /* exact match */ | 74 | MATCH_EXACT, /* exact match */ |
@@ -106,12 +109,19 @@ int match_regex(PROCSCANBUF buf, char const *arg); | |||
106 | 109 | ||
107 | void match_pcre_init(PROCSCANBUF buf, char const *pattern); | 110 | void match_pcre_init(PROCSCANBUF buf, char const *pattern); |
108 | void match_pcre_free(PROCSCANBUF buf); | 111 | void match_pcre_free(PROCSCANBUF buf); |
109 | int match_pcre(PROCSCANBUF buf, char const *arg); | 112 | int match_pcre(PROCSCANBUF buf, char const *arg); |
110 | 113 | ||
111 | 114 | ||
115 | enum { | ||
116 | RESTART_ON_EXIT, | ||
117 | RESTART_ON_SIGNAL | ||
118 | }; | ||
119 | |||
120 | void add_restart_condition(int type, char const *arg); | ||
121 | |||
112 | 122 | ||
113 | struct genrc_pid_closure { | 123 | struct genrc_pid_closure { |
114 | char const *name; | 124 | char const *name; |
115 | int (*pid)(struct genrc_pid_closure *, PIDLIST *); | 125 | int (*pid)(struct genrc_pid_closure *, PIDLIST *); |
116 | }; | 126 | }; |
117 | 127 | ||