11 #include "CFGrt_ccfg.h"
14 void *cimg,
void *arg)
16 struct STRUlog *log_p;
24 fprintf(fp,
"tick/out %5d/%d\n", log_p->tick, log_p->output);
31 struct STRUprm data[] = {
40 int fdr = STDIN_FILENO;
41 int fdw = STDOUT_FILENO;
44 fp = fopen(
"log.txt",
"w");
57 for (i = 0; i <
sizeof(data) /
sizeof(data[0]); ++i) {
58 hipcPut(&sess,
"STRUprm", &data[i]);
67 fprintf(stderr,
"end\n");
unsigned char hipc_msg[HIPC_MSG_ALLOCSIZE]
enum HIPC_errno hipcPut(hipc_session *const sess_p, char const *const str, void *const cimg)
Puts data specified by str from a HIPC server.
enum HIPC_errno hipcOpen(hipc_session *const sess_p, struct HIPC_client const *const clbase_p, enum HIPC_errno(*rfnc_p)(void *, hipc_msg), void *rarg, enum HIPC_errno(*wfnc_p)(void *, const hipc_msg), void *warg)
Open a session to a HIPC server.
enum HIPC_errno handler_log(struct HIPC_client *cl_p, const hipc_msg msg, void *cimg, void *arg)
enum HIPC_errno hipcPosixReadMsg(void *arg, hipc_msg msg)
Read a HIPC message from fd.
enum HIPC_errno hipcClose(hipc_session *const sess_p)
Closes a session.
enum HIPC_errno hipcSetHandler(hipc_session *const sess_p, char const *const str, void *const cimg, enum HIPC_errno(*hndlr_p)(struct HIPC_client *, const hipc_msg, void *, void *), void *const arg)
Set a handler to a structure type.
enum HIPC_errno hipcPosixWriteMsg(void *arg, const hipc_msg msg)
Write a HIPC message to fd.
#define HIPC_ERRCHECK(sess_p)
Checks whether an error has occurred.