From 42d1c82a0bfa615b832f5ecc2652edc290bf6e9c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 15 Dec 2023 23:02:45 -0500 Subject: add json support and other things --- src/tag.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/tag.h') diff --git a/src/tag.h b/src/tag.h index 93eff64..d0033a5 100644 --- a/src/tag.h +++ b/src/tag.h @@ -67,7 +67,13 @@ typedef struct tag_t { char *name; } tag_t; -bool tag_read_header(tag_t *tag, stream_t *stream, bool named); -bool tag_read_data(tag_t *tag, stream_t *stream); -bool tag_read(tag_t *tag, stream_t *stream, bool named); -void tag_print(const tag_t *tag); +typedef enum { + JSON, + NBT, + SNBT +} format_t; + +void tag_free(tag_t *tag); +bool tag_read(tag_t *tag, const stream_t *stream, format_t format); +bool tag_print(tag_t *tag, const stream_t *stream, format_t format); + -- cgit v1.2.3-freya