[PD-cvs] pd/src m_pd.h,1.4.4.11.2.33.2.71,1.4.4.11.2.33.2.72

Mathieu Bouchard matju at users.sourceforge.net
Wed Aug 15 20:47:24 CEST 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14801

Modified Files:
      Tag: desiredata
	m_pd.h 
Log Message:
added gobj_onsubscribe and more doc.


Index: m_pd.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v
retrieving revision 1.4.4.11.2.33.2.71
retrieving revision 1.4.4.11.2.33.2.72
diff -C2 -d -r1.4.4.11.2.33.2.71 -r1.4.4.11.2.33.2.72
*** m_pd.h	15 Aug 2007 17:30:31 -0000	1.4.4.11.2.33.2.71
--- m_pd.h	15 Aug 2007 18:47:22 -0000	1.4.4.11.2.33.2.72
***************
*** 587,594 ****
      class_domainsignalin(c, (char *)(&((type *)0)->field) - (char *)0)
  
! typedef void (*t_notice)(     struct _gobj *x, struct _gobj *origin, int argc, t_atom *argv);
! typedef void (*t_onsubscribe)(struct _gobj *x, struct _gobj *origin);
! EXTERN void class_setnotice(     t_class *c, t_notice      notice); /* observer receives notice */
! EXTERN void class_setonsubscribe(t_class *c, t_onsubscribe onsubscribe); /* observable sends initial data to observer */
  
  /* prototype for functions to save Pd's to a binbuf */
--- 587,601 ----
      class_domainsignalin(c, (char *)(&((type *)0)->field) - (char *)0)
  
! /* in "class" observer: observable calls this to notify of a change */
! typedef void (*t_notice)(     t_gobj *x, t_gobj *origin, int argc, t_atom *argv);
! EXTERN void class_setnotice(t_class *c, t_notice notice);
! 
! /* in "class" observable: observable sends initial data to observer */
! /* this is called by gobj_subscribe to find out all the indirect subscriptions of aggregators. */
! /* every class that redefines this is an aggregator; every aggregator should redefine this. */
! /* "calling super" is done by calling gobj_onsubscribe with same args */
! typedef void (*t_onsubscribe)(t_gobj *x, t_gobj *origin);
! EXTERN void class_setonsubscribe(t_class *c, t_onsubscribe onsubscribe);
! EXTERN void gobj_onsubscribe(t_gobj *x, t_gobj *origin); /* default handler, that you may inherit from */
  
  /* prototype for functions to save Pd's to a binbuf */





More information about the Pd-cvs mailing list