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
10 * Authors: Andre Pang <Andre.Pang@csiro.au>
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.
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.
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 *****************************************************************************/
30 #include <vlc_common.h>
32 /* Use DOS/Windows path separators? */
34 # define XURL_WIN32_PATHING
36 # undef XURL_WIN32_PATHING
42 char* XURL_Join ( char *psz_url1, char *psz_url2 );
43 char* XURL_Concat ( char *psz_url, char *psz_append );
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 );
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 );
56 char* XURL_GetHead ( const char *psz_path );
58 #endif /* __XURL_H__ */