blob: c4705b2cf4dedd443c5f0268e8155615fc007417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <fspec/memory.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);
|