mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-19 09:25:46 +01:00
write conf scripts
This commit is contained in:
12
src/io/conf.h
Normal file
12
src/io/conf.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "../types.h"
|
||||
#include "../util/atrb.h"
|
||||
|
||||
/* Gets the key and value, if present. Writes the pointer for the value to `out`.
|
||||
* Returns the key index, or <0 upon failure. */
|
||||
int conf_getkeyval(const char *restrict buf, const char *const restrict *restrict keys, int klen,
|
||||
const char *restrict *restrict out) NONNULL((1, 2, 4));
|
||||
|
||||
/* Processes the value of `type` in `val`. Outputs to `out`.
|
||||
* Returns non-zero on failure. */
|
||||
int conf_procval(u8 type, const char *restrict val, void *restrict out) NONNULL((2, 3));
|
||||
Reference in New Issue
Block a user