OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ | |
6 #define CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 | |
10 #if defined(OS_POSIX) | |
11 #include <cstddef> | |
12 #include <netdb.h> | |
13 #elif defined(OS_WIN) | |
14 #include <winsock2.h> | |
15 #endif | |
16 | |
17 namespace notifier { | |
18 | |
19 hostent* SafeGetHostByName(const char* hostname, hostent* host, | |
20 char* buffer, size_t buffer_len, | |
21 int* herrno); | |
22 | |
23 void FreeHostEnt(hostent* host); | |
24 | |
25 } // namespace notifier | |
26 | |
27 #endif // CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ | |
OLD | NEW |