2022-09-29 03:07:18 +08:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//
|
|
|
|
// Copyright(c) 2022 Intel Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
// Author: Jyri Sarha <jyri.sarha@intel.com>
|
2022-09-30 00:30:02 +08:00
|
|
|
//
|
2022-09-29 03:07:18 +08:00
|
|
|
|
|
|
|
#ifndef _PROBES_DEMUX_H_
|
|
|
|
#define _PROBES_DEMUX_H_
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
2022-09-30 00:30:02 +08:00
|
|
|
#include <stdbool.h>
|
2022-09-29 03:07:18 +08:00
|
|
|
|
|
|
|
struct dma_frame_parser;
|
|
|
|
|
|
|
|
struct dma_frame_parser *parser_init(void);
|
|
|
|
|
2022-09-30 00:30:02 +08:00
|
|
|
void parser_log_to_stdout(struct dma_frame_parser *p);
|
|
|
|
|
2022-09-29 03:07:18 +08:00
|
|
|
void parser_free(struct dma_frame_parser *p);
|
|
|
|
|
|
|
|
void parser_fetch_free_buffer(struct dma_frame_parser *p, uint8_t **d, size_t *len);
|
|
|
|
|
|
|
|
int parser_parse_data(struct dma_frame_parser *p, size_t d_len);
|
|
|
|
|
|
|
|
#endif
|