HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hpath.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: tools library (C++)
7  *
8  * COMMENTS: Houdini path searching.
9  * With HoudiniFindFile, if the result passed in is a null
10  * pointer, then the return code will be an allocated string.
11  * Otherwise, the return code will be a pointer to result
12  * if the file is found. If no file is found, then the
13  * return code will be 0.
14  * HoudiniMakePath() will create all the sub-directories in
15  * the path specified. For example, if passed /usr/tmp/foo/bar
16  * There will be a directory foo created in /usr/tmp, and also
17  * a directory bar in foo. 0 is returned on failure
18  *
19  */
20 
21 #ifndef __hpath_h__
22 #define __hpath_h__
23 
24 #include "tools_API.h"
25 
26 #ifdef WIN32
27  typedef int mode_t;
28  #define PATH_SEP_CHAR ';'
29  #define PATH_SEP_STRING ";"
30  #define PATH_IS_SEP_CHAR(c) ((c) == ';')
31 #else
32  #define PATH_SEP_CHAR ':'
33  #define PATH_SEP_STRING ":"
34  #define PATH_IS_SEP_CHAR(c) ((c) == ':' || (c) == ';')
35 #endif
36 
37 #include <sys/types.h>
38 
39 tools_API extern int HoudiniMakeDirectory(const char *file, mode_t mode);
40 
41 #endif
tools_API int HoudiniMakeDirectory(const char *file, mode_t mode)
GLenum mode
Definition: glcorearb.h:99
#define tools_API
Definition: tools_API.h:10