00001 /***************************************************************************** 00002 * xurl.h: URL manipulation functions (header file) 00003 ***************************************************************************** 00004 * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research 00005 * Organisation (CSIRO) Australia 00006 * Copyright (C) 2004-2008 the VideoLAN team 00007 * 00008 * $Id$ 00009 * 00010 * Authors: Andre Pang <Andre.Pang@csiro.au> 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00025 *****************************************************************************/ 00026 00027 #ifndef __XURL_H__ 00028 #define __XURL_H__ 00029 00030 #include <vlc_common.h> 00031 00032 /* Use DOS/Windows path separators? */ 00033 #ifdef WIN32 00034 # define XURL_WIN32_PATHING 00035 #else 00036 # undef XURL_WIN32_PATHING 00037 #endif 00038 00039 /* Debugging */ 00040 #undef XURL_DEBUG 00041 00042 char* XURL_Join ( char *psz_url1, char *psz_url2 ); 00043 char* XURL_Concat ( char *psz_url, char *psz_append ); 00044 00045 bool XURL_IsAbsolute ( char *psz_url ); 00046 bool XURL_HasAbsolutePath ( char *psz_url ); 00047 bool XURL_IsFileURL ( char *psz_url ); 00048 bool XURL_HasFragment ( char *psz_url ); 00049 00050 char* XURL_GetHostname ( char *psz_url ); 00051 char* XURL_GetSchemeAndHostname ( char *psz_url ); 00052 char* XURL_GetScheme ( char *psz_url ); 00053 char* XURL_GetPath ( char *psz_url ); 00054 char* XURL_GetWithoutFragment ( char *psz_url ); 00055 00056 char* XURL_GetHead ( const char *psz_path ); 00057 00058 #endif /* __XURL_H__ */ 00059
1.5.6