libmp3splt
|
00001 /********************************************************** 00002 * 00003 * libmp3splt -- library based on mp3splt, 00004 * for mp3/ogg splitting without decoding 00005 * 00006 * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net> 00007 * Copyright (c) 2005-2011 Alexandru Munteanu - io_fx@yahoo.fr 00008 * 00009 * http://mp3splt.sourceforge.net 00010 * 00011 *********************************************************/ 00012 00013 /********************************************************** 00014 * 00015 * This program is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU General Public License 00017 * as published by the Free Software Foundation; either version 2 00018 * of the License, or (at your option) any later version. 00019 * 00020 * This program is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU General Public License 00026 * along with this program; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00028 * 02111-1307, 00029 * USA. 00030 * 00031 *********************************************************/ 00032 00033 #ifdef __WIN32__ 00034 00035 #ifndef SPLT_WIN32_H 00036 00037 #include <errno.h> 00038 #include <dirent.h> 00039 00040 #include <windows.h> 00041 #include <direct.h> 00042 00043 int scandir(const char *dir, struct dirent ***namelist, 00044 int(*filter)(const struct dirent *), 00045 int(*compar)(const struct dirent **, const struct dirent **)); 00046 00047 int wscandir(const char *dir, struct _wdirent ***namelist, 00048 int(*filter)(const struct _wdirent *), 00049 int(*compar)(const struct _wdirent **, const struct _wdirent **)); 00050 00051 int alphasort(const struct dirent **a, const struct dirent **b); 00052 00053 int walphasort(const struct _wdirent **a, const struct _wdirent **b); 00054 00055 char *splt_w32_utf16_to_utf8(const wchar_t *source); 00056 wchar_t *splt_w32_utf8_to_utf16(const char *source); 00057 int splt_w32_check_if_encoding_is_utf8(const char *source); 00058 00059 int splt_w32_str_starts_with_drive_root_directory(const char *str); 00060 int splt_w32_str_is_drive_root_directory(const char *str); 00061 00062 #define SPLT_WIN32_H 00063 00064 #endif 00065 00066 #endif 00067