csdl.h

Go to the documentation of this file.
00001 /*
00002     csdl.h:
00003 
00004     Copyright (C) 2002 John ffitch
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_CSDL_H
00025 #define CSOUND_CSDL_H
00026 
00027 #ifdef __BUILDING_LIBCSOUND
00028 #undef __BUILDING_LIBCSOUND
00029 #endif
00030 
00031 #include "csoundCore.h"
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 
00037 
00038 
00039 #undef Str
00040 #define Str(x)  (csound->LocalizeString(x))
00041 
00042 PUBLIC  long    csound_opcode_init(CSOUND *, OENTRY **);
00043 PUBLIC  NGFENS  *csound_fgen_init(CSOUND *);
00044 
00045 PUBLIC  int     csoundModuleCreate(CSOUND *);
00046 PUBLIC  int     csoundModuleInit(CSOUND *);
00047 PUBLIC  int     csoundModuleDestroy(CSOUND *);
00048 PUBLIC  const char  *csoundModuleErrorCodeToString(int);
00049 
00050 PUBLIC  int     csoundModuleInfo(void);
00051 
00052 #define LINKAGE                                                         \
00053 PUBLIC long csound_opcode_init(CSOUND *csound, OENTRY **ep)             \
00054 {   (void) csound; *ep = localops; return (long) sizeof(localops);  }   \
00055 PUBLIC int csoundModuleInfo(void)                                       \
00056 { return ((CS_APIVERSION << 16) + (CS_APISUBVER << 8) + (int) sizeof(MYFLT)); }
00057 
00058 #define FLINKAGE                                                        \
00059 PUBLIC NGFENS *csound_fgen_init(CSOUND *csound)                         \
00060 {   (void) csound; return localfgens;                               }   \
00061 PUBLIC int csoundModuleInfo(void)                                       \
00062 { return ((CS_APIVERSION << 16) + (CS_APISUBVER << 8) + (int) sizeof(MYFLT)); }
00063 
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067 
00068 #endif      /* CSOUND_CSDL_H */
00069 

Generated on Tue Apr 14 11:00:49 2009 for Csound and CsoundAC by  doxygen 1.5.8