diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-10 21:19:18 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 17:19:18 +0100 |
commit | 58f99ed8a821d8b24fa3df3bf1014dee6a95606b (patch) | |
tree | 8ee22ea2039ff6c7000a25b02f3d310db538ba75 /src/basic/string-table.h | |
parent | network: route: use _WITH_FALLBACK macros (diff) | |
download | systemd-58f99ed8a821d8b24fa3df3bf1014dee6a95606b.tar.xz systemd-58f99ed8a821d8b24fa3df3bf1014dee6a95606b.zip |
string-table: introduce DEFINE_STRING_TABLE_LOOKUP_FROM_STRING()
Diffstat (limited to 'src/basic/string-table.h')
-rw-r--r-- | src/basic/string-table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/string-table.h b/src/basic/string-table.h index 491fb51044..aca6a267bd 100644 --- a/src/basic/string-table.h +++ b/src/basic/string-table.h @@ -81,6 +81,7 @@ ssize_t string_table_lookup(const char * const *table, size_t len, const char *k #define DEFINE_STRING_TABLE_LOOKUP(name,type) _DEFINE_STRING_TABLE_LOOKUP(name,type,) #define DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type) _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,) +#define DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type,) #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP(name,type) _DEFINE_STRING_TABLE_LOOKUP(name,type,static) #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING(name,type) _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,static) #define DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(name,type) _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type,static) |