43#ifndef HZL_CLIENT_OS_H_
44#define HZL_CLIENT_OS_H_
97 const char* fileName);
General public definitions used used by both the Hazelnet Server and Client.
#define HZL_API
Identifier of the public library API functions.
Definition: hzl.h:122
enum hzl_Err hzl_Err_t
Hazelnet error code, returned by all API functions.
Hazelnet Client public API.
HZL_API hzl_Err_t hzl_ClientNewMsg(hzl_CbsPduMsg_t **pMsg)
Allocates a new CAN FD message structure on the heap with enough space to hold up to 64 B of data.
HZL_API void hzl_ClientFreeMsg(hzl_CbsPduMsg_t **pMsg)
Zeros-out the message, frees it and sets the pointer to it to NULL, to avoid use-after-free and doubl...
HZL_API hzl_Err_t hzl_ClientNew(hzl_ClientCtx_t **pCtx, const char *fileName)
Allocates a new context structure on the heap and fills it with the new configuration from the file a...
HZL_API void hzl_ClientFree(hzl_ClientCtx_t **pCtx)
Zeros-out the context, frees it and sets the pointer to it to NULL, to avoid use-after-free and doubl...
Packed CBS PDU (Protocol Data Unit message) ready to be transmitted by the library user.
Definition: hzl.h:512
Configuration and status of the HazelNet Client library.
Definition: hzl_Client.h:221