From c5256059b8c0bfd905c04ec4b12b08e1f9d04787 Mon Sep 17 00:00:00 2001 From: Richard Mudgett <rmudgett@digium.com> Date: Thu, 14 Jun 2012 20:49:28 +0000 Subject: [PATCH] Move vm defines to group them better. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368972 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/app.h | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 9053fc6ff2..50f6674469 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -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 * -- GitLab