| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ | 5 #ifndef NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ |
| 6 #define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ | 6 #define NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <netinet/in.h> | 9 #include <netinet/in.h> |
| 10 #include <resolv.h> | 10 #include <resolv.h> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 enum ConfigParsePosixResult { | 46 enum ConfigParsePosixResult { |
| 47 CONFIG_PARSE_POSIX_OK = 0, | 47 CONFIG_PARSE_POSIX_OK = 0, |
| 48 CONFIG_PARSE_POSIX_RES_INIT_FAILED, | 48 CONFIG_PARSE_POSIX_RES_INIT_FAILED, |
| 49 CONFIG_PARSE_POSIX_RES_INIT_UNSET, | 49 CONFIG_PARSE_POSIX_RES_INIT_UNSET, |
| 50 CONFIG_PARSE_POSIX_BAD_ADDRESS, | 50 CONFIG_PARSE_POSIX_BAD_ADDRESS, |
| 51 CONFIG_PARSE_POSIX_BAD_EXT_STRUCT, | 51 CONFIG_PARSE_POSIX_BAD_EXT_STRUCT, |
| 52 CONFIG_PARSE_POSIX_NULL_ADDRESS, | 52 CONFIG_PARSE_POSIX_NULL_ADDRESS, |
| 53 CONFIG_PARSE_POSIX_NO_NAMESERVERS, | 53 CONFIG_PARSE_POSIX_NO_NAMESERVERS, |
| 54 CONFIG_PARSE_POSIX_MISSING_OPTIONS, | 54 CONFIG_PARSE_POSIX_MISSING_OPTIONS, |
| 55 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS, | 55 CONFIG_PARSE_POSIX_UNHANDLED_OPTIONS, |
| 56 CONFIG_PARSE_POSIX_NO_DNSINFO, |
| 56 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration. | 57 CONFIG_PARSE_POSIX_MAX // Bounding values for enumeration. |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 // Fills in |dns_config| from |res|. | 60 // Fills in |dns_config| from |res|. |
| 60 ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig( | 61 ConfigParsePosixResult NET_EXPORT_PRIVATE ConvertResStateToDnsConfig( |
| 61 const struct __res_state& res, DnsConfig* dns_config); | 62 const struct __res_state& res, DnsConfig* dns_config); |
| 62 | 63 |
| 63 } // namespace internal | 64 } // namespace internal |
| 64 | 65 |
| 65 } // namespace net | 66 } // namespace net |
| 66 | 67 |
| 67 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ | 68 #endif // NET_DNS_DNS_CONFIG_SERVICE_POSIX_H_ |
| OLD | NEW |