mirror of
https://github.com/pygos/pkg-utils.git
synced 2024-11-22 12:59:46 +01:00
19 lines
458 B
C
19 lines
458 B
C
/* SPDX-License-Identifier: ISC */
|
|
#ifndef INPUT_FILE_H
|
|
#define INPUT_FILE_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct {
|
|
const char *name;
|
|
int (*handle)(char *line, const char *filename,
|
|
size_t linenum, void *obj);
|
|
} keyword_handler_t;
|
|
|
|
int process_file(const char *filename, const keyword_handler_t *handlers,
|
|
size_t count, void *obj);
|
|
|
|
void input_file_complain(const char *filename, size_t linenum,
|
|
const char *msg);
|
|
|
|
#endif /* INPUT_FILE_H */
|