mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 18:13:12 +02:00
New: NameValue struct and functions nv_find_by_name() / nv_find_by_value().
These were previously used by the config system as config_binary_flags_search() but can be useful in other areas as well.
This commit is contained in:
@@ -1186,6 +1186,15 @@ struct IRCCounts {
|
||||
/** The /LUSERS stats information */
|
||||
extern MODVAR IRCCounts irccounts;
|
||||
|
||||
typedef struct NameValue NameValue;
|
||||
/** Name and value list used in a static array, such as in conf.c */
|
||||
struct NameValue
|
||||
{
|
||||
long value;
|
||||
char *name;
|
||||
};
|
||||
|
||||
/** Name and value list used in dynamic linked lists */
|
||||
typedef struct NameValueList NameValueList;
|
||||
struct NameValueList {
|
||||
NameValueList *prev, *next;
|
||||
|
||||
Reference in New Issue
Block a user