envvar.h

Go to the documentation of this file.
00001 /*
00002     envvar.h:
00003 
00004     Copyright (C) 2005 Istvan Varga
00005 
00006     This file is part of Csound.
00007 
00008     The Csound Library is free software; you can redistribute it
00009     and/or modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     Csound is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with Csound; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00021     02111-1307 USA
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  /* CSOUND_ENVVAR_H */
00249 

Generated on Sun Nov 9 00:04:52 2008 for Csound and CsoundAC by  doxygen 1.5.6