00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Mark Elendt 00008 * Side Effects 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: tools library (C++) 00015 * 00016 * COMMENTS: Houdini path searching. 00017 * With HoudiniFindFile, if the result passed in is a null 00018 * pointer, then the return code will be an allocated string. 00019 * Otherwise, the return code will be a pointer to result 00020 * if the file is found. If no file is found, then the 00021 * return code will be 0. 00022 * HoudiniMakePath() will create all the sub-directories in 00023 * the path specified. For example, if passed /usr/tmp/foo/bar 00024 * There will be a directory foo created in /usr/tmp, and also 00025 * a directory bar in foo. 0 is returned on failure 00026 * 00027 */ 00028 00029 #ifndef __hpath_h__ 00030 #define __hpath_h__ 00031 00032 #include "tools_API.h" 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 #ifdef WIN32 00038 typedef int mode_t; 00039 #define PATH_SEP_CHAR ';' 00040 #define PATH_SEP_STRING ";" 00041 #define PATH_IS_SEP_CHAR(c) ((c) == ';') 00042 #else 00043 #define PATH_SEP_CHAR ':' 00044 #define PATH_SEP_STRING ":" 00045 #define PATH_IS_SEP_CHAR(c) ((c) == ':' || (c) == ';') 00046 #endif 00047 00048 #include <sys/types.h> 00049 00050 tools_API extern int HoudiniMakeDirectory(const char *file, mode_t mode); 00051 00052 #ifdef __cplusplus 00053 } 00054 #endif 00055 00056 #endif
1.5.9