Fix svn properties and some minor indentation
[pulseaudio-mirror.git] / src / modules / rtp / rtsp.h
blob181d085473c430e8baa1447b25c4b26c3ac34e86
1 #ifndef foortsphfoo
2 #define foortsphfoo
4 /* $Id$ */
6 /***
7 This file is part of PulseAudio.
9 Copyright 2008 Colin Guthrie
11 PulseAudio is free software; you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as published
13 by the Free Software Foundation; either version 2 of the License,
14 or (at your option) any later version.
16 PulseAudio is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public License
22 along with PulseAudio; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 USA.
25 ***/
27 #include <inttypes.h>
28 #include <sys/socket.h>
29 #include <sys/types.h>
30 #include <netdb.h>
32 #include <pulsecore/memblockq.h>
33 #include <pulsecore/memchunk.h>
34 #include <pulsecore/socket-client.h>
35 #include <pulse/mainloop-api.h>
37 #include "headerlist.h"
39 typedef struct pa_rtsp_context {
40 pa_socket_client *sc;
41 pa_iochannel *io;
42 const char* useragent;
43 pa_headerlist* headers;
44 char* localip;
45 char* url;
46 uint32_t port;
47 uint32_t cseq;
48 char* session;
49 char* transport;
50 } pa_rtsp_context;
52 pa_rtsp_context* pa_rtsp_context_new(const char* useragent);
53 void pa_rtsp_context_free(pa_rtsp_context* c);
55 int pa_rtsp_connect(pa_rtsp_context* c, pa_mainloop_api *mainloop, const char* hostname, uint16_t port);
56 void pa_rtsp_disconnect(pa_rtsp_context* c);
58 const char* pa_rtsp_localip(pa_rtsp_context* c);
59 void pa_rtsp_set_url(pa_rtsp_context* c, const char* url);
60 int pa_rtsp_announce(pa_rtsp_context* c, const char* sdp);
62 int pa_rtsp_setup(pa_rtsp_context* c, pa_headerlist** response_headers);
63 int pa_rtsp_record(pa_rtsp_context* c);
64 int pa_rtsp_teardown(pa_rtsp_context* c);
66 int pa_rtsp_setparameter(pa_rtsp_context* c, const char* param);
67 int pa_rtsp_flush(pa_rtsp_context* c);
69 #endif