1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include "resolved-manager.h" 5 6 int manager_check_resolv_conf(const Manager *m); 7 int manager_read_resolv_conf(Manager *m); 8 int manager_write_resolv_conf(Manager *m); 9 10 typedef enum ResolvConfMode { 11 RESOLV_CONF_UPLINK, 12 RESOLV_CONF_STUB, 13 RESOLV_CONF_STATIC, 14 RESOLV_CONF_FOREIGN, 15 RESOLV_CONF_MISSING, 16 _RESOLV_CONF_MODE_MAX, 17 _RESOLV_CONF_MODE_INVALID = -EINVAL, 18 } ResolvConfMode; 19 20 int resolv_conf_mode(void); 21 22 const char* resolv_conf_mode_to_string(ResolvConfMode m) _const_; 23 ResolvConfMode resolv_conf_mode_from_string(const char *s) _pure_; 24