MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / createSDSConfig

Function createSDSConfig

src/config.cpp:2149–2162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2147}
2148
2149constexpr standardConfig createSDSConfig(const char *name, const char *alias, unsigned flags, int empty_to_null, sds &config_addr, const char *defaultValue, int (*is_valid)(char*,const char**), int (*update)(char*,char*,const char**)) {
2150 standardConfig conf = {
2151 embedCommonConfig(name, alias, flags)
2152 embedConfigInterface(sdsConfigInit, sdsConfigSet, sdsConfigGet, sdsConfigRewrite)
2153 };
2154 conf.data.sds = {
2155 &(config_addr),
2156 (defaultValue),
2157 (is_valid),
2158 (update),
2159 (empty_to_null),
2160 };
2161 return conf;
2162}
2163
2164/* Enum configs */
2165static void enumConfigInit(typeData data) {

Callers 1

config.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected