summaryrefslogtreecommitdiff
path: root/src/tag.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag.h14
1 files changed, 10 insertions, 4 deletions
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);
+