From 053845e60bc1f6143e7c50aa10069a18405c2161 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 14 Aug 2003 14:26:06 +0000 Subject: *** empty log message *** svn path=/trunk/externals/miXed/; revision=845 --- shared/unstable/fragile.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'shared/unstable/fragile.c') diff --git a/shared/unstable/fragile.c b/shared/unstable/fragile.c index 3267721..a5c9584 100644 --- a/shared/unstable/fragile.c +++ b/shared/unstable/fragile.c @@ -65,3 +65,29 @@ t_outconnect *fragile_outlet_connections(t_outlet *o) { return (o ? o->o_connections : 0); } + +/* These are local to m_obj.c. */ +union inletunion +{ + t_symbol *iu_symto; + t_gpointer *iu_pointerslot; + t_float *iu_floatslot; + t_symbol **iu_symslot; + t_sample iu_floatsignalvalue; +}; + +struct _inlet +{ + t_pd i_pd; + struct _inlet *i_next; + t_object *i_owner; + t_pd *i_dest; + t_symbol *i_symfrom; + union inletunion i_un; +}; + +/* simplified obj_findsignalscalar(), works for non-left inlets */ +t_sample *fragile_inlet_signalscalar(t_inlet *i) +{ + return (&i->i_un.iu_floatsignalvalue); +} -- cgit v1.2.1