added utils module to share some code parts with other apps

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2020-08-05 16:03:28 +02:00
parent 88aa768184
commit 6031b07eb4
4 changed files with 150 additions and 76 deletions

10
utils.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef UTILS_H
#define UTILS_H 1
void daemonize_enable(void);
int daemonize_with_pidfile(char const * const pidfile);
int daemonize_shutdown(char const * const pidfile);
#endif