src/core/object.cc
changeset 2531 b451b5fc8b57
parent 2529 d5f8bee5fcbd
child 2542 a9b88fdc09d6
     1.1 --- a/src/core/object.cc	Sun Mar 02 06:32:03 2008 +0100
     1.2 +++ b/src/core/object.cc	Sun Mar 02 21:00:37 2008 +0100
     1.3 @@ -1173,6 +1173,17 @@
     1.4    return ok;
     1.5  }
     1.6  bool 
     1.7 +Object::TraceSourceConnectWithContext (std::string name, std::string context, const CallbackBase &cb)
     1.8 +{
     1.9 +  Ptr<const TraceSourceAccessor> accessor = m_tid.LookupTraceSourceByName (name);
    1.10 +  if (accessor == 0)
    1.11 +    {
    1.12 +      return false;
    1.13 +    }
    1.14 +  bool ok = accessor->ConnectWithContext (this, context, cb);
    1.15 +  return ok;
    1.16 +}
    1.17 +bool 
    1.18  Object::TraceSourceDisconnect (std::string name, const CallbackBase &cb)
    1.19  {
    1.20    Ptr<const TraceSourceAccessor> accessor = m_tid.LookupTraceSourceByName (name);