HIPC
0.5
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
hipc
hipc.h
Go to the documentation of this file.
1
#ifndef HIPC_H
2
#define HIPC_H
3
4
enum
HIPC_errno
{
5
HIPC_SUCCESS
,
6
7
HIPC_ERR_S_INV_UDATA
,
8
HIPC_ERR_S_INV_MSG_TYPE
,
9
HIPC_ERR_S_INV_STRUNO
,
10
HIPC_ERR_S_INV_RW_RANGE
,
11
HIPC_ERR_S_V_UNINIT_MSG
,
12
HIPC_ERR_S_IO_READ
,
13
HIPC_ERR_S_IO_WRITE
,
14
HIPC_ERR_S_INV_CFG
,
15
HIPC_ERR_S_INV_NULL
,
16
HIPC_ERR_S_BUF_SHTG
,
17
HIPC_ERR_S_OVERSIZED_STRU
,
18
HIPC_ERR_S_PBANK_STAT_MISMATCH
,
19
20
HIPC_ERR_C_STD
,
21
HIPC_ERR_INTERNAL_ERROR
,
22
HIPC_ERR_IO_READ
,
23
HIPC_ERR_IO_WRITE
,
24
HIPC_ERR_PROTOCOL_VIOLATION
,
25
HIPC_ERR_INV_ENDIAN
,
26
HIPC_ERR_INV_ID_STR
,
27
HIPC_ERR_INV_BASE_CLIENT
,
28
HIPC_ERR_MBR_SIZE_MISMATCH
,
29
HIPC_ERR_SESS_STATE_MISMATCH
,
30
31
HIPC_ERR_FOR_TESTING
,
32
HIPC_ERR_TEST_LIB_INTERNAL
,
33
HIPC_N_ERR
34
};
35
36
enum
{
37
HIPC_MSGHDR_BYTE_TYPE
,
38
HIPC_MSGHDR_BYTE_STRUNO
,
39
HIPC_MSGHDR_BYTE_OFFSET
,
40
HIPC_MSGHDR_BYTE_BDYSZ
,
41
HIPC_MSGHDR_SIZE
/* 4 */
42
};
43
44
#define HIPC_UNSTRU 255
45
46
#define HIPC_IMG_ALLOCSIZE 256
47
#define HIPC_MSG_ALLOCSIZE 260
/* 4+256 */
48
49
enum
{
50
HIPC_MESSAGE_TYPE_QUIT
,
51
HIPC_MESSAGE_TYPE_SUCCESS
,
52
HIPC_MESSAGE_TYPE_SYS
,
53
HIPC_MESSAGE_TYPE_CAST
,
54
HIPC_MESSAGE_TYPE_GET
,
55
HIPC_MESSAGE_TYPE_PUT
,
56
HIPC_MESSAGE_TYPE_BYE
,
57
HIPC_MESSAGE_TYPE_HELLO
58
};
59
60
enum
{
61
HIPC_SYSMSG_TYPE_OVERVIEW
,
62
HIPC_SYSMSG_TYPE_OFFSET
,
63
HIPC_SYSMSG_TYPE_SIZE
64
};
65
66
#ifdef __cplusplus
67
extern
"C"
{
68
#endif
69
70
extern
unsigned
char
hipcMsghdrBdysize
(
unsigned
char
const
*
const
71
msghdr);
72
extern
unsigned
char
hipcEndian
(
void
);
73
74
#ifdef __cplusplus
75
}
76
#endif
77
#endif
HIPC_MESSAGE_TYPE_CAST
Definition:
hipc.h:53
HIPC_ERR_S_INV_RW_RANGE
Definition:
hipc.h:10
HIPC_ERR_INV_BASE_CLIENT
Definition:
hipc.h:27
HIPC_MSGHDR_BYTE_STRUNO
Definition:
hipc.h:38
hipcMsghdrBdysize
unsigned char hipcMsghdrBdysize(unsigned char const *const msghdr)
Returns message size determined by a message header.
Definition:
hipc.c:12
HIPC_ERR_S_BUF_SHTG
Definition:
hipc.h:16
HIPC_ERR_S_PBANK_STAT_MISMATCH
Definition:
hipc.h:18
HIPC_ERR_INV_ENDIAN
Definition:
hipc.h:25
HIPC_ERR_INV_ID_STR
Definition:
hipc.h:26
HIPC_ERR_S_IO_READ
Definition:
hipc.h:12
HIPC_MSGHDR_BYTE_TYPE
Definition:
hipc.h:37
HIPC_errno
HIPC_errno
Definition:
hipc.h:4
HIPC_MESSAGE_TYPE_BYE
Definition:
hipc.h:56
HIPC_ERR_TEST_LIB_INTERNAL
Definition:
hipc.h:32
HIPC_ERR_S_INV_NULL
Definition:
hipc.h:15
HIPC_ERR_IO_READ
Definition:
hipc.h:22
HIPC_SYSMSG_TYPE_SIZE
Definition:
hipc.h:63
HIPC_ERR_IO_WRITE
Definition:
hipc.h:23
HIPC_MESSAGE_TYPE_HELLO
Definition:
hipc.h:57
HIPC_SYSMSG_TYPE_OVERVIEW
Definition:
hipc.h:61
HIPC_MESSAGE_TYPE_PUT
Definition:
hipc.h:55
HIPC_N_ERR
Definition:
hipc.h:33
HIPC_MESSAGE_TYPE_GET
Definition:
hipc.h:54
HIPC_ERR_S_OVERSIZED_STRU
Definition:
hipc.h:17
HIPC_ERR_FOR_TESTING
Definition:
hipc.h:31
HIPC_ERR_SESS_STATE_MISMATCH
Definition:
hipc.h:29
HIPC_MSGHDR_BYTE_BDYSZ
Definition:
hipc.h:40
HIPC_ERR_S_INV_STRUNO
Definition:
hipc.h:9
HIPC_MESSAGE_TYPE_SUCCESS
Definition:
hipc.h:51
HIPC_ERR_PROTOCOL_VIOLATION
Definition:
hipc.h:24
HIPC_ERR_INTERNAL_ERROR
Definition:
hipc.h:21
HIPC_ERR_MBR_SIZE_MISMATCH
Definition:
hipc.h:28
HIPC_ERR_C_STD
Definition:
hipc.h:20
HIPC_ERR_S_INV_CFG
Definition:
hipc.h:14
HIPC_MESSAGE_TYPE_QUIT
Definition:
hipc.h:50
HIPC_SYSMSG_TYPE_OFFSET
Definition:
hipc.h:62
HIPC_ERR_S_IO_WRITE
Definition:
hipc.h:13
HIPC_ERR_S_INV_UDATA
Definition:
hipc.h:7
HIPC_MESSAGE_TYPE_SYS
Definition:
hipc.h:52
HIPC_ERR_S_V_UNINIT_MSG
Definition:
hipc.h:11
HIPC_MSGHDR_SIZE
Definition:
hipc.h:41
HIPC_MSGHDR_BYTE_OFFSET
Definition:
hipc.h:39
HIPC_ERR_S_INV_MSG_TYPE
Definition:
hipc.h:8
hipcEndian
unsigned char hipcEndian(void)
Returns endian of the system.
Definition:
hipc.c:25
HIPC_SUCCESS
Definition:
hipc.h:5
Generated on Sat Jun 27 2015 09:23:13 for HIPC by
1.8.6