mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
Last batch of 'static' qualifiers for module-level global variables.
Fix up modules in the 'apps' directory, and also correct the bad example of enum definitions in include/asterisk/app.h, which many developers followed (thanks for reading the documentation!). In addition, add some basic usage examples of the 'pahole' and 'pglobal' tools to the coding guidelines. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@200656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -425,16 +425,16 @@ static AST_LIST_HEAD_STATIC(vmstates, vmstate);
|
||||
#define ERROR_LOCK_PATH -100
|
||||
|
||||
|
||||
enum {
|
||||
enum vm_box {
|
||||
NEW_FOLDER,
|
||||
OLD_FOLDER,
|
||||
WORK_FOLDER,
|
||||
FAMILY_FOLDER,
|
||||
FRIENDS_FOLDER,
|
||||
GREETINGS_FOLDER
|
||||
} vm_box;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum vm_option_flags {
|
||||
OPT_SILENT = (1 << 0),
|
||||
OPT_BUSY_GREETING = (1 << 1),
|
||||
OPT_UNAVAIL_GREETING = (1 << 2),
|
||||
@@ -444,15 +444,15 @@ enum {
|
||||
OPT_DTMFEXIT = (1 << 7),
|
||||
OPT_MESSAGE_Urgent = (1 << 8),
|
||||
OPT_MESSAGE_PRIORITY = (1 << 9)
|
||||
} vm_option_flags;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum vm_option_args {
|
||||
OPT_ARG_RECORDGAIN = 0,
|
||||
OPT_ARG_PLAYFOLDER = 1,
|
||||
OPT_ARG_DTMFEXIT = 2,
|
||||
/* This *must* be the last value in this enum! */
|
||||
OPT_ARG_ARRAY_SIZE = 3,
|
||||
} vm_option_args;
|
||||
};
|
||||
|
||||
AST_APP_OPTIONS(vm_app_options, {
|
||||
AST_APP_OPTION('s', OPT_SILENT),
|
||||
|
||||
Reference in New Issue
Block a user