VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
vlcb.h
Go to the documentation of this file.
1#pragma once
2
3#include <inttypes.h>
4
7
8#define VLCB_NET_PKT_MAX_PAYLOAD 7
9
18
30
32
39
61
63
65 uint8_t payload_len,
66 const VlcbNetPayload *const payload,
67 VlcbNetPacket *const packet);
69 const VlcbNetPayload *const payload,
70 VlcbNetPacket *const packet);
const char *const vlcb_error
Definition error.h:3
VlcbNetProtocol proto
Definition vlcb.h:34
VlcbOpCode opc
Definition vlcb.h:35
VlcbNetPayload payload
Definition vlcb.h:37
uint8_t payload_len
Definition vlcb.h:36
VlcbNetProtocol vlcb_net_pkt_DetectProtocol(VlcbOpCode opc)
Definition vlcb.c:6
uint8_t VlcbNetPayload[7]
Definition vlcb.h:17
vlcb_error vlcb_net_pkt_ConstructErrToStr(VlcbNetPacketConstructErr err)
Definition vlcb.c:15
VlcbNetPacketConstructErr vlcb_net_pkt_New(VlcbOpCode opc, uint8_t payload_len, const VlcbNetPayload *const payload, VlcbNetPacket *const packet)
Definition vlcb.c:35
void vlcb_net_pkt_NewUnchecked(VlcbNetProtocol proto, VlcbOpCode opc, uint8_t payload_len, const VlcbNetPayload *const payload, VlcbNetPacket *const packet)
Definition vlcb.c:28
VlcbNetProtocol
Definition vlcb.h:26
@ VLCB_NET_PROTO_DATAGRAM
Definition vlcb.h:27
@ VLCB_NET_PROTO_STREAM
Definition vlcb.h:28
VlcbNetPacketConstructErr
Definition vlcb.h:40
@ VLCB_NET_PKT_CONSTRUCT_ERR_OK
Definition vlcb.h:41
@ VLCB_NET_PKT_CONSTRUCT_ERR_COUNT
Definition vlcb.h:59
@ VLCB_NET_PKT_CONSTRUCT_ERR_INVALID_OPCODE
Definition vlcb.h:53
@ VLCB_NET_PKT_CONSTRUCT_ERR_PAYLOAD_TOO_LARGE
Definition vlcb.h:48
#define VLCB_NET_PKT_MAX_PAYLOAD
Definition vlcb.h:8
VlcbOpCode
Definition vlcb_defs.h:493