blob: a20e98ac1e3d2fb2c9576878490476ec178ad68a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <fspec/memory.h>
#include <stdbool.h>
struct fspec_validator;
struct fspec_validator {
struct {
size_t (*read)(struct fspec_validator *validator, void *ptr, const size_t size, const size_t nmemb);
} ops;
struct {
struct fspec_mem input;
} mem;
};
bool
fspec_validator_parse(struct fspec_validator *validator, const char *name);
|