Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / libraries / nacl_io / host_resolver.h
index 59f3f7f..dc37b96 100644 (file)
@@ -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