(key, value string)
| 232 | } |
| 233 | |
| 234 | func server_set(key, value string) string { |
| 235 | if key == "\x00" { |
| 236 | return g_config.list() |
| 237 | } else if value == "\x00" { |
| 238 | return g_config.list_option(key) |
| 239 | } |
| 240 | // drop cache on settings changes |
| 241 | g_daemon.drop_cache() |
| 242 | return g_config.set_option(key, value) |
| 243 | } |
| 244 | |
| 245 | func server_options(notused int) string { |
| 246 | return g_config.options() |
no test coverage detected