Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / service_runtime / sys_imc.h
1 /*
2  * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_IMC_H_
8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_IMC_H_ 1
9
10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/include/portability.h"
12
13 EXTERN_C_BEGIN
14
15 struct NaClAbiNaClImcMsgHdr;
16 struct NaClAppThread;
17 struct NaClImcMsgHdr;
18
19 int32_t NaClSysImcMakeBoundSock(struct NaClAppThread *natp,
20                                 uint32_t             descs_addr);
21
22 int32_t NaClSysImcAccept(struct NaClAppThread  *natp,
23                          int                   d);
24
25 int32_t NaClSysImcConnect(struct NaClAppThread *natp,
26                           int                  d);
27
28 int32_t NaClSysImcSendmsg(struct NaClAppThread *natp,
29                           int                  d,
30                           uint32_t             nanimhp,
31                           int                  flags);
32
33 int32_t NaClSysImcRecvmsg(struct NaClAppThread *natp,
34                           int                  d,
35                           uint32_t             nanimhp,
36                           int                  flags);
37
38 int32_t NaClSysImcMemObjCreate(struct NaClAppThread  *natp,
39                                size_t                size);
40
41 int32_t NaClSysImcSocketPair(struct NaClAppThread *natp,
42                              uint32_t             descs_out);
43
44 EXTERN_C_END
45
46 #endif