aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/dyn/dyn_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/dyn/dyn_proto.h')
-rw-r--r--externals/grill/dyn/dyn_proto.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/externals/grill/dyn/dyn_proto.h b/externals/grill/dyn/dyn_proto.h
new file mode 100644
index 00000000..b2b82710
--- /dev/null
+++ b/externals/grill/dyn/dyn_proto.h
@@ -0,0 +1,29 @@
+/*
+dyn - dynamical object management
+
+Copyright (c)2003-2004 Thomas Grill (gr@grrrr.org)
+For information on usage and redistribution, and for a DISCLAIMER OF ALL
+WARRANTIES, see the file, "license.txt," in this distribution.
+*/
+
+#ifndef __DYN_PROTO_H
+#define __DYN_PROTO_H
+
+#include "dyn_data.h"
+
+// \todo really align..
+inline void *NewAligned(int n) { return new char[n]; }
+inline void FreeAligned(void *b) { delete[] (char *)b; }
+
+extern t_class *pxin_class,*pxout_class;
+extern t_class *pxins_class,*pxouts_class;
+
+extern const t_symbol *sym_dyncanvas;
+extern const t_symbol *sym_dynsxin,*sym_dynsxout,*sym_dynpxin,*sym_dynpxout;
+
+
+void *NewPDObject(int type,t_glist *glist,const t_symbol *hdr,int argc = 0,const t_atom *argv = NULL);
+dyn_ident *NewObject(int type,dyn_callback cb,dyn_ident *owner,const t_symbol *hdr,int argc = 0,const t_atom *argv = NULL);
+void DelObject(dyn_ident *obj);
+
+#endif