From d86fc75e0cbc9d102dc000d2781f9dfddc89fbbf Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 10 Jun 2008 23:49:35 +0000 Subject: 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 --- src/modules/rtp/rtsp_client.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/rtp/rtsp_client.h') 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); -- cgit