12 #include "CFGled_scfg.h"
14 static struct STRUprm
prm;
18 fprintf(stderr,
"led:%d\n", prm_p->led);
95 fprintf(stderr,
"end\n");
enum HIPC_errno hipcUsocAcceptSimple(struct HIPC_usoc *const so_p, const struct HIPC_scfg *const cfg_p)
Accepts a HIPC session of cfg_p.
enum HIPC_errno hipcUsocRead(struct HIPC_usoc *so_p, void *buf, const size_t size)
Reads exactly size bytes from so_p.
enum HIPC_errno hipcGenmdSuccessToGet(hipc_msgd *const mds_p, hipc_msgd const *const mdr_p, void *const stru_p, const size_t stru_size)
Initializes mds_p as a response to mdr_p whose type must be GET.
void hipcPosixUsocInit(struct HIPC_usoc *so_p, const int fdr, const int fdw)
Initializes a universal socket.
enum HIPC_errno hipcsvsLedRun(struct HIPC_usoc *const so_p)
enum HIPC_errno hipcUsocWriteMsgd(struct HIPC_usoc *const so_p, hipc_msgd const *const md_p)
Writes md_p to so_p.
enum HIPC_errno hipcMsgdSetBdyForPut(hipc_msgd *const mdr_p, void *const stru_p, const size_t stru_size)
Sets a body to a HIPC message data that contains a header of a PUT message.
unsigned char hipcMsgdBdySize(hipc_msgd const *const md_p)
Returns body size of a HIPC message data.
#define hipcGenmdQuit(md_p, hipc_errno, errdtlstr)
Initializes a HIPC message data as a QUIT message.
#define hipcGenmdSuccess(md_p)
Initializes a HIPC message data as a SUCCESS message.
static struct STRUprm prm
#define hipcMsgdBdyPtr(md_p)
Returns a pointer to a body of a HIPC message data.
unsigned char hipcMsgdType(hipc_msgd const *const md_p)
Returns type of a HIPC message data.
void hipcMain(struct HIPC_usoc *const so_p)
#define hipcMsgdHdrPtr(md_p)
Returns a pointer to a header of a HIPC message data.
void hipcsvsLedUpdate(struct STRUprm *prm_p)