summaryrefslogtreecommitdiff
path: root/indra/llmessage/llavatarnamecache.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llmessage/llavatarnamecache.h')
-rw-r--r--indra/llmessage/llavatarnamecache.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/llmessage/llavatarnamecache.h b/indra/llmessage/llavatarnamecache.h
index 369c8f8fff..e2166b568f 100644
--- a/indra/llmessage/llavatarnamecache.h
+++ b/indra/llmessage/llavatarnamecache.h
@@ -35,6 +35,8 @@
#include "llavatarname.h" // for convenience
+#include <boost/signals2.hpp>
+
namespace LLAvatarNameCache
{
void initClass();
@@ -51,10 +53,14 @@ namespace LLAvatarNameCache
// otherwise returns false
bool get(const LLUUID& agent_id, LLAvatarName *av_name);
+ typedef boost::signals2::signal<
+ void (const LLUUID& agent_id, const LLAvatarName& av_name)>
+ callback_signal_t;
+ typedef callback_signal_t::slot_type callback_slot_t;
+
// Fetches name information and calls callback.
// If name information is in cache, callback will be called immediately.
- typedef void (*name_cache_callback_t)(const LLUUID& agent_id, const LLAvatarName& av_name);
- void get(const LLUUID& agent_id, name_cache_callback_t callback);
+ void get(const LLUUID& agent_id, callback_slot_t slot);
// Sends an update to the server
void setDisplayName(const LLUUID& agent_id, const std::string& display_name);