diff options
author | Jonathan Rose <jrose@digium.com> | 2013-05-03 18:03:26 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-05-03 18:03:26 +0000 |
commit | 1eac5a798899713501ae9f647ecd8b035f74eecd (patch) | |
tree | 34e40bff5805f7a117856f4078773aea16f2f8de /main/event.c | |
parent | e236c2ea36f9b9e84e40ebf9cf0baf8d0ce04322 (diff) |
Stasis: Convert network change events into network change stasis messages
(issue ASTERISK-21103)
Review: https://reviewboard.asterisk.org/r/2490/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/event.c')
-rw-r--r-- | main/event.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/main/event.c b/main/event.c index d97b04336..323407cdf 100644 --- a/main/event.c +++ b/main/event.c @@ -142,7 +142,6 @@ static int ast_event_cmp(void *obj, void *arg, int flags); static int ast_event_hash_mwi(const void *obj, const int flags); static int ast_event_hash_devstate(const void *obj, const int flags); static int ast_event_hash_devstate_change(const void *obj, const int flags); -static int ast_event_hash_presence_state_change(const void *obj, const int flags); #ifdef LOW_MEMORY #define NUM_CACHE_BUCKETS 17 @@ -189,10 +188,6 @@ static struct cache_events ast_event_cache[AST_EVENT_TOTAL] = { .hash_fn = ast_event_hash_devstate_change, .cache_args = { AST_EVENT_IE_DEVICE, AST_EVENT_IE_EID, }, }, - [AST_EVENT_PRESENCE_STATE] = { - .hash_fn = ast_event_hash_presence_state_change, - .cache_args = { AST_EVENT_IE_PRESENCE_STATE, }, - }, }; /*! @@ -1614,22 +1609,6 @@ static int ast_event_hash_devstate_change(const void *obj, const int flags) return ast_str_hash(ast_event_get_ie_str(event, AST_EVENT_IE_DEVICE)); } -/*! - * \internal - * \brief Hash function for AST_EVENT_PRESENCE_STATE - * - * \param[in] obj an ast_event - * \param[in] flags unused - * - * \return hash value - */ -static int ast_event_hash_presence_state_change(const void *obj, const int flags) -{ - const struct ast_event *event = obj; - - return ast_str_hash(ast_event_get_ie_str(event, AST_EVENT_IE_PRESENCE_PROVIDER)); -} - static int ast_event_hash(const void *obj, const int flags) { const struct ast_event_ref *event_ref; |