/* code for foo1 pd class */

#include "m_pd.h"

typedef struct foo1
{
  t_object t_ob;
} t_foo1;

void foo1_float(t_foo1 *x, t_floatarg f)
{
    post("foo1: %f", f);
}

void foo1_rats(t_foo1 *x)
{
    post("foo1: rats");
}

void foo1_free() { }

t_class *foo1_class;

void *foo1_new()
{
    t_foo1 *x = (t_foo1 *)pd_new(foo1_class);
    post("foo1_new");
    return (void *)x;
}

foo1_setup()
{
    post("foo1_setup");
    foo1_class = class_new(gensym("foo1"), foo1_new, 0,
    	sizeof(t_foo1), 0, 0);
    class_addmethod(foo1_class, foo1_rats, gensym("rats"), 0);
    class_addfloat(foo1_class, foo1_float);
}

