[svn-commits] rmudgett: trunk r368972 - /trunk/include/asterisk/app.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 14 15:49:31 CDT 2012


Author: rmudgett
Date: Thu Jun 14 15:49:28 2012
New Revision: 368972

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368972
Log:
Move vm defines to group them better.

Modified:
    trunk/include/asterisk/app.h

Modified: trunk/include/asterisk/app.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/app.h?view=diff&rev=368972&r1=368971&r2=368972
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Thu Jun 14 15:49:28 2012
@@ -184,6 +184,52 @@
 int ast_app_run_macro(struct ast_channel *autoservice_chan,
 	struct ast_channel *macro_chan, const char *macro_name, const char *macro_args);
 
+/*!
+ * \since 11
+ * \brief Run a subroutine on a channel, placing an optional second channel into autoservice.
+ *
+ * \details
+ * This is a shorthand method that makes it very easy to run a
+ * subroutine on any given channel.  It is perfectly reasonable
+ * to supply a NULL autoservice_chan here in case there is no
+ * channel to place into autoservice.
+ *
+ * \note It is very important that the autoservice_chan is not
+ * locked prior to calling.  Otherwise, a deadlock could result.
+ *
+ * \param autoservice_chan A channel to place into autoservice while the subroutine is run
+ * \param sub_chan Channel to execute subroutine on.
+ * \param sub_args Gosub application argument string.
+ *
+ * \retval 0 success
+ * \retval -1 on error
+ */
+int ast_app_exec_sub(struct ast_channel *autoservice_chan, struct ast_channel *sub_chan, const char *sub_args);
+
+/*!
+ * \since 11
+ * \brief Run a subroutine on a channel, placing an optional second channel into autoservice.
+ *
+ * \details
+ * This is a shorthand method that makes it very easy to run a
+ * subroutine on any given channel.  It is perfectly reasonable
+ * to supply a NULL autoservice_chan here in case there is no
+ * channel to place into autoservice.
+ *
+ * \note It is very important that the autoservice_chan is not
+ * locked prior to calling.  Otherwise, a deadlock could result.
+ *
+ * \param autoservice_chan A channel to place into autoservice while the subroutine is run
+ * \param sub_chan Channel to execute subroutine on.
+ * \param sub_location The location of the subroutine to run.
+ * \param sub_args The arguments to pass to the subroutine.
+ *
+ * \retval 0 success
+ * \retval -1 on error
+ */
+int ast_app_run_sub(struct ast_channel *autoservice_chan,
+	struct ast_channel *sub_chan, const char *sub_location, const char *sub_args);
+
 enum ast_vm_snapshot_sort_val {
 	AST_VM_SNAPSHOT_SORT_BY_ID = 0,
 	AST_VM_SNAPSHOT_SORT_BY_TIME,
@@ -212,52 +258,6 @@
 	/* Things are not quite as they seem here.  This points to an allocated array of lists. */
 	AST_LIST_HEAD_NOLOCK(, ast_vm_msg_snapshot) *snapshots;
 };
-
-/*!
- * \since 11
- * \brief Run a subroutine on a channel, placing an optional second channel into autoservice.
- *
- * \details
- * This is a shorthand method that makes it very easy to run a
- * subroutine on any given channel.  It is perfectly reasonable
- * to supply a NULL autoservice_chan here in case there is no
- * channel to place into autoservice.
- *
- * \note It is very important that the autoservice_chan is not
- * locked prior to calling.  Otherwise, a deadlock could result.
- *
- * \param autoservice_chan A channel to place into autoservice while the subroutine is run
- * \param sub_chan Channel to execute subroutine on.
- * \param sub_args Gosub application argument string.
- *
- * \retval 0 success
- * \retval -1 on error
- */
-int ast_app_exec_sub(struct ast_channel *autoservice_chan, struct ast_channel *sub_chan, const char *sub_args);
-
-/*!
- * \since 11
- * \brief Run a subroutine on a channel, placing an optional second channel into autoservice.
- *
- * \details
- * This is a shorthand method that makes it very easy to run a
- * subroutine on any given channel.  It is perfectly reasonable
- * to supply a NULL autoservice_chan here in case there is no
- * channel to place into autoservice.
- *
- * \note It is very important that the autoservice_chan is not
- * locked prior to calling.  Otherwise, a deadlock could result.
- *
- * \param autoservice_chan A channel to place into autoservice while the subroutine is run
- * \param sub_chan Channel to execute subroutine on.
- * \param sub_location The location of the subroutine to run.
- * \param sub_args The arguments to pass to the subroutine.
- *
- * \retval 0 success
- * \retval -1 on error
- */
-int ast_app_run_sub(struct ast_channel *autoservice_chan,
-	struct ast_channel *sub_chan, const char *sub_location, const char *sub_args);
 
 /*!
  * \brief Voicemail playback callback function definition




More information about the svn-commits mailing list