libclosedcaption 1.0.3
ISDB-Tb/SBTVD (Brazilian DTV) closed caption extraction from MPEG-TS
Loading...
Searching...
No Matches
caption-hooking-priv.h File Reference

Internal use: calling the hooks registered in caption-hooking.h. More...

#include "caption-common.h"
#include "caption-closed.h"
#include "caption-hooking.h"
Include dependency graph for caption-hooking-priv.h:

Go to the source code of this file.

Functions

CaptionHookingControls_t caption_hooking_priv_get_controls (void)
 
CaptionHookingString_t caption_hooking_priv_get_string (void)
 
void caption_hooking_priv_run_controls (CaptionClosed_t *caption, const uint8_t cmd)
 
void caption_hooking_priv_run_string (CaptionClosed_t *caption, const char *string, uint8_t *len)
 

Detailed Description

Internal use: calling the hooks registered in caption-hooking.h.

Author
Jorge Pereira jpere.nosp@m.iran.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
Thu Aug 12 13:49:21 BRT 2010

These functions are used by caption-closed.c and caption-closed-controls.c and are not part of the public API.

Definition in file caption-hooking-priv.h.

Function Documentation

◆ caption_hooking_priv_get_controls()

CaptionHookingControls_t caption_hooking_priv_get_controls ( void  )

Gets the hook of the control commands that is registered now (or NULL), to be able to restore it after a temporary caption_hooking_set_controls().

Returns
The hook, or NULL.

◆ caption_hooking_priv_get_string()

CaptionHookingString_t caption_hooking_priv_get_string ( void  )

Gets the text hook that is registered now (or NULL), to be able to restore it after a temporary caption_hooking_set_string().

Returns
The hook, or NULL.

◆ caption_hooking_priv_run_controls()

void caption_hooking_priv_run_controls ( CaptionClosed_t *  caption,
const uint8_t  cmd 
)

Calls the controls hook, if there is one registered.

Parameters
captionCaption state.
cmdCommand code.

◆ caption_hooking_priv_run_string()

void caption_hooking_priv_run_string ( CaptionClosed_t *  caption,
const char *  string,
uint8_t *  len 
)

Calls the text hook, if there is one registered.

Parameters
captionCaption state.
stringUTF-8 character.
lenNumber of bytes in string.