envvar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef CSOUND_ENVVAR_H
00025 #define CSOUND_ENVVAR_H
00026
00027 #if !defined(__BUILDING_LIBCSOUND)
00028 # error "Csound plugins and host applications should not include envvar.h"
00029 #endif
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00040 int csoundSetEnv(CSOUND *csound, const char *name, const char *value);
00041
00048 int csoundAppendEnv(CSOUND *csound, const char *name, const char *value);
00049
00056 int csoundPrependEnv(CSOUND *csound, const char *name, const char *value);
00057
00064 int csoundInitEnv(CSOUND *csound);
00065
00073 int csoundParseEnv(CSOUND *csound, const char *s);
00074
00076 char *csoundConvertPathname(CSOUND *csound, const char *filename);
00077
00079 int csoundIsNameFullpath(const char *name);
00080
00084 int csoundIsNameRelativePath(const char *name);
00085
00087 int csoundIsNameJustFilename(const char *name);
00088
00096 char* csoundConcatenatePaths(CSOUND* csound, const char *path1, const char *path2);
00097
00104 char *csoundSplitDirectoryFromPath(CSOUND* csound, const char * path);
00105
00107 char *csoundSplitFilenameFromPath(CSOUND* csound, const char * path);
00108
00129 char *csoundFindInputFile(CSOUND *csound,
00130 const char *filename, const char *envList);
00131
00153 char *csoundFindOutputFile(CSOUND *csound,
00154 const char *filename, const char *envList);
00155
00194 void *csoundFileOpen(CSOUND *csound, void *fd, int type,
00195 const char *name, void *param, const char *env);
00196
00211 void *csoundFileOpenWithType(CSOUND *csound, void *fd, int type,
00212 const char *name, void *param, const char *env,
00213 int csFileType, int isTemporary);
00214
00225 void *csoundCreateFileHandle(CSOUND *,
00226 void *fd, int type, const char *fullName);
00227
00231 char *csoundGetFileName(void *fd);
00232
00236 int csoundFileClose(CSOUND *, void *fd);
00237
00241 char *csoundGetDirectoryForPath(CSOUND* csound, const char * path);
00242
00243
00244 #ifdef __cplusplus
00245 }
00246 #endif
00247
00248 #endif
00249