HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
msg.c File Reference
#include <hipc/msg.h>
Include dependency graph for msg.c:

Go to the source code of this file.

Functions

size_t hipcMsgTotalSize (const hipc_msg msg)
 Returns total size of a HIPC message, which is the header size plus the body size. More...
 
unsigned char hipcMsgBdySize (const hipc_msg msg)
 Returns body size of a HIPC message. More...
 
const void * hipcMsgBdyPtr (const hipc_msg msg)
 Returns a pointer to a body of a HIPC message. More...
 
unsigned char hipcMsgType (const hipc_msg msg)
 Returns type of a HIPC message. More...
 
unsigned char hipcMsgOffset (const hipc_msg msg)
 Returns offset of a HIPC message. More...
 
unsigned char hipcMsgStruno (const hipc_msg msg)
 Returns structure number of a HIPC message. More...
 
unsigned char hipcMsgRngsize (const hipc_msg msg)
 Returns range size of a HIPC message. More...
 

Function Documentation

size_t hipcMsgTotalSize ( const hipc_msg  msg)

Returns total size of a HIPC message, which is the header size plus the body size.

Parameters
msgHIPC message
Returns
size of the HIPC message

Definition at line 9 of file msg.c.

References HIPC_MSGHDR_SIZE, and hipcMsghdrBdysize().

Referenced by hipcPosixWriteMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char hipcMsgBdySize ( const hipc_msg  msg)

Returns body size of a HIPC message.

Parameters
msgHIPC message
Returns
body size of the HIPC message

Definition at line 20 of file msg.c.

References hipcMsghdrBdysize().

Referenced by hipcPosixReadMsg().

Here is the call graph for this function:

Here is the caller graph for this function:

const void* hipcMsgBdyPtr ( const hipc_msg  msg)

Returns a pointer to a body of a HIPC message.

Parameters
msgHIPC message
Returns
pointer to the body of the HIPC message

Definition at line 31 of file msg.c.

References HIPC_MSGHDR_SIZE.

unsigned char hipcMsgType ( const hipc_msg  msg)

Returns type of a HIPC message.

Parameters
msgHIPC message
Returns
type of the HIPC message

Definition at line 42 of file msg.c.

References HIPC_MSGHDR_BYTE_TYPE.

Referenced by hipcOpen(), and hipcWaitReturn().

Here is the caller graph for this function:

unsigned char hipcMsgOffset ( const hipc_msg  msg)

Returns offset of a HIPC message.

Parameters
msgHIPC message
Returns
offset of the HIPC message

Definition at line 53 of file msg.c.

References HIPC_MSGHDR_BYTE_OFFSET.

Referenced by hipcWaitReturn().

Here is the caller graph for this function:

unsigned char hipcMsgStruno ( const hipc_msg  msg)

Returns structure number of a HIPC message.

Parameters
msgHIPC message
Returns
structure number of the HIPC message

Definition at line 64 of file msg.c.

References HIPC_MSGHDR_BYTE_STRUNO.

Referenced by hipcWaitReturn().

Here is the caller graph for this function:

unsigned char hipcMsgRngsize ( const hipc_msg  msg)

Returns range size of a HIPC message.

Parameters
msgHIPC message
Returns
range size of the HIPC message

Definition at line 75 of file msg.c.

References HIPC_MSGHDR_BYTE_BDYSZ.

Referenced by hipcWaitReturn().

Here is the caller graph for this function: