]> git.sesse.net Git - vlc/blob - modules/codec/cmml/xurl.h
Remove qnx modules.
[vlc] / modules / codec / cmml / xurl.h
1 /*****************************************************************************
2  * xurl.h: URL manipulation functions (header file)
3  *****************************************************************************
4  * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research
5  *                         Organisation (CSIRO) Australia
6  * Copyright (C) 2004-2008 the VideoLAN team
7  *
8  * $Id$
9  *
10  * Authors: Andre Pang <Andre.Pang@csiro.au>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25  *****************************************************************************/
26
27 #ifndef __XURL_H__
28 #define __XURL_H__
29
30 #include <vlc_common.h>
31
32 /* Use DOS/Windows path separators? */
33 #ifdef WIN32
34 #  define XURL_WIN32_PATHING
35 #else
36 #  undef  XURL_WIN32_PATHING
37 #endif
38
39 /* Debugging */
40 #undef XURL_DEBUG
41
42 char* XURL_Join                   ( char *psz_url1, char *psz_url2 );
43 char* XURL_Concat                 ( char *psz_url,  char *psz_append );
44
45 bool  XURL_IsAbsolute             ( char *psz_url );
46 bool  XURL_HasAbsolutePath        ( char *psz_url );
47 bool  XURL_IsFileURL              ( char *psz_url );
48 bool  XURL_HasFragment            ( char *psz_url );
49
50 char* XURL_GetHostname            ( char *psz_url );
51 char* XURL_GetSchemeAndHostname   ( char *psz_url );
52 char* XURL_GetScheme              ( char *psz_url );
53 char* XURL_GetPath                ( char *psz_url );
54 char* XURL_GetWithoutFragment     ( char *psz_url );
55
56 char* XURL_GetHead                ( const char *psz_path );
57
58 #endif /* __XURL_H__ */
59