aboutsummaryrefslogtreecommitdiff
path: root/src/z_skeleton.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-09 10:19:04 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-10-09 10:19:04 +0000
commitd2eec74a4d8c21aad495ba61539486b24d7ab8dc (patch)
tree8340a62efe3eb1d42dc40265723c2704d3bd6452 /src/z_skeleton.c
moved from zexy/zexy to zexysvn2git-root
svn path=/trunk/externals/zexy/; revision=169
Diffstat (limited to 'src/z_skeleton.c')
-rw-r--r--src/z_skeleton.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/z_skeleton.c b/src/z_skeleton.c
new file mode 100644
index 0000000..e13c385
--- /dev/null
+++ b/src/z_skeleton.c
@@ -0,0 +1,57 @@
+
+/* 1008:forum::für::umläute:2001 */
+
+/*
+ skeleton : skeleton-code for message-objects
+*/
+
+#include "zexy.h"
+
+/* ------------------------- skeleton ------------------------------- */
+
+/*
+MESSAGE SKELETON: simple and easy
+*/
+
+static t_class *skeleton_class;
+
+typedef struct _skeleton
+{
+ t_object x_obj;
+
+} t_skeleton;
+
+
+static void skeleton_float(t_skeleton *x, t_float f)
+{
+
+}
+
+static void skeleton_list(t_skeleton *x, t_symbol *s, int argc, t_atom *argv)
+{
+
+}
+
+static void skeleton_foo(t_skeleton *x, t_float f)
+{
+
+}
+
+static void *skeleton_new(t_floatarg f)
+{
+ t_skeleton *x = (t_skeleton *)pd_new(skeleton_class);
+
+ return (x);
+}
+
+void z_skeleton_setup(void)
+{
+ skeleton_class = class_new(gensym("skeleton"), (t_newmethod)skeleton_new,
+ 0, sizeof(t_skeleton), 0, A_DEFFLOAT, 0);
+
+ class_addlist (skeleton_class, skeleton_list);
+ class_addfloat (skeleton_class, skeleton_float);
+ class_addmethod(skeleton_class, (t_method)skeleton_foo, gensym("foo"), A_DEFFLOAT, 0);
+
+ class_sethelpsymbol(skeleton_class, gensym("zexy/skeleton"));
+}