move extern declaration for this option to a header file where it belongs

provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-12-27 21:08:30 +00:00
parent 1e9c141c2d
commit 3307ae060a
3 changed files with 3 additions and 3 deletions

View File

@@ -122,6 +122,8 @@ extern pid_t ast_mainpid;
extern char record_cache_dir[AST_CACHE_DIR_LEN];
extern char debug_filename[AST_FILENAME_MAX];
extern int ast_language_is_prefix;
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

View File

@@ -152,8 +152,6 @@ int daemon(int, int); /* defined in libresolv of all places */
*/
/*! @{ */
extern int ast_language_is_prefix; /* XXX move to some header */
struct ast_flags ast_options = { AST_DEFAULT_OPTIONS };
int option_verbose = 0; /*!< Verbosity level */

View File

@@ -61,7 +61,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
* (i.e. en/digits/1.gsm, it/digits/1.gsm or default to digits/1.gsm).
* The latter permits a language to be entirely in one directory.
*/
int ast_language_is_prefix;
int ast_language_is_prefix = 0;
static AST_LIST_HEAD_STATIC(formats, ast_format);