diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-07 13:18:32 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-07 13:18:32 +0000 |
commit | 88ae96ff82ddc836a822a55aef17ea66ca06ac65 (patch) | |
tree | 28b5260ba5e0f2ced6f99ea5a28f49546a3322e6 /pd/PureData.cs | |
parent | 6ef70933fef8baaf373e43b3f2a02f3a6b083171 (diff) |
restructured project (MSVC can't cope well with folder/classname mismatch)
search for CLR DLLs in PD path
first steps to efficient method handling
svn path=/trunk/externals/clr/; revision=4656
Diffstat (limited to 'pd/PureData.cs')
-rw-r--r-- | pd/PureData.cs | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/pd/PureData.cs b/pd/PureData.cs deleted file mode 100644 index d6ad3d9..0000000 --- a/pd/PureData.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Runtime.CompilerServices; // for extern import -using System.Runtime.InteropServices; // for structures - -namespace PureData -{ - // PD core functions - public unsafe class Core - { - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void Post(string message); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void PostError(string message); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void PostBug(string message); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void PostVerbose(string message); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - internal extern static void *SymGen(string sym); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - internal extern static string SymEval(void *sym); - } - - // This is the base class for a PD/CLR external - public unsafe class External - : Core - { - // PD object pointer - private readonly void *ptr; - - protected virtual void MethodBang() { throw new System.NotImplementedException("Bang handler not defined"); } - - protected virtual void MethodFloat(float f) { throw new System.NotImplementedException("Float handler not defined"); } - - protected virtual void MethodSymbol(Symbol s) { throw new System.NotImplementedException("Symbol handler not defined"); } - - protected virtual void MethodPointer(Pointer p) { throw new System.NotImplementedException("Pointer handler not defined"); } - - protected virtual void MethodList(AtomList lst) { throw new System.NotImplementedException("List handler not defined"); } - - protected virtual void MethodAnything(Symbol tag,AtomList lst) { throw new System.NotImplementedException("Anything handler not defined"); } - } -} |