add nbt_proctag to nbt.h

also changed the `out` parameter from `u8` to `void`, to be more
acurrate that it may point to whatever.
This commit is contained in:
2025-08-23 23:10:26 +02:00
parent 89ceb5263c
commit 3cdee8b40c
2 changed files with 5 additions and 2 deletions

View File

@@ -54,5 +54,8 @@ struct nbt_procdat {
* `NULL` is returned upon failure, the otherwise returned pointer is not guaranteed to be valid. */
const u8 *nbt_nexttag(const u8 *restrict buf) NONNULL((1)) PURE;
/* Processes the tag entered in `buf`, `buf` is assumed */
const u8 *nbt_proctag(const u8 *restrict buf, u16 slen, void *restrict out) NONNULL((1, 3));
/* initialises a data structure used whilst processing the tags */
struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats) NONNULL((1)) PURE;