HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
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]) {
30  }
31  }
32  }
33 
34  return retval;
35 }
unsigned char * endian_p
Definition: scfg.h:12
void hipcScfgInit(const struct HIPC_scfg *const cfg_p)
Initializes a server-side configuration.
Definition: scfg.c:8
HIPC_errno
Definition: hipc.h:4
enum HIPC_errno hipcScfgCheckStrusize(const struct HIPC_scfg *const cfg_p)
Checks structure sizes.
Definition: scfg.c:20
const size_t * strusize_p
Definition: scfg.h:16
Definition: scfg.h:9
unsigned char hipcEndian(void)
Returns endian of the system.
Definition: hipc.c:25
unsigned char n_struct
Definition: scfg.h:15