diff options
author | Joshua Colp <jcolp@digium.com> | 2016-07-13 18:52:56 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-07-13 18:52:56 -0500 |
commit | 355fc081e616b5e08ebb37300aa140fe87c7785d (patch) | |
tree | 44a8f1c755205bfeea1a13dc98e03e04e67ed776 /main | |
parent | 8cea01ab1b3e07282487d7efe1888f290cc4280a (diff) | |
parent | 1ec4f8dd003b92c262a33f6e91c3dc538681bae5 (diff) |
Merge "res/res_corosync: Raise a Stasis message on node join/leave events" into 13
Diffstat (limited to 'main')
-rw-r--r-- | main/stasis_system.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/stasis_system.c b/main/stasis_system.c index e232b8e8a..67970bd74 100644 --- a/main/stasis_system.c +++ b/main/stasis_system.c @@ -115,6 +115,7 @@ STASIS_MESSAGE_TYPE_DEFN(ast_cc_failure_type, STASIS_MESSAGE_TYPE_DEFN(ast_cc_monitorfailed_type, .to_ami = cc_monitorfailed_to_ami, ); +STASIS_MESSAGE_TYPE_DEFN(ast_cluster_discovery_type); void ast_system_publish_registry(const char *channeltype, const char *username, const char *domain, const char *status, const char *cause) { @@ -362,6 +363,7 @@ static void stasis_system_cleanup(void) STASIS_MESSAGE_TYPE_CLEANUP(ast_cc_recallcomplete_type); STASIS_MESSAGE_TYPE_CLEANUP(ast_cc_failure_type); STASIS_MESSAGE_TYPE_CLEANUP(ast_cc_monitorfailed_type); + STASIS_MESSAGE_TYPE_CLEANUP(ast_cluster_discovery_type); } /*! \brief Initialize the system level items for \ref stasis */ @@ -422,5 +424,9 @@ int ast_stasis_system_init(void) return -1; } + if (STASIS_MESSAGE_TYPE_INIT(ast_cluster_discovery_type) != 0) { + return -1; + } + return 0; } |