libaribb25/aribb25/ts_section_parser.h
tsukumijima b3f0b2c378 aribb25_api.h への依存を削除
自動生成されるヘッダファイルが CMake に依存していたため
2021-10-23 05:18:59 +09:00

41 lines
868 B
C

#ifndef TS_SECTION_PARSER_H
#define TS_SECTION_PARSER_H
#include "ts_common_types.h"
typedef struct {
int64_t total; /* total received section count */
int64_t unique; /* unique section count */
int64_t error; /* crc and other error section count */
} TS_SECTION_PARSER_STAT;
typedef struct {
void *private_data;
void (* release)(void *parser);
int (* reset)(void *parser);
int (* put)(void *parser, TS_HEADER *hdr, uint8_t *data, intptr_t size);
int (* get)(void *parser, TS_SECTION *sect);
int (* ret)(void *parser, TS_SECTION *sect);
int (* get_count)(void *parser);
int (* get_stat)(void *parser, TS_SECTION_PARSER_STAT *stat);
} TS_SECTION_PARSER;
#ifdef __cplusplus
extern "C" {
#endif
extern TS_SECTION_PARSER *create_ts_section_parser(void);
#ifdef __cplusplus
}
#endif
#endif /* TS_SECTION_PARSER_H */