summaryrefslogtreecommitdiffstats
path: root/polyp/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/client.h')
-rw-r--r--polyp/client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/client.h b/polyp/client.h
index 2518011e..58c5ee31 100644
--- a/polyp/client.h
+++ b/polyp/client.h
@@ -25,6 +25,10 @@
#include "core.h"
#include "module.h"
+/* Every connection to the server should have a pa_client
+ * attached. That way the user may generate a listing of all connected
+ * clients easily and kill them if he wants.*/
+
struct pa_client {
uint32_t index;
@@ -37,6 +41,7 @@ struct pa_client {
void *userdata;
};
+/* Protocol name should be something like "ESOUND", "NATIVE", ... */
struct pa_client *pa_client_new(struct pa_core *c, const char *protocol_name, char *name);
/* This function should be called only by the code that created the client */
@@ -46,6 +51,7 @@ void pa_client_free(struct pa_client *c);
* request destruction of the client */
void pa_client_kill(struct pa_client *c);
+/* Rename the client */
void pa_client_set_name(struct pa_client *c, const char *name);
#endif