1
0
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:
Bram Matthys
2021-08-09 17:43:15 +02:00
parent 595c1fdf42
commit b055b862e4
4 changed files with 64 additions and 43 deletions
+9
View File
@@ -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;