DECLARE_MODULE_AV2(info, NULL, NULL, info_clist, info_hlist, NULL, NULL, NULL, info_desc);
-/*
- * jdc -- Structure for our configuration value table
- */
struct InfoStruct
{
- const char *name; /* Displayed variable name */
- unsigned int output_type; /* See below #defines */
- void *option; /* Pointer reference to the value */
- const char *desc; /* ASCII description of the variable */
+ const char *name;
+ unsigned int output_type;
+ void *option;
+ const char *desc;
};
-/* Types for output_type in InfoStruct */
+
#define OUTPUT_STRING 0x0001 /* Output option as %s w/ dereference */
#define OUTPUT_STRING_PTR 0x0002 /* Output option as %s w/out deference */
#define OUTPUT_DECIMAL 0x0004 /* Output option as decimal (%d) */
/* *INDENT-OFF* */
static struct InfoStruct info_table[] = {
- /* --[ START OF TABLE ]-------------------------------------------- */
+
{
"opers_see_all_users",
OUTPUT_BOOLEAN_YN,
&ConfigServerHide.links_delay,
"Links rehash delay"
},
- /* --[ END OF TABLE ]---------------------------------------------- */
- { (char *) 0, (unsigned int) 0, (void *) 0, (char *) 0}
+
+ { NULL, 0, NULL, NULL },
};
/* *INDENT-ON* */
info_table[i].name,
option ? ((option == 1) ? "MASK" : "YES") : "NO",
info_table[i].desc ? info_table[i].desc : "<none>");
- } /* switch (info_table[i].output_type) */
+ }
}
- } /* forloop */
+ }
/* Don't send oper_only_umodes...it's a bit mask, we will have to decode it