Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_host_resolver_private.h
Go to the documentation of this file.
1 /* Copyright (c) 2012 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 
6 /* From private/ppb_host_resolver_private.idl,
7  * modified Thu Oct 20 13:57:04 2016.
8  */
9 
10 #ifndef PPAPI_C_PRIVATE_PPB_HOST_RESOLVER_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_HOST_RESOLVER_PRIVATE_H_
12 
13 #include "ppapi/c/pp_bool.h"
15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h"
17 #include "ppapi/c/pp_resource.h"
18 #include "ppapi/c/pp_stdint.h"
19 #include "ppapi/c/pp_var.h"
21 
22 #define PPB_HOSTRESOLVER_PRIVATE_INTERFACE_0_1 "PPB_HostResolver_Private;0.1"
23 #define PPB_HOSTRESOLVER_PRIVATE_INTERFACE \
24  PPB_HOSTRESOLVER_PRIVATE_INTERFACE_0_1
25 
41 typedef enum {
51 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_HostResolver_Private_Flags, 4);
62  int32_t flags;
63 };
64 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_HostResolver_Private_Hint, 8);
88  int32_t (*Resolve)(PP_Resource host_resolver,
89  const char* host,
90  uint16_t port,
91  const struct PP_HostResolver_Private_Hint* hint,
92  struct PP_CompletionCallback callback);
96  struct PP_Var (*GetCanonicalName)(PP_Resource host_resolver);
100  uint32_t (*GetSize)(PP_Resource host_resolver);
108  uint32_t index,
109  struct PP_NetAddress_Private* addr);
110 };
111 
117 #endif /* PPAPI_C_PRIVATE_PPB_HOST_RESOLVER_PRIVATE_H_ */
118 
PP_HostResolver_Private_Flags
Definition: ppb_host_resolver_private.h:41
struct PP_Var(* GetCanonicalName)(PP_Resource host_resolver)
Definition: ppb_host_resolver_private.h:96
uint32_t(* GetSize)(PP_Resource host_resolver)
Definition: ppb_host_resolver_private.h:100
PP_Resource(* Create)(PP_Instance instance)
Definition: ppb_host_resolver_private.h:77
Definition: ppb_host_resolver_private.h:60
int32_t PP_Resource
Definition: pp_resource.h:40
PP_NetAddressFamily_Private
Definition: ppb_net_address_private.h:34
Definition: ppb_host_resolver_private.h:49
Definition: ppb_host_resolver_private.h:73
Definition: ppb_net_address_private.h:61
Definition: pp_var.h:166
PP_Bool(* IsHostResolver)(PP_Resource resource)
Definition: ppb_host_resolver_private.h:81
int32_t PP_Instance
Definition: pp_instance.h:34
int32_t(* Resolve)(PP_Resource host_resolver, const char *host, uint16_t port, const struct PP_HostResolver_Private_Hint *hint, struct PP_CompletionCallback callback)
Definition: ppb_host_resolver_private.h:88
PP_Bool
Definition: pp_bool.h:30
PP_Bool(* GetNetAddress)(PP_Resource host_resolver, uint32_t index, struct PP_NetAddress_Private *addr)
Definition: ppb_host_resolver_private.h:107
Definition: ppb_host_resolver_private.h:45
Definition: pp_completion_callback.h:139