[asterisk-commits] mmichelson: branch group/CCSS_Monitor_Restructure r242030 - /team/group/CCSS_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 12:20:07 CST 2010


Author: mmichelson
Date: Thu Jan 21 12:20:04 2010
New Revision: 242030

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242030
Log:
Create a function to call a monitor's destructor without an actual monitor pointer.


Modified:
    team/group/CCSS_Monitor_Restructure/main/ccss.c

Modified: team/group/CCSS_Monitor_Restructure/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS_Monitor_Restructure/main/ccss.c?view=diff&rev=242030&r1=242029&r2=242030
==============================================================================
--- team/group/CCSS_Monitor_Restructure/main/ccss.c (original)
+++ team/group/CCSS_Monitor_Restructure/main/ccss.c Thu Jan 21 12:20:04 2010
@@ -2240,6 +2240,17 @@
 		}
 	}
 	AST_DLLIST_UNLOCK(interface_tree);
+}
+
+static void call_destructor_with_no_monitor(const char * const monitor_type, void *private_data)
+{
+	const struct ast_cc_monitor_callbacks *monitor_callbacks = find_monitor_callbacks(monitor_type);
+
+	if (!monitor_callbacks) {
+		return;
+	}
+
+	monitor_callbacks->destructor2(private_data);
 }
 
 static void cc_core_instance_destructor(void *data)




More information about the asterisk-commits mailing list