libklvanc
 All Classes Files Functions Variables Enumerations Macros
Classes | Functions
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. More...
 
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. More...
 
struct klvanc_cache_sklvanc_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. More...
 

Detailed Description

VANC Caching functionality.

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

Function Documentation

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
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
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