| 98 | /// If found @a value is set to the corresponding value in @a list. |
| 99 | template <typename T, unsigned N> |
| 100 | static bool |
| 101 | http_config_enum_read(const char *name, const ConfigEnumPair<T> (&list)[N], MgmtByte &value) |
| 102 | { |
| 103 | char key[512]; // it's just one key - painful UI if keys are longer than this |
| 104 | if (REC_ERR_OKAY == RecGetRecordString(name, key, sizeof(key))) { |
| 105 | return http_config_enum_search(key, list, value); |
| 106 | } |
| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | //////////////////////////////////////////////////////////////// |
| 111 | // |
no test coverage detected