barectf_discarded_event_records_count() is an alias of
barectf_packet_events_discarded().
The count of discarded event records is not related to the current
packet; it's a data stream variable.
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)->events_discarded;
}
+uint32_t {{ prefix }}discarded_event_records_count(const void * const vctx)
+{
+ return {{ prefix }}packet_events_discarded(vctx);
+}
+
uint8_t *{{ prefix }}packet_buf(const void * const vctx)
{
return _FROM_VOID_PTR(const struct {{ ctx_struct_name }}, vctx)->buf;
int {{ prefix }}packet_is_full(const void *ctx);
int {{ prefix }}packet_is_empty(const void *ctx);
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);
void {{ prefix }}packet_set_buf(void *ctx, uint8_t *buf, uint32_t buf_size);
uint32_t {{ prefix }}packet_buf_size(const void *ctx);