1 // Copyright 2013 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.
5 #ifndef LIBRARIES_NACL_IO_HOST_RESOLVER_H_
6 #define LIBRARIES_NACL_IO_HOST_RESOLVER_H_
8 #include "nacl_io/ossocket.h"
9 #include "nacl_io/pepper_interface.h"
11 #ifdef PROVIDES_SOCKET_API
20 void Init(PepperInterface* ppapi);
22 struct hostent* gethostbyname(const char* name);
25 void hostent_initialize();
26 void hostent_cleanup();
28 struct hostent hostent_;
29 PepperInterface *ppapi_;
32 } // namespace nacl_io
34 #endif // PROVIDES_SOCKET_API
35 #endif // LIBRARIES_NACL_IO_HOST_RESOLVER_H_