home changes contents help options

m_pd.h

string-related

binbufs

t_binbuf *binbuf_new(void);

void binbuf_free(t_binbuf *x);

t_binbuf *binbuf_duplicate(t_binbuf *y);

void binbuf_text(t_binbuf *x, char *text, size_t size);

void binbuf_gettext(t_binbuf *x, char **bufp, int *lengthp);

void binbuf_clear(t_binbuf *x);

void binbuf_add(t_binbuf *x, int argc, t_atom *argv);

void binbuf_addv(t_binbuf *x, char *fmt, ...);

void binbuf_addbinbuf(t_binbuf *x, t_binbuf *y);

void binbuf_addsemi(t_binbuf *x);

void binbuf_restore(t_binbuf *x, int argc, t_atom *argv);

void binbuf_print(t_binbuf *x);

int binbuf_getnatom(t_binbuf *x);

t_atom *binbuf_getvec(t_binbuf *x);

void binbuf_eval(t_binbuf *x, t_pd *target, int argc, t_atom *argv);

int binbuf_read(t_binbuf *b, char *filename, char *dirname, int crflag);

int binbuf_read_via_path(t_binbuf *b, char *filename, char *dirname, int crflag);

int binbuf_write(t_binbuf *x, char *filename, char *dir, int crflag);

void binbuf_evalfile(t_symbol *name, t_symbol *dir);

t_symbol *binbuf_realizedollsym(t_symbol *s, int ac, t_atom *av, int tonew);

GUI-related

pointers

void gpointer_init(t_gpointer *gp);

void gpointer_copy(const t_gpointer *gpfrom, t_gpointer *gpto);

void gpointer_unset(t_gpointer *gp);

int gpointer_check(const t_gpointer *gp, int headok);

canvases

void glob_setfilename(void *dummy, t_symbol *name, t_symbol *dir);

void canvas_setargs(int argc, t_atom *argv);

void canvas_getargs(int *argcp, t_atom **argvp);

t_symbol *canvas_getcurrentdir(void);

t_glist *canvas_getcurrent(void);

void canvas_makefilename(t_glist *c, char *file, char *result, int resultsize);

t_symbol *canvas_getdir(t_glist *x);

int sys_fontwidth(int fontsize);

int sys_fontheight(int fontsize);

void canvas_dataproperties(t_glist *x, t_scalar *sc, t_binbuf *b);

widget behaviors

_STRUCT _widgetbehavior;

#define t_widgetbehavior struct _widgetbehavior

_STRUCT _parentwidgetbehavior;

#define t_parentwidgetbehavior struct _parentwidgetbehavior t_parentwidgetbehavior *pd_getparentwidget(t_pd *x);

s_stuff.h

polling file handling

pollfns

typedef void (*t_fdpollfn)(void *ptr, int fd);

void sys_addpollfn(int fd, t_fdpollfn fn, void *ptr);

void sys_rmpollfn(int fd);

d_delay.c

signal delay stuff

int ugen_getsortno(void)

returns an integer which increases eachtime DSP is restarted. You can add the function call (to the ugen chain for instance) each time you see ugen_getsortno() return an integer greater than the previous one