HIPC
0.5
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
hipc
scfg.c
Go to the documentation of this file.
1
#include <
hipc/scfg.h
>
2
8
void
hipcScfgInit
(
const
struct
HIPC_scfg
*
const
cfg_p)
9
{
10
*(cfg_p->
endian_p
) =
hipcEndian
();
11
return
;
12
}
13
20
enum
HIPC_errno
hipcScfgCheckStrusize
(
const
struct
HIPC_scfg
*
const
cfg_p)
21
{
22
enum
HIPC_errno
retval;
23
unsigned
int
i;
24
25
retval =
HIPC_SUCCESS
;
26
if
(NULL != cfg_p->
strusize_p
) {
27
for
(i = 0; i < cfg_p->
n_struct
; ++i) {
28
if
(255 < cfg_p->
strusize_p
[i]) {
29
return
HIPC_ERR_S_OVERSIZED_STRU
;
30
}
31
}
32
}
33
34
return
retval;
35
}
HIPC_scfg::endian_p
unsigned char * endian_p
Definition:
scfg.h:12
hipcScfgInit
void hipcScfgInit(const struct HIPC_scfg *const cfg_p)
Initializes a server-side configuration.
Definition:
scfg.c:8
HIPC_errno
HIPC_errno
Definition:
hipc.h:4
hipcScfgCheckStrusize
enum HIPC_errno hipcScfgCheckStrusize(const struct HIPC_scfg *const cfg_p)
Checks structure sizes.
Definition:
scfg.c:20
HIPC_ERR_S_OVERSIZED_STRU
Definition:
hipc.h:17
HIPC_scfg::strusize_p
const size_t * strusize_p
Definition:
scfg.h:16
HIPC_scfg
Definition:
scfg.h:9
hipcEndian
unsigned char hipcEndian(void)
Returns endian of the system.
Definition:
hipc.c:25
scfg.h
HIPC_scfg::n_struct
unsigned char n_struct
Definition:
scfg.h:15
HIPC_SUCCESS
Definition:
hipc.h:5
Generated on Sat Jun 27 2015 09:23:32 for HIPC by
1.8.6