resolve: define _DNS_SERVER_TYPE_MAX in enum

This commit is contained in:
Yu Watanabe
2018-07-24 01:23:41 +09:00
parent dc8bc9adde
commit 3fe30d85e3
+2 -1
View File
@@ -13,8 +13,9 @@ typedef enum DnsServerType {
DNS_SERVER_SYSTEM,
DNS_SERVER_FALLBACK,
DNS_SERVER_LINK,
_DNS_SERVER_TYPE_MAX,
_DNS_SERVER_TYPE_INVALID = -1
} DnsServerType;
#define _DNS_SERVER_TYPE_MAX (DNS_SERVER_LINK + 1)
const char* dns_server_type_to_string(DnsServerType i) _const_;
DnsServerType dns_server_type_from_string(const char *s) _pure_;