mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	options: Change ast_options from ast_flags to ast_flags64.
DeveloperNote: The 32-bit ast_options has no room left to accomodate new
options and so has been converted to an ast_flags64 structure. All internal
references to ast_options have been updated to use the 64-bit flag
manipulation macros.  External module references to the 32-bit ast_options
should continue to work on little-endian systems because the
least-significant bytes of a 64 bit integer will be in the same location as a
32-bit integer.  Because that's not the case on big-endian systems, we've
swapped the bytes in the flags manupulation macros on big-endian systems
so external modules should still work however you are encouraged to test.
(cherry picked from commit 709be42bc3)
			
			
This commit is contained in:
		| @@ -1363,27 +1363,27 @@ enum ast_option_flags { | ||||
|  | ||||
| struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }; | ||||
|  | ||||
| #define ast_opt_exec_includes		ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES) | ||||
| #define ast_opt_no_fork			ast_test_flag(&ast_options, AST_OPT_FLAG_NO_FORK) | ||||
| #define ast_opt_quiet			ast_test_flag(&ast_options, AST_OPT_FLAG_QUIET) | ||||
| #define ast_opt_console			ast_test_flag(&ast_options, AST_OPT_FLAG_CONSOLE) | ||||
| #define ast_opt_high_priority		ast_test_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY) | ||||
| #define ast_opt_init_keys		ast_test_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS) | ||||
| #define ast_opt_remote			ast_test_flag(&ast_options, AST_OPT_FLAG_REMOTE) | ||||
| #define ast_opt_exec			ast_test_flag(&ast_options, AST_OPT_FLAG_EXEC) | ||||
| #define ast_opt_no_color		ast_test_flag(&ast_options, AST_OPT_FLAG_NO_COLOR) | ||||
| #define ast_fully_booted		ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED) | ||||
| #define ast_opt_transcode_via_slin	ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN) | ||||
| #define ast_opt_priority_jumping	ast_test_flag(&ast_options, AST_OPT_FLAG_PRIORITY_JUMPING) | ||||
| #define ast_opt_dump_core		ast_test_flag(&ast_options, AST_OPT_FLAG_DUMP_CORE) | ||||
| #define ast_opt_cache_record_files	ast_test_flag(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES) | ||||
| #define ast_opt_timestamp		ast_test_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP) | ||||
| #define ast_opt_override_config		ast_test_flag(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG) | ||||
| #define ast_opt_reconnect		ast_test_flag(&ast_options, AST_OPT_FLAG_RECONNECT) | ||||
| #define ast_opt_transmit_silence	ast_test_flag(&ast_options, AST_OPT_FLAG_TRANSMIT_SILENCE) | ||||
| #define ast_opt_dont_warn		ast_test_flag(&ast_options, AST_OPT_FLAG_DONT_WARN) | ||||
| #define ast_opt_always_fork		ast_test_flag(&ast_options, AST_OPT_FLAG_ALWAYS_FORK) | ||||
| #define ast_opt_mute			ast_test_flag(&ast_options, AST_OPT_FLAG_MUTE) | ||||
| #define ast_opt_exec_includes		ast_test_flag64(&ast_options, AST_OPT_FLAG_EXEC_INCLUDES) | ||||
| #define ast_opt_no_fork			ast_test_flag64(&ast_options, AST_OPT_FLAG_NO_FORK) | ||||
| #define ast_opt_quiet			ast_test_flag64(&ast_options, AST_OPT_FLAG_QUIET) | ||||
| #define ast_opt_console			ast_test_flag64(&ast_options, AST_OPT_FLAG_CONSOLE) | ||||
| #define ast_opt_high_priority		ast_test_flag64(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY) | ||||
| #define ast_opt_init_keys		ast_test_flag64(&ast_options, AST_OPT_FLAG_INIT_KEYS) | ||||
| #define ast_opt_remote			ast_test_flag64(&ast_options, AST_OPT_FLAG_REMOTE) | ||||
| #define ast_opt_exec			ast_test_flag64(&ast_options, AST_OPT_FLAG_EXEC) | ||||
| #define ast_opt_no_color		ast_test_flag64(&ast_options, AST_OPT_FLAG_NO_COLOR) | ||||
| #define ast_fully_booted		ast_test_flag64(&ast_options, AST_OPT_FLAG_FULLY_BOOTED) | ||||
| #define ast_opt_transcode_via_slin	ast_test_flag64(&ast_options, AST_OPT_FLAG_TRANSCODE_VIA_SLIN) | ||||
| #define ast_opt_priority_jumping	ast_test_flag64(&ast_options, AST_OPT_FLAG_PRIORITY_JUMPING) | ||||
| #define ast_opt_dump_core		ast_test_flag64(&ast_options, AST_OPT_FLAG_DUMP_CORE) | ||||
| #define ast_opt_cache_record_files	ast_test_flag64(&ast_options, AST_OPT_FLAG_CACHE_RECORD_FILES) | ||||
| #define ast_opt_timestamp		ast_test_flag64(&ast_options, AST_OPT_FLAG_TIMESTAMP) | ||||
| #define ast_opt_override_config		ast_test_flag64(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG) | ||||
| #define ast_opt_reconnect		ast_test_flag64(&ast_options, AST_OPT_FLAG_RECONNECT) | ||||
| #define ast_opt_transmit_silence	ast_test_flag64(&ast_options, AST_OPT_FLAG_TRANSMIT_SILENCE) | ||||
| #define ast_opt_dont_warn		ast_test_flag64(&ast_options, AST_OPT_FLAG_DONT_WARN) | ||||
| #define ast_opt_always_fork		ast_test_flag64(&ast_options, AST_OPT_FLAG_ALWAYS_FORK) | ||||
| #define ast_opt_mute			ast_test_flag64(&ast_options, AST_OPT_FLAG_MUTE) | ||||
|  | ||||
| extern int option_verbose; | ||||
| extern int option_debug;		/*!< Debugging */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user