diff options
author | callum <none@none> | 2009-11-13 11:05:18 -0800 |
---|---|---|
committer | callum <none@none> | 2009-11-13 11:05:18 -0800 |
commit | 7e2d2406584ffe3a0c2f87734ada194a92b82df6 (patch) | |
tree | f8c4b455ad3cd8dcd7bbe43086c17dacf948ca4f /indra/llcommon/lleventdispatcher.cpp | |
parent | be72748d2a69ddda51c4b41c0c8f2beba077b265 (diff) | |
parent | 69ca84a6a421ff0453730e181cccabe76bf5e9aa (diff) |
Merge to tip
Diffstat (limited to 'indra/llcommon/lleventdispatcher.cpp')
-rw-r--r-- | indra/llcommon/lleventdispatcher.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llcommon/lleventdispatcher.cpp b/indra/llcommon/lleventdispatcher.cpp index 017bf3a521..5fa6059718 100644 --- a/indra/llcommon/lleventdispatcher.cpp +++ b/indra/llcommon/lleventdispatcher.cpp @@ -121,6 +121,20 @@ LLEventDispatcher::Callable LLEventDispatcher::get(const std::string& name) cons return found->second.mFunc; } +LLSD LLEventDispatcher::getMetadata(const std::string& name) const +{ + DispatchMap::const_iterator found = mDispatch.find(name); + if (found == mDispatch.end()) + { + return LLSD(); + } + LLSD meta; + meta["name"] = name; + meta["desc"] = found->second.mDesc; + meta["required"] = found->second.mRequired; + return meta; +} + LLDispatchListener::LLDispatchListener(const std::string& pumpname, const std::string& key): LLEventDispatcher(pumpname, key), mPump(pumpname, true), // allow tweaking for uniqueness |