[svn-commits] qwell: branch certified-1.8.11 r368964 - /certified/branches/1.8.11/apps/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 14 14:03:28 CDT 2012


Author: qwell
Date: Thu Jun 14 14:03:24 2012
New Revision: 368964

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368964
Log:
These functions that were moved need to be static.

Also wrap test functions in a #ifdef.

(issue AST-807)
(issue AST-901)
(issue AST-908)

Modified:
    certified/branches/1.8.11/apps/app_voicemail.c

Modified: certified/branches/1.8.11/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.11/apps/app_voicemail.c?view=diff&rev=368964&r1=368963&r2=368964
==============================================================================
--- certified/branches/1.8.11/apps/app_voicemail.c (original)
+++ certified/branches/1.8.11/apps/app_voicemail.c Thu Jun 14 14:03:24 2012
@@ -979,9 +979,10 @@
 static int vm_msg_remove(const char *mailbox, const char *context, size_t num_msgs, const char *folder, int *msgs);
 static int vm_msg_play(struct ast_channel *chan, const char *mailbox, const char *context, const char *folder, const char *msg_num, ast_vm_msg_play_cb cb);
 
-int vm_test_destroy_user(const char *context, const char *mailbox);
-int vm_test_create_user(const char *context, const char *mailbox);
-
+#ifdef TEST_FRAMEWORK
+static int vm_test_destroy_user(const char *context, const char *mailbox);
+static int vm_test_create_user(const char *context, const char *mailbox);
+#endif
 
 struct ao2_container *inprocess_container;
 
@@ -14157,7 +14158,7 @@
 
 #ifdef TEST_FRAMEWORK
 
-int vm_test_destroy_user(const char *context, const char *mailbox)
+static int vm_test_destroy_user(const char *context, const char *mailbox)
 {
 	struct ast_vm_user *vmu;
 
@@ -14175,7 +14176,7 @@
 	return 0;
 }
 
-int vm_test_create_user(const char *context, const char *mailbox)
+static int vm_test_create_user(const char *context, const char *mailbox)
 {
 	struct ast_vm_user *vmu;
 
@@ -14481,7 +14482,7 @@
 	queue_mwi_event(ext_context, urgent, new, old);
 }
 
-int vm_msg_forward(const char *from_mailbox,
+static int vm_msg_forward(const char *from_mailbox,
 	const char *from_context,
 	const char *from_folder,
 	const char *to_mailbox,
@@ -14618,7 +14619,7 @@
 	return res;
 }
 
-int vm_msg_move(const char *mailbox,
+static int vm_msg_move(const char *mailbox,
 	const char *context,
 	size_t num_msgs,
 	const char *oldfolder,
@@ -14713,7 +14714,7 @@
 	return res;
 }
 
-int vm_msg_remove(const char *mailbox,
+static int vm_msg_remove(const char *mailbox,
 	const char *context,
 	size_t num_msgs,
 	const char *folder,
@@ -14807,7 +14808,7 @@
 	return res;
 }
 
-int vm_msg_play(struct ast_channel *chan,
+static int vm_msg_play(struct ast_channel *chan,
 	const char *mailbox,
 	const char *context,
 	const char *folder,




More information about the svn-commits mailing list