X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Frice_gles%2Fsrc%2Fosal_files.h;fp=source%2Frice_gles%2Fsrc%2Fosal_files.h;h=1890e944ff8c9acdcefbfe553ba3f05e91a2eb8b;hb=d07c171fa694cae985ad7045f9ce2b2f1a5699b4;hp=0000000000000000000000000000000000000000;hpb=ca22e7b76883b946060a6b40bb8709c1981e1cf6;p=mupen64plus-pandora.git diff --git a/source/rice_gles/src/osal_files.h b/source/rice_gles/src/osal_files.h new file mode 100644 index 0000000..1890e94 --- /dev/null +++ b/source/rice_gles/src/osal_files.h @@ -0,0 +1,63 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus-ui-console - osal_files.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2009 Richard Goedeken * + * * + * 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. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/* This header file is for all kinds of system-dependent file handling + * + */ + +#if !defined(OSAL_FILES_H) +#define OSAL_FILES_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "m64p_types.h" + +#if defined(WIN32) + #define PATH_MAX _MAX_PATH + #define OSAL_DIR_SEPARATOR_STR "\\" + #define OSAL_DIR_SEPARATOR_CHAR '\\' + #define strdup _strdup +#else /* Not WIN32 */ + #include // for PATH_MAX + #define OSAL_DIR_SEPARATOR_STR "/" + #define OSAL_DIR_SEPARATOR_CHAR '/' + + /* PATH_MAX only may be defined by limits.h */ + #ifndef PATH_MAX + #define PATH_MAX 4096 + #endif +#endif + +int osal_is_directory(const char* name); +int osal_mkdirp(const char *dirpath, int mode); + +void * osal_search_dir_open(const char *pathname); +const char *osal_search_dir_read_next(void * dir_handle); +void osal_search_dir_close(void * dir_handle); + +#ifdef __cplusplus +} +#endif + +#endif /* #define OSAL_FILES_H */ +