QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_url.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_url.h: URL related macros
3  *****************************************************************************
4  * Copyright (C) 2002-2006 VLC authors and VideoLAN
5  * $Id: 820250f963fbc31ff56ef1e866fe6bd020686ef0 $
6  *
7  * Authors: Christophe Massiot <massiot@via.ecp.fr>
8  * RĂ©mi Denis-Courmont <rem # videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24 
25 #ifndef VLC_URL_H
26 # define VLC_URL_H
27 
33 VLC_API char *vlc_path2uri (const char *path, const char *scheme) VLC_MALLOC;
34 
35 struct vlc_url_t
36 {
37  char *psz_protocol;
38  char *psz_username;
39  char *psz_password;
40  char *psz_host;
41  unsigned i_port;
42  char *psz_path;
43  char *psz_option;
44 
45  char *psz_buffer; /* to be freed */
46 };
47 
48 VLC_API char * decode_URI_duplicate( const char *psz ) VLC_MALLOC;
49 VLC_API char * decode_URI( char *psz );
50 VLC_API char * encode_URI_component( const char *psz ) VLC_MALLOC;
51 VLC_API char * make_path( const char *url ) VLC_MALLOC;
52 
53 VLC_API void vlc_UrlParse (vlc_url_t *, const char *, unsigned char);
54 VLC_API void vlc_UrlClean (vlc_url_t *);
55 #endif
Definition: vlc_url.h:35