direct3d11: use the D3D11 types as D3D9 is not available on some platforms
[vlc.git] / include / vlc_url.h
blob820250f963fbc31ff56ef1e866fe6bd020686ef0
1 /*****************************************************************************
2 * vlc_url.h: URL related macros
3 *****************************************************************************
4 * Copyright (C) 2002-2006 VLC authors and VideoLAN
5 * $Id$
7 * Authors: Christophe Massiot <massiot@via.ecp.fr>
8 * RĂ©mi Denis-Courmont <rem # videolan.org>
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.
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.
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 *****************************************************************************/
25 #ifndef VLC_URL_H
26 # define VLC_URL_H
28 /**
29 * \file
30 * This file defines functions for manipulating URL in vlc
33 VLC_API char *vlc_path2uri (const char *path, const char *scheme) VLC_MALLOC;
35 struct vlc_url_t
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;
45 char *psz_buffer; /* to be freed */
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;
53 VLC_API void vlc_UrlParse (vlc_url_t *, const char *, unsigned char);
54 VLC_API void vlc_UrlClean (vlc_url_t *);
55 #endif