From 1471f1a6b3cf6169c6aae49f2cef643bc3c3c872 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 27 Oct 2004 18:19:51 +0000 Subject: fixes for dsp and abstraction inlets a few fixes dyn documentation more functionality only one dyn_id type for clarity better interface for listeners dyn_Finish instead of dyn_Flush all the major things are working in dyn! OSX checkin name changes for svn repository small fixes doesn't really work, but should compile dyn python module checkin now able to have real root patchers initial coding a few more things deleted test/mar patches (moved to /doc branch) dyn SWIG module dyn additions a _few_ changes in UIUI, establishing node groups made API headers monolithic first working dyn! updated todo list svn path=/trunk/; revision=2173 --- externals/grill/dyn/dyn_conn.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 externals/grill/dyn/dyn_conn.cpp (limited to 'externals/grill/dyn/dyn_conn.cpp') diff --git a/externals/grill/dyn/dyn_conn.cpp b/externals/grill/dyn/dyn_conn.cpp new file mode 100644 index 00000000..4300062c --- /dev/null +++ b/externals/grill/dyn/dyn_conn.cpp @@ -0,0 +1,40 @@ +/* +dyn - dynamical object management + +Copyright (c)2003-2004 Thomas Grill (gr@grrrr.org) +For information on usage and redistribution, and for a DISCLAIMER OF ALL +WARRANTIES, see the file, "license.txt," in this distribution. +*/ + +#include "dyn_proto.h" + +dyn_conn::~dyn_conn() +{ + dyn_patchable *sobj = NULL,*dobj = NULL; + if(src != DYN_ID_NONE && (sobj = src->Patchable())) + sobj->RmvOutlet(this); + + if(dst != DYN_ID_NONE && (dobj = dst->Patchable())) + dobj->RmvInlet(this); + + if(sobj || dobj) { + src = dst = DYN_ID_NONE; + ident->Callback(DYN_SIGNAL_DISCONN); + } + + if(sobj && dobj) { +// sys_lock(); + obj_disconnect((t_object *)sobj->pdobj,slet,(t_object *)dobj->pdobj,dlet); +// sys_unlock(); + } +} + +/* +void dyn_conn::Invalidate() +{ + if(src != DYN_ID_NONE || dst != DYN_ID_NONE) { + src = dst = DYN_ID_NONE; + ident->Callback(DYN_SIGNAL_DISCONN); + } +} +*/ \ No newline at end of file -- cgit v1.2.1