libklvanc
Loading...
Searching...
No Matches
cache.h File Reference

VANC Caching functionality. More...

#include <pthread.h>

Go to the source code of this file.

Classes

struct  klvanc_cache_line_s
struct  klvanc_cache_s

Functions

int klvanc_context_enable_cache (struct klvanc_context_s *ctx)
 Begin caching and summarizing VANC payload, useful when you want to query what VANC messages, and how many you seen on what lines.
void klvanc_cache_reset (struct klvanc_context_s *ctx)
 When caching and summarizing VANC payload is enabled, use this to reset any internal counters, line counts and restart the stats collection process.
struct klvanc_cache_s * klvanc_cache_lookup (struct klvanc_context_s *ctx, uint8_t didnr, uint8_t sdidnr)
 When caching and summarizing VANC payload is enabled, lookup any statistics related to didnr and sdidnr.

Detailed Description

VANC Caching functionality.

Author
Steven Toth stoth.nosp@m.@ker.nosp@m.nella.nosp@m.bs.c.nosp@m.om

Function Documentation

◆ klvanc_cache_lookup()

struct klvanc_cache_s * klvanc_cache_lookup ( struct klvanc_context_s * ctx,
uint8_t didnr,
uint8_t sdidnr )

When caching and summarizing VANC payload is enabled, lookup any statistics related to didnr and sdidnr.

Parameters
[in]structklvanc_context_s *ctx - Context.
Returns
0 - Success
< 0 - Error

◆ klvanc_cache_reset()

void klvanc_cache_reset ( struct klvanc_context_s * ctx)

When caching and summarizing VANC payload is enabled, use this to reset any internal counters, line counts and restart the stats collection process.

Parameters
[in]structklvanc_context_s *ctx - Context.
Returns
0 - Success
< 0 - Error

◆ klvanc_context_enable_cache()

int klvanc_context_enable_cache ( struct klvanc_context_s * ctx)

Begin caching and summarizing VANC payload, useful when you want to query what VANC messages, and how many you seen on what lines.

Parameters
[in]structklvanc_context_s *ctx - Context.
Returns
0 - Success
< 0 - Error