00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __TOOLS_H__
00010 #define __TOOLS_H__
00011
00012 #include "tools_API.h"
00013 #include <sys/types.h>
00014
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018
00019
00020
00021
00022 tools_API extern int Parse(char *str, char *argv[], int max);
00023 tools_API extern int ParseAlloc(char *str, char *argv[], int max);
00024 tools_API extern int ParseInPlace(char *str, char *argv[], int max);
00025
00026
00027
00028
00029 tools_API extern void HoudiniError(const char *format, ...);
00030 tools_API extern void HoudiniWarning(const char *format, ...);
00031 tools_API extern void Silent(int flag);
00032 tools_API extern void Libprintf(const char *format, ...);
00033 tools_API extern void LibprintfErrno(const char *format, ...);
00034 tools_API extern void LibSilent(int flag);
00035 tools_API extern void Libperror(const char *s);
00036 tools_API extern const char *LibGetError(void);
00037
00038
00039
00040
00041 tools_API extern int HoudiniSearchPath(const char *file,
00042 const char *path, char *result);
00043
00044
00045
00046 tools_API extern int FindAllPath(const char *file,
00047 const char *path,
00048 char *result[],
00049 int size);
00050
00051 tools_API extern int PathSearch(const char *file,
00052 const char *pathvar, char *result);
00053 tools_API extern int PathSearchDefault(const char *file,
00054 const char *pathvar,
00055 const char *default_path,
00056 char *result);
00057 tools_API extern char *PrismsGetPath(const char *relative_path);
00058
00059
00060
00061
00062 tools_API extern int GetPrismsFileType(const char *file);
00063 tools_API extern const char *GetPrismsFileExtension(int type);
00064
00065
00066
00067
00068 tools_API extern int Parse(char *str, char *argv[], int max);
00069 tools_API extern int ParseAlloc(char *str, char *argv[], int max);
00070 tools_API extern int ParseInPlace(char *str, char *argv[], int max);
00071
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif