aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 18:29:27 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 18:29:27 +0100
commitbfcaecabbda1ec9473a92f6a413a51db564d9d6e (patch)
treebb7018873e10dc5bcbdd77ada7c172af872ee6d0 /src/daemon.h
parent0dd2dfff9d7fd8208d87eae98c6cd8976d4b2e38 (diff)
downloadmpd-bfcaecabbda1ec9473a92f6a413a51db564d9d6e.tar.gz
mpd-bfcaecabbda1ec9473a92f6a413a51db564d9d6e.tar.xz
mpd-bfcaecabbda1ec9473a92f6a413a51db564d9d6e.zip
daemon: added daemonize_init(), daemonize_finish()
The constructor/destructor functions parse and free the configuration properly. This way, we don't have to load the pid file path more than once.
Diffstat (limited to 'src/daemon.h')
-rw-r--r--src/daemon.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon.h b/src/daemon.h
index 8f1b70313..969630156 100644
--- a/src/daemon.h
+++ b/src/daemon.h
@@ -21,6 +21,12 @@
#include "cmdline.h"
+void
+daemonize_init(const char *user, const char *pidfile);
+
+void
+daemonize_finish(void);
+
/**
* Kill the MPD which is currently running, pid determined from the
* pid file.
@@ -43,10 +49,4 @@ daemonize_set_user(void);
void
daemonize(Options *options);
-/**
- * Deletes the pidfile which was created when MPD started.
- */
-void
-daemonize_delete_pidfile(void);
-
#endif