xurl.h
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:2k
源码类别:
midi
开发平台:
Unix_Linux
- /*****************************************************************************
- * xurl.h: URL manipulation functions (header file)
- *****************************************************************************
- * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research
- * Organisation (CSIRO) Australia
- * Copyright (C) 2004-2008 the VideoLAN team
- *
- * $Id: e30c513a33265fc8c6b6dd49dafa859cacf07089 $
- *
- * Authors: Andre Pang <Andre.Pang@csiro.au>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
- #ifndef __XURL_H__
- #define __XURL_H__
- #include <vlc_common.h>
- /* Use DOS/Windows path separators? */
- #ifdef WIN32
- # define XURL_WIN32_PATHING
- #else
- # undef XURL_WIN32_PATHING
- #endif
- /* Debugging */
- #undef XURL_DEBUG
- char* XURL_Join ( char *psz_url1, char *psz_url2 );
- char* XURL_Concat ( char *psz_url, char *psz_append );
- bool XURL_IsAbsolute ( char *psz_url );
- bool XURL_HasAbsolutePath ( char *psz_url );
- bool XURL_IsFileURL ( char *psz_url );
- bool XURL_HasFragment ( char *psz_url );
- char* XURL_GetHostname ( char *psz_url );
- char* XURL_GetSchemeAndHostname ( char *psz_url );
- char* XURL_GetScheme ( char *psz_url );
- char* XURL_GetPath ( char *psz_url );
- char* XURL_GetWithoutFragment ( char *psz_url );
- char* XURL_GetHead ( const char *psz_path );
- #endif /* __XURL_H__ */