@ -179,6 +179,7 @@ struct ast_module_user_list;
enum ast_module_flags {
enum ast_module_flags {
AST_MODFLAG_DEFAULT = 0 ,
AST_MODFLAG_DEFAULT = 0 ,
AST_MODFLAG_GLOBAL_SYMBOLS = ( 1 < < 0 ) ,
AST_MODFLAG_GLOBAL_SYMBOLS = ( 1 < < 0 ) ,
AST_MODFLAG_BUILDSUM = ( 1 < < 1 ) ,
} ;
} ;
struct ast_module_info {
struct ast_module_info {
@ -233,7 +234,7 @@ void ast_module_unref(struct ast_module *);
AST_MODULE , \
AST_MODULE , \
desc , \
desc , \
keystr , \
keystr , \
flags_to_set , \
flags_to_set | AST_MODFLAG_BUILDSUM , \
AST_BUILDOPT_SUM , \
AST_BUILDOPT_SUM , \
} ; \
} ; \
static void __attribute__ ( ( constructor ) ) __reg_module ( void ) \
static void __attribute__ ( ( constructor ) ) __reg_module ( void ) \
@ -261,7 +262,7 @@ const static __attribute__((unused)) struct ast_module_info *ast_module_info;
# define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...) \
# define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...) \
static struct ast_module_info __mod_info = { \
static struct ast_module_info __mod_info = { \
. name = AST_MODULE , \
. name = AST_MODULE , \
. flags = flags_to_set , \
. flags = flags_to_set | AST_MODFLAG_BUILDSUM , \
. description = desc , \
. description = desc , \
. key = keystr , \
. key = keystr , \
. buildopt_sum = AST_BUILDOPT_SUM , \
. buildopt_sum = AST_BUILDOPT_SUM , \