Move vm defines to group them better.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jun 2012 20:49:28 +0000 (20:49 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jun 2012 20:49:28 +0000 (20:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368972 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/app.h

index 9053fc6..50f6674 100644 (file)
@@ -184,35 +184,6 @@ int ast_app_exec_macro(struct ast_channel *autoservice_chan, struct ast_channel
 int ast_app_run_macro(struct ast_channel *autoservice_chan,
        struct ast_channel *macro_chan, const char *macro_name, const char *macro_args);
 
-enum ast_vm_snapshot_sort_val {
-       AST_VM_SNAPSHOT_SORT_BY_ID = 0,
-       AST_VM_SNAPSHOT_SORT_BY_TIME,
-};
-
-struct ast_vm_msg_snapshot {
-       AST_DECLARE_STRING_FIELDS(
-               AST_STRING_FIELD(msg_id);
-               AST_STRING_FIELD(callerid);
-               AST_STRING_FIELD(callerchan);
-               AST_STRING_FIELD(exten);
-               AST_STRING_FIELD(origdate);
-               AST_STRING_FIELD(origtime);
-               AST_STRING_FIELD(duration);
-               AST_STRING_FIELD(folder_name);
-               AST_STRING_FIELD(flag);
-       );
-       unsigned int msg_number;
-
-       AST_LIST_ENTRY(ast_vm_msg_snapshot) msg;
-};
-
-struct ast_vm_mailbox_snapshot {
-       int total_msg_num;
-       int folders;
-       /* 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.
@@ -259,6 +230,35 @@ int ast_app_exec_sub(struct ast_channel *autoservice_chan, struct ast_channel *s
 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,
+};
+
+struct ast_vm_msg_snapshot {
+       AST_DECLARE_STRING_FIELDS(
+               AST_STRING_FIELD(msg_id);
+               AST_STRING_FIELD(callerid);
+               AST_STRING_FIELD(callerchan);
+               AST_STRING_FIELD(exten);
+               AST_STRING_FIELD(origdate);
+               AST_STRING_FIELD(origtime);
+               AST_STRING_FIELD(duration);
+               AST_STRING_FIELD(folder_name);
+               AST_STRING_FIELD(flag);
+       );
+       unsigned int msg_number;
+
+       AST_LIST_ENTRY(ast_vm_msg_snapshot) msg;
+};
+
+struct ast_vm_mailbox_snapshot {
+       int total_msg_num;
+       int folders;
+       /* 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;
+};
+
 /*!
  * \brief Voicemail playback callback function definition
  *