43#ifndef HZL_SERVER_OS_H_
44#define HZL_SERVER_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 Server public API.
HZL_API hzl_Err_t hzl_ServerNew(hzl_ServerCtx_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_ServerFreeMsg(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 void hzl_ServerFree(hzl_ServerCtx_t **pCtx)
Zeros-out the context, frees it and sets the pointer to it to NULL, to avoid use-after-free and doubl...
HZL_API hzl_Err_t hzl_ServerNewMsg(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.
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 Server library.
Definition: hzl_Server.h:307