aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-01-03 04:35:22 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-01-03 04:35:22 +0000
commitcdf86b37d6180f5f88393c02d8f5e19e2e645ad6 (patch)
tree69f866117656c701f9febb83bcea9fa67ae9c955 /externals/grill/flext/source/flext.cpp
parent10e0265429983876e2fd69950df4d51c8faf5635 (diff)
""
svn path=/trunk/; revision=317
Diffstat (limited to 'externals/grill/flext/source/flext.cpp')
-rw-r--r--externals/grill/flext/source/flext.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp
index 13ed9c48..c13d8732 100644
--- a/externals/grill/flext/source/flext.cpp
+++ b/externals/grill/flext/source/flext.cpp
@@ -27,8 +27,8 @@ flext_base::flext_base():
insigs(0),outsigs(0),
outlets(NULL),outattr(NULL),
distmsgs(false),
- methhead(new itemarr),attrhead(new itemarr), //attrcnt(0),
- clmethhead(ClMeths(thisClass())),clattrhead(ClAttrs(thisClass())),
+ methhead(new itemarr),attrhead(new itemarr),
+ clmethhead(ClMeths(thisClassId())),clattrhead(ClAttrs(thisClassId())),
inlets(NULL)
#if FLEXT_SYS == FLEXT_SYS_MAX
,indesc(NULL),outdesc(NULL)
@@ -125,8 +125,10 @@ bool flext_base::Init()
/*! Set up proxy classes and basic methods at class creation time
This ensures that they are processed before the registered flext messages
*/
-void flext_base::Setup(t_class *c)
+void flext_base::Setup(t_classid id)
{
+ t_class *c = getClass(id);
+
add_method(c,cb_help,"help");
add_loadbang(c,cb_loadbang);
#if FLEXT_SYS == FLEXT_SYS_MAX
@@ -134,7 +136,7 @@ void flext_base::Setup(t_class *c)
#endif
if(process_attributes)
- AddMethod(c,0,"getattributes",(methfun)cb_ListAttrib);
+ AddMethod(id,0,"getattributes",(methfun)cb_ListAttrib);
SetProxies(c);