Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: native_client_sdk/src/libraries/nacl_io/host_resolver.h

Issue 99933002: [NaCl SDK] nacl_io: implement getaddrinfo() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/host_resolver.h
diff --git a/native_client_sdk/src/libraries/nacl_io/host_resolver.h b/native_client_sdk/src/libraries/nacl_io/host_resolver.h
index 59f3f7f470892e8340ed8641329e6d3303dd3ffd..dc37b96f471867909ba272d63cdcf8edabbe1c2e 100644
--- a/native_client_sdk/src/libraries/nacl_io/host_resolver.h
+++ b/native_client_sdk/src/libraries/nacl_io/host_resolver.h
@@ -7,6 +7,7 @@
#include "nacl_io/ossocket.h"
#include "nacl_io/pepper_interface.h"
+#include "sdk_util/simple_lock.h"
#ifdef PROVIDES_SOCKET_API
@@ -19,14 +20,18 @@ class HostResolver {
void Init(PepperInterface* ppapi);
+ void freeaddrinfo(struct addrinfo *res);
+ int getaddrinfo(const char *node, const char *service,
+ const struct addrinfo *hints,
+ struct addrinfo **res);
struct hostent* gethostbyname(const char* name);
-
private:
void hostent_initialize();
void hostent_cleanup();
struct hostent hostent_;
PepperInterface *ppapi_;
+ sdk_util::SimpleLock gethostbyname_lock_;
};
} // namespace nacl_io
« no previous file with comments | « native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.c ('k') | native_client_sdk/src/libraries/nacl_io/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698