summaryrefslogtreecommitdiff
path: root/main/stasis_cache.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-03-15 12:58:23 +0000
committerKinsey Moore <kmoore@digium.com>2013-03-15 12:58:23 +0000
commit8c444f823b4834a426f65a75ae1f3f978a9745d0 (patch)
tree861e56b013fbc6628edb7e929a1f2dc31f9f6897 /main/stasis_cache.c
parentad5f3a5759a6e86e364811198432dcc7597f6109 (diff)
Make stasis unsubscription functions return NULL
Unsubscribing things in Asterisk seems to very commonly follow with NULLing out the variable that was unsubscribed. This change makes that a bit simpler. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stasis_cache.c')
-rw-r--r--main/stasis_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/stasis_cache.c b/main/stasis_cache.c
index f8518ce09..a82492870 100644
--- a/main/stasis_cache.c
+++ b/main/stasis_cache.c
@@ -65,7 +65,7 @@ struct stasis_topic *stasis_caching_get_topic(struct stasis_caching_topic *cachi
return caching_topic->topic;
}
-void stasis_caching_unsubscribe(struct stasis_caching_topic *caching_topic)
+struct stasis_caching_topic *stasis_caching_unsubscribe(struct stasis_caching_topic *caching_topic)
{
if (caching_topic) {
if (stasis_subscription_is_subscribed(caching_topic->sub)) {
@@ -74,6 +74,7 @@ void stasis_caching_unsubscribe(struct stasis_caching_topic *caching_topic)
ast_log(LOG_ERROR, "stasis_caching_topic unsubscribed multiple times\n");
}
}
+ return NULL;
}
struct cache_entry {