aboutsummaryrefslogtreecommitdiff
path: root/src/z_skeleton.c
blob: e13c385a41a2208a6508563cdba0537594a40b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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"));
}