summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-context.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 21:12:27 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 21:12:27 +0000
commit348738751c50c7d3c4c9ed22801a0c2cb917b790 (patch)
treeecb4987e822ee418fc4a9651a7333cbf8cf6cdfa /polyp/polyplib-context.h
parentee91cb6c9ded44d7f3ddb23b681df49fe5c8146b (diff)
daemon auto spawn
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@173 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-context.h')
-rw-r--r--polyp/polyplib-context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/polyp/polyplib-context.h b/polyp/polyplib-context.h
index 9614ce69..c7d20703 100644
--- a/polyp/polyplib-context.h
+++ b/polyp/polyplib-context.h
@@ -1,3 +1,4 @@
+
#ifndef foopolyplibcontexthfoo
#define foopolyplibcontexthfoo
@@ -78,6 +79,14 @@ return synchronously on error. Use pa_context_set_state_callback() to
be notified when the connection is established */
int pa_context_connect(struct pa_context *c, const char *server);
+/** Connect the context to a server. If the default server is local
+ * but not accessible, spawn a new daemon. If atfork is not NULL it is
+ * run after the fork() in the child process. It may be used to close
+ * file descriptors or to do any other cleanups. Make sure that
+ * SIGCHLD is handled when calling this function. The function will
+ * waitpid() on the daemon's PID. \since 0.4 */
+int pa_context_connect_spawn(struct pa_context *c, void (*atfork)(void));
+
/** Terminate the context connection immediately */
void pa_context_disconnect(struct pa_context *c);