Main Page | Class List | File List | Class Members | File Members | Related Pages

platform.h

Go to the documentation of this file.
00001 /* 00002 * $Id: platform.h,v 1.23.2.5 2003/12/23 20:23:21 jasta Exp $ 00003 * 00004 * Copyright (C) 2001-2003 giFT project (gift.sourceforge.net) 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation; either version 2, or (at your option) any 00009 * later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 */ 00016 00017 #ifndef __PLATFORM_H 00018 #define __PLATFORM_H 00019 00020 /*****************************************************************************/ 00021 00032 /*****************************************************************************/ 00033 00034 #include <sys/stat.h> /* stat macros */ 00035 00036 #ifdef WIN32 00037 # ifndef FD_SETSIZE 00038 # define FD_SETSIZE 1024 00039 # endif 00040 # include <windows.h> 00041 #endif /* !WIN32 */ 00042 00043 /*****************************************************************************/ 00044 00045 EXTERN_C_BEGIN 00046 00047 /*****************************************************************************/ 00048 00055 LIBGIFT_EXPORT 00056 char *platform_data_dir (void); 00057 00068 LIBGIFT_EXPORT 00069 char *platform_plugin_dir (void); 00070 00081 LIBGIFT_EXPORT 00082 char *platform_home_dir (void); 00083 00092 LIBGIFT_EXPORT 00093 char *platform_local_dir (void); 00094 00110 LIBGIFT_EXPORT 00111 bool platform_init (const char *home_dir, const char *local_dir, 00112 const char *data_dir, const char *plugin_dir); 00113 00121 LIBGIFT_EXPORT 00122 void platform_cleanup (void); 00123 00124 /*****************************************************************************/ 00125 00126 EXTERN_C_END 00127 00128 /*****************************************************************************/ 00129 00130 #endif /* __PLATFORM_H */

Generated on Sun Aug 22 07:56:40 2004 by doxygen 1.3.7