HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
scfg.h
Go to the documentation of this file.
1 #ifndef HIPC_SCFG_H
2 #define HIPC_SCFG_H
3 
4 #include <stddef.h>
5 
6 #include <hipc.h>
7 #include <hipc/msgd.h>
8 
9 struct HIPC_scfg {
11  const unsigned char *cfgid;
12  unsigned char *endian_p;
13  unsigned int n_sysmsg;
14  const struct HIPC_fixed_sysmsg *sysmsg_p;
15  unsigned char n_struct;
16  const size_t *strusize_p;
17 };
18 
20  const size_t size;
21  const void *const ptr;
22 };
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28  extern void hipcScfgInit(const struct HIPC_scfg *const cfg_p);
29  extern enum HIPC_errno
30  hipcScfgCheckStrusize(const struct HIPC_scfg *const cfg_p);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 #endif
unsigned char * endian_p
Definition: scfg.h:12
unsigned char cfgid_header[HIPC_MSGHDR_SIZE]
Definition: scfg.h:10
const struct HIPC_fixed_sysmsg * sysmsg_p
Definition: scfg.h:14
void hipcScfgInit(const struct HIPC_scfg *const cfg_p)
Initializes a server-side configuration.
Definition: scfg.c:8
HIPC_errno
Definition: hipc.h:4
unsigned int n_sysmsg
Definition: scfg.h:13
const unsigned char * cfgid
Definition: scfg.h:11
const size_t * strusize_p
Definition: scfg.h:16
Definition: scfg.h:9
const size_t size
Definition: scfg.h:20
const void *const ptr
Definition: scfg.h:21
unsigned char n_struct
Definition: scfg.h:15
enum HIPC_errno hipcScfgCheckStrusize(const struct HIPC_scfg *const cfg_p)
Checks structure sizes.
Definition: scfg.c:20