diff options
author | Colin Guthrie <pulse@colin.guthr.ie> | 2008-06-10 23:49:35 +0000 |
---|---|---|
committer | Colin Guthrie <pulse@colin.guthr.ie> | 2008-10-08 20:32:09 +0100 |
commit | d86fc75e0cbc9d102dc000d2781f9dfddc89fbbf (patch) | |
tree | 518de2cee839f6d84ecfb225451b7776a9c22521 /src/modules/rtp/rtsp_client.h | |
parent | 19dcb529ad3baa8e8e506ddfa703e952044e0f60 (diff) |
Change the API of the RTSP client a bit.
* Store the mainloop, hostname and port internally on construction
* This should allow use to easily reconnect if disconnected although this has thus far proved unreliable.
The changes look like more than they are due to moving a function around.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2502 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/rtp/rtsp_client.h')
-rw-r--r-- | src/modules/rtp/rtsp_client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/rtp/rtsp_client.h b/src/modules/rtp/rtsp_client.h index 55540180..dcc9209c 100644 --- a/src/modules/rtp/rtsp_client.h +++ b/src/modules/rtp/rtsp_client.h @@ -42,17 +42,17 @@ typedef enum { STATE_ANNOUNCE, STATE_SETUP, STATE_RECORD, + STATE_FLUSH, STATE_TEARDOWN, STATE_SET_PARAMETER, - STATE_FLUSH, STATE_DISCONNECTED } pa_rtsp_state; typedef void (*pa_rtsp_cb_t)(pa_rtsp_client *c, pa_rtsp_state state, pa_headerlist* hl, void *userdata); -pa_rtsp_client* pa_rtsp_client_new(const char* useragent); +pa_rtsp_client* pa_rtsp_client_new(pa_mainloop_api *mainloop, const char* hostname, uint16_t port, const char* useragent); void pa_rtsp_client_free(pa_rtsp_client* c); -int pa_rtsp_connect(pa_rtsp_client* c, pa_mainloop_api *mainloop, const char* hostname, uint16_t port); +int pa_rtsp_connect(pa_rtsp_client* c); void pa_rtsp_set_callback(pa_rtsp_client *c, pa_rtsp_cb_t callback, void *userdata); void pa_rtsp_disconnect(pa_rtsp_client* c); |