barectf_packet_buf_addr() is an alias of barectf_packet_buf().
This is more in line with the barectf_packet_set_buf() function which
sets both the buffer's address and size.
This change helps document the platform API.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
return _FROM_VOID_PTR(const struct {{ ctx_struct_name }}, vctx)->buf;
}
+uint8_t *{{ prefix }}packet_buf_addr(const void * const vctx)
+{
+ return {{ prefix }}packet_buf(vctx);
+}
+
uint32_t {{ prefix }}packet_buf_size(const void * const vctx)
{
const struct {{ ctx_struct_name }} * const ctx = _FROM_VOID_PTR(const struct {{ ctx_struct_name }}, vctx);
uint32_t {{ prefix }}packet_events_discarded(const void *ctx);
uint32_t {{ prefix }}discarded_event_records_count(const void * const ctx);
uint8_t *{{ prefix }}packet_buf(const void *ctx);
+uint8_t *{{ prefix }}packet_buf_addr(const void * const ctx);
void {{ prefix }}packet_set_buf(void *ctx, uint8_t *buf, uint32_t buf_size);
uint32_t {{ prefix }}packet_buf_size(const void *ctx);
int {{ prefix }}packet_is_open(const void *ctx);