actf 0.0.1
An acute CTF reader
Loading...
Searching...
No Matches
/home/adwe/code/actf/muxer.h
Go to the documentation of this file.
1/*
2 * This file is a part of ACTF.
3 *
4 * Copyright (C) 2024 Adam Wendelin <adwe live se>
5 *
6 * ACTF is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * ACTF is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 * Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with ACTF. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
25#ifndef ACTF_MUXER_H
26#define ACTF_MUXER_H
27
28#include <stdint.h>
29
30#include "event_generator.h"
31
33typedef struct actf_muxer actf_muxer;
34
51actf_muxer *actf_muxer_init(struct actf_event_generator *gens, size_t gens_len,
52 size_t evs_cap);
53
55int actf_muxer_mux(actf_muxer *m, actf_event ***evs, size_t *evs_len);
56
59
62
68
79
80#endif /* ACTF_MUXER_H */
struct actf_event actf_event
An event.
Definition event.h:35
Event generator API.
struct actf_muxer actf_muxer
A muxer, implements an actf_event_generator.
Definition muxer.h:33
void actf_muxer_free(actf_muxer *m)
Free a muxer.
actf_muxer * actf_muxer_init(struct actf_event_generator *gens, size_t gens_len, size_t evs_cap)
Initialize a muxer.
const char * actf_muxer_last_error(actf_muxer *m)
int actf_muxer_mux(actf_muxer *m, actf_event ***evs, size_t *evs_len)
int actf_muxer_seek_ns_from_origin(actf_muxer *m, int64_t tstamp)
struct actf_event_generator actf_muxer_to_generator(actf_muxer *m)
Create an event generator based on a muxer.
An event generator.
Definition event_generator.h:93