equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Contains the source for the implmentation of a part of getaddrinfo API |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <netdb.h> |
|
21 #include "netdb_r.h" |
|
22 #include "getaddrinfo_private.h" |
|
23 |
|
24 #ifdef __cplusplus |
|
25 extern "C" { |
|
26 #endif |
|
27 |
|
28 #ifdef __SYMBIAN32__ |
|
29 int getaddrinfo_private(const char* aHostName, const struct addrinfo* aHints, struct addrinfo** aRes) |
|
30 { |
|
31 return _getaddrinfo_r(&errno, aHostName, aHints, aRes); |
|
32 } |
|
33 |
|
34 void freeaddrinfo_private(struct addrinfo* aInfo) |
|
35 { |
|
36 _freeaddrinfo_r(aInfo); |
|
37 } |
|
38 |
|
39 #endif |
|
40 #ifdef __cplusplus |
|
41 } |
|
42 #endif |
|
43 |