]> git.sesse.net Git - vlc/blob - modules/access/rtsp/real.h
input options whitelisting, step 2 (refs #1371)
[vlc] / modules / access / rtsp / real.h
1 /*****************************************************************************
2  * real.c: rtsp input
3  *****************************************************************************
4  * Copyright (C) 2002-2004 the xine project
5  * Copyright (C) 2005 VideoLAN
6  * $Id$
7  *
8  * Authors: Gildas Bazin <gbazin@videolan.org>
9  *          Adapted from xine which itself adapted it from joschkas real tools.
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25 #ifndef HAVE_REAL_H
26 #define HAVE_REAL_H
27
28 #include <stdlib.h>
29 #include <string.h>
30 #include <inttypes.h>
31
32 #include <vlc/vlc.h>
33 #include "rtsp.h"
34 #include "real_rmff.h"
35 #include "real_sdpplin.h"
36
37 #ifdef REALDEBUG
38 #   define lprintf printf
39 #else
40     static inline void lprintf( const char *dummy, ... ){}
41 #endif
42
43 int real_get_rdt_chunk_header(rtsp_client_t *, rmff_pheader_t *);
44 int real_get_rdt_chunk(rtsp_client_t *, rmff_pheader_t *, unsigned char **);
45 rmff_header_t *real_setup_and_get_header(rtsp_client_t *, int bandwidth);
46
47 int asmrp_match(const char *rules, int bandwidth, int *matches) ;
48
49 #endif