From: Arran Cudbard-Bell Date: Tue, 8 Nov 2011 14:52:56 +0000 (+0100) Subject: Mark section_type_value as external (holds string names of the various sections) X-Git-Tag: release_3_0_0_beta0~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fe8add881415b2466c8c5809a0ee850d302c59;p=thirdparty%2Ffreeradius-server.git Mark section_type_value as external (holds string names of the various sections) --- diff --git a/src/include/modules.h b/src/include/modules.h index 4e504be7504..6de7dc3223c 100644 --- a/src/include/modules.h +++ b/src/include/modules.h @@ -35,6 +35,14 @@ typedef enum rlm_components { RLM_COMPONENT_COUNT /* 8 / 10: How many components are there */ } rlm_components_t; +typedef struct section_type_value_t { + const char *section; + const char *typename; + int attr; +} section_type_value_t; + +extern const section_type_value_t section_type_value[]; + #define RLM_TYPE_THREAD_SAFE (0 << 0) #define RLM_TYPE_THREAD_UNSAFE (1 << 0) #define RLM_TYPE_CHECK_CONFIG_SAFE (1 << 1) diff --git a/src/main/modules.c b/src/main/modules.c index f01531bd75f..8760fbd81f3 100644 --- a/src/main/modules.c +++ b/src/main/modules.c @@ -66,17 +66,10 @@ struct fr_module_hup_t { fr_module_hup_t *next; }; - -typedef struct section_type_value_t { - const char *section; - const char *typename; - int attr; -} section_type_value_t; - /* * Ordered by component */ -static const section_type_value_t section_type_value[RLM_COMPONENT_COUNT] = { +const section_type_value_t section_type_value[RLM_COMPONENT_COUNT] = { { "authenticate", "Auth-Type", PW_AUTH_TYPE }, { "authorize", "Autz-Type", PW_AUTZ_TYPE }, { "preacct", "Pre-Acct-Type", PW_PRE_ACCT_TYPE },