mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-30 19:34:50 +00:00
17 lines
420 B
C
17 lines
420 B
C
/*
|
|
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#ifndef MUON_FORMATS_LINES_H
|
|
#define MUON_FORMATS_LINES_H
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "datastructures/iterator.h"
|
|
|
|
typedef enum iteration_result ((*each_line_callback)(void *ctx, char *line, size_t len));
|
|
|
|
void each_line(char *buf, uint64_t len, void *ctx, each_line_callback cb);
|
|
#endif
|