mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +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:
@@ -447,19 +447,19 @@ struct ast_app_option {
|
||||
|
||||
Example usage:
|
||||
\code
|
||||
enum {
|
||||
enum my_app_option_flags {
|
||||
OPT_JUMP = (1 << 0),
|
||||
OPT_BLAH = (1 << 1),
|
||||
OPT_BLORT = (1 << 2),
|
||||
} my_app_option_flags;
|
||||
};
|
||||
|
||||
enum {
|
||||
enum my_app_option_args {
|
||||
OPT_ARG_BLAH = 0,
|
||||
OPT_ARG_BLORT,
|
||||
!! this entry tells how many possible arguments there are,
|
||||
and must be the last entry in the list
|
||||
OPT_ARG_ARRAY_SIZE,
|
||||
} my_app_option_args;
|
||||
};
|
||||
|
||||
AST_APP_OPTIONS(my_app_options, {
|
||||
AST_APP_OPTION('j', OPT_JUMP),
|
||||
|
||||
Reference in New Issue
Block a user