summaryrefslogtreecommitdiffstats
path: root/src/modules/rtp/raop_client.h
diff options
context:
space:
mode:
authorColin Guthrie <pulse@colin.guthr.ie>2008-06-10 23:55:58 +0000
committerColin Guthrie <pulse@colin.guthr.ie>2008-10-08 20:32:09 +0100
commitc49be7891fac98056010cf553042946740061590 (patch)
treee8c683339418f22020269e0ba36887874d4352c5 /src/modules/rtp/raop_client.h
parentd86fc75e0cbc9d102dc000d2781f9dfddc89fbbf (diff)
Add some new public API functions to connect and flush.
This allows us to reconnect upon disconnection but this has thus far proved unreliable. We no longer close the socket. We leave this to the module thread to do the closing. We can also flush the remote buffer now. Refs #69 git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2503 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/rtp/raop_client.h')
-rw-r--r--src/modules/rtp/raop_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/rtp/raop_client.h b/src/modules/rtp/raop_client.h
index 303fdaa4..882dae17 100644
--- a/src/modules/rtp/raop_client.h
+++ b/src/modules/rtp/raop_client.h
@@ -33,6 +33,9 @@ typedef struct pa_raop_client pa_raop_client;
pa_raop_client* pa_raop_client_new(pa_core *core, const char* host);
void pa_raop_client_free(pa_raop_client* c);
+int pa_raop_connect(pa_raop_client* c);
+int pa_raop_flush(pa_raop_client* c);
+
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded);
typedef void (*pa_raop_client_cb_t)(int fd, void *userdata);