[asterisk-commits] russell: branch russell/misdn_cc_channels r189345 - /team/russell/misdn_cc_ch...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 20 11:01:23 CDT 2009


Author: russell
Date: Mon Apr 20 11:01:19 2009
New Revision: 189345

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=189345
Log:
move ds_info declaration down a bit

Modified:
    team/russell/misdn_cc_channels/channels/chan_misdn.c

Modified: team/russell/misdn_cc_channels/channels/chan_misdn.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/misdn_cc_channels/channels/chan_misdn.c?view=diff&rev=189345&r1=189344&r2=189345
==============================================================================
--- team/russell/misdn_cc_channels/channels/chan_misdn.c (original)
+++ team/russell/misdn_cc_channels/channels/chan_misdn.c Mon Apr 20 11:01:19 2009
@@ -153,15 +153,6 @@
 struct misdn_cc_caller {
 	/*! \brief The channel that initialized call completion services */
 	struct ast_channel *chan;
-};
-
-static void misdn_cc_ds_destroy(void *data);
-static void *misdn_cc_ds_duplicate(void *data);
-
-static const struct ast_datastore_info misdn_cc_ds_info = {
-	.type      = "misdn_cc",
-	.destroy   = misdn_cc_ds_destroy,
-	.duplicate = misdn_cc_ds_duplicate,
 };
 
 struct misdn_cc_notify {
@@ -825,6 +816,14 @@
 
 	return cc_caller;
 }
+#endif	/* defined(AST_MISDN_ENHANCEMENTS) */
+
+#if defined(AST_MISDN_ENHANCEMENTS)
+static const struct ast_datastore_info misdn_cc_ds_info = {
+	.type      = "misdn_cc",
+	.destroy   = misdn_cc_ds_destroy,
+	.duplicate = misdn_cc_ds_duplicate,
+};
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
 #if defined(AST_MISDN_ENHANCEMENTS)




More information about the asterisk-commits mailing list