From: Yu Watanabe Date: Wed, 10 Feb 2021 20:19:18 +0000 (+0900) Subject: string-table: introduce DEFINE_STRING_TABLE_LOOKUP_FROM_STRING() X-Git-Tag: v248-rc1~152^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58f99ed8a821d8b24fa3df3bf1014dee6a95606b;p=thirdparty%2Fsystemd.git string-table: introduce DEFINE_STRING_TABLE_LOOKUP_FROM_STRING() --- diff --git a/src/basic/string-table.h b/src/basic/string-table.h index 491fb510448..aca6a267bd1 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)