mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-15 12:50:49 +02:00
ud3tn is available under multiple licenses and we want to reflect this in our source code. But which license information should appear first and how can we manage this efficiently in the future? The Linux Kernel uses SPDX expressions instead of boilerplate sections. This seems to be a great approach, so we do the same here. Signed-off-by: Georg Alexander Murzik <georg.murzik@d3tn.com>
23 lines
664 B
C
23 lines
664 B
C
// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
|
|
#ifndef BLACKHOLE_PARSER_H_INCLUDED
|
|
#define BLACKHOLE_PARSER_H_INCLUDED
|
|
|
|
#include "ud3tn/parser.h"
|
|
#include "ud3tn/result.h"
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct blackhole_parser {
|
|
struct parser *basedata;
|
|
uint64_t to_read;
|
|
};
|
|
|
|
struct parser *blackhole_parser_init(struct blackhole_parser *parser);
|
|
enum ud3tn_result blackhole_parser_reset(struct blackhole_parser *parser);
|
|
enum ud3tn_result blackhole_parser_deinit(struct blackhole_parser *parser);
|
|
|
|
size_t blackhole_parser_read(struct blackhole_parser *parser,
|
|
const uint8_t *buffer, size_t length);
|
|
|
|
#endif /* BLACKHOLE_PARSER_H_INCLUDED */
|