104 enum HIPC_errno hipc_errno,
const char *
const str);
107 const unsigned char struno,
111 const unsigned char struno,
118 const unsigned char struno,
134 const unsigned char struno,
135 const size_t offset,
const size_t size);
138 char const *
const str,
139 unsigned char *struno_p,
140 size_t * offset_p,
size_t * size_p);
144 unsigned char *
const begin,
145 unsigned char *
const end,
146 unsigned char *
const scur_p,
147 unsigned char *
const ccur_p,
const size_t ssize,
149 void (*fnc_p) (
void *
const ccur_p,
150 void *
const scur_p,
const size_t n));
153 const unsigned char struno,
154 const size_t offset,
const size_t size,
155 void *simg,
void *cimg);
158 const unsigned char struno,
159 const size_t offset,
const size_t size,
160 void *simg,
void *cimg);
176 const unsigned char struno,
177 const size_t offset,
const size_t size);
180 const unsigned char struno,
181 const size_t offset,
const size_t size);
enum HIPC_errno hipcClientPack(struct HIPC_client *const cl_p, const unsigned char struno, const size_t offset, const size_t size, void *simg, void *cimg)
Packs a range of contents of cimg into simg.
Machine-dependent information of a structure used in a client.
unsigned char hipc_msg[HIPC_MSG_ALLOCSIZE]
Machine-independent information of a member of a structure used in a client.
enum HIPC_errno hipcClientFeedUnstrumsgAsError(struct HIPC_client *const cl_p, const hipc_msg msgR)
Feeds a message and sets an error specified by the message.
Machine-independent information of a client.
enum HIPC_errno hipcClientGetHipcErrno(const struct HIPC_client *const cl_p)
Gets a HIPC error number that has been set.
void ** hdarg_pp
Handler's arguments.
#define HIPC_IMG_ALLOCSIZE
struct HIPC_cl_dp * cmdp_p
Client Machine DePendent data.
unsigned char hipcClientGetNsysmsg(struct HIPC_client const *const cl_p)
Gets the number of system messages.
void hipcGenmsgHello(hipc_msg msg, const struct HIPC_client *const cl_p)
Generates HELLO message.
char err_detail_str[HIPC_IMG_ALLOCSIZE]
enum HIPC_errno hipcClientFeedSysmsg(struct HIPC_client *const cl_p, const hipc_msg msgR)
Feeds a system message and incorporates it to the internal data of the client.
enum HIPC_errno hipcClientCallHandler(struct HIPC_client *const cl_p, const unsigned char struno, const hipc_msg msgR)
Calls a handler that corresponds to struno.
enum HIPC_errno hipcClientFeedStrumsg(struct HIPC_client *const cl_p, const hipc_msg msgR)
Feeds a message and incorporates it to the internal data of a client.
size_t const * ary_max_idxs
Machine-independent information of a structure used in a client.
enum HIPC_errno hipcGenmsgGet(hipc_msg msg, struct HIPC_client *const cl_p, const unsigned char struno, const size_t offset, const size_t size)
Generates GET message.
enum HIPC_errno hipcGenmsgPut(hipc_msg msg, struct HIPC_client *const cl_p, const unsigned char struno, const size_t offset, const size_t size)
Generates PUT message.
int hipcClientGetStdErrno(const struct HIPC_client *const cl_p)
Gets an errno value saved by hipcClientSetStdErrno().
struct HIPC_ptr_link_list * pllist_p
struct HIPC_cl_indp_mbr const * mbr_p
enum HIPC_errno(** hndlr_pp)(struct HIPC_client *, const hipc_msg, void *, void *)
enum HIPC_errno hipcClientGetStrutpl(struct HIPC_client *const cl_p, char const *const str, unsigned char *struno_p, size_t *offset_p, size_t *size_p)
Gets structure number, offset, and size from ID string.
enum HIPC_errno hipcClientCheckStrutpl(struct HIPC_client *const cl_p, const unsigned char struno, const size_t offset, const size_t size)
Checks a combination of a structure number, an offset, and a size for a HIPC message.
enum HIPC_errno hipcClientEachMbr(struct HIPC_client *const cl_p, struct HIPC_cl_indp_mbr const *const mbr_p, unsigned char *const begin, unsigned char *const end, unsigned char *const scur_p, unsigned char *const ccur_p, const size_t ssize, const size_t csize, void(*fnc_p)(void *const ccur_p, void *const scur_p, const size_t n))
Calls the function specified by fnc_p with each member between begin and end.
enum HIPC_member_type elm_type
void hipcClientSetHandler(struct HIPC_client *const cl_p, const unsigned char struno, enum HIPC_errno(*hndlr_p)(struct HIPC_client *, const hipc_msg, void *, void *), void *const arg)
Sets an handler hndlr_p to a structure number struno.
void hipcClientSetCimg(struct HIPC_client *const cl_p, const unsigned char struno, void *cimg_p)
Sets a client-side image that is a structure instance of a structure.
void hipcClientSetStdErrno(struct HIPC_client *const cl_p)
Sets errno value to a HIPC client.
enum HIPC_member_type type
unsigned char const * struct_size_p
enum HIPC_errno hipcClientCheckMbrSize(struct HIPC_client *const cl_p)
Checks whether sizes of members in structures in a server are the same as sizes in a client...
struct HIPC_cl_indp_stru const * struct_p
enum HIPC_errno hipc_errno
const unsigned char * cfgid
const char * hipcClientGetErrStr(const struct HIPC_client *const cl_p)
Gets a string describing a HIPC error number that has been set to a HIPC client.
enum HIPC_errno hipcClientSetError(struct HIPC_client *const cl_p, enum HIPC_errno hipc_errno, const char *const str)
Sets an error to a client with error detail.
enum HIPC_errno hipcClientUnpack(struct HIPC_client *const cl_p, const unsigned char struno, const size_t offset, const size_t size, void *simg, void *cimg)
Unpacks a range of contents of simg into cimg.
unsigned char ** simg_pp
Server-side images of structures.
const char * hipcClientGetErrDtlStr(const struct HIPC_client *const cl_p)
Gets a string describing details of an error that has been set to a HIPC client.
struct HIPC_ptr_link_list * next
struct HIPC_cl_indp const * indp_p
Machine-dependent information of a client.
struct HIPC_cl_dp_stru * struct_p
struct HIPC_cl_dp * smdp_p
Server Machine DePendent data.
enum HIPC_errno hipcClientInit(struct HIPC_client *const cl_p, struct HIPC_client const *const clbase_p)
Initializes a HIPC client with allocating memory space if necessary.
unsigned char ** cimg_pp
Client-side images of structures.
void hipcClientTerminate(struct HIPC_client *const cl_p)
Terminates a HIPC client with releasing the memory space that the client has.
void hipcGenmsgBye(hipc_msg msg)
Initializes a HIPC message as a BYE message.