diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/nbt.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/nbt.h b/include/nbt.h index 9df7680..48ee785 100644 --- a/include/nbt.h +++ b/include/nbt.h @@ -125,26 +125,23 @@ int nbt_list_shrink(nbt_tag_t *list); int nbt_list_reserve(nbt_tag_t *list, nbt_size_t newsz);
/* realloc internal array to at least the list size plus moresz
- * (basically equivalent to `nbt_list_reserve(list, nbt_list_length(list) + moresz)'.) */
+ * (basically equivalent to `nbt_list_reserve(list, nbt_list_length(list) + moresz)`.) */
int nbt_list_reserve_more(nbt_tag_t *list, nbt_size_t moresz);
/* compound functions */
nbt_size_t nbt_compound_length(nbt_tag_t *compound);
-nbt_tag_t *nbt_compound_find(const char *key);
-nbt_tag_t *nbt_compound_findn(const char *key, nbt_size_t keylen);
+nbt_tag_t *nbt_compound_find(nbt_tag_t *compound, const char *key);
+nbt_tag_t *nbt_compound_findn(nbt_tag_t *compound, const char *key, nbt_size_t keylen);
/* returns NBT_TAG_END if there is no value present */
-nbt_type_t nbt_compound_type(const char *key);
-nbt_type_t nbt_compound_typen(const char *key, nbt_size_t keylen);
+nbt_type_t nbt_compound_type(nbt_tag_t *compound, const char *key);
+nbt_type_t nbt_compound_typen(nbt_tag_t *compound, const char *key, nbt_size_t keylen);
int nbt_compound_put(nbt_tag_t *compound, const char *key, nbt_tag_t *value);
int nbt_compound_putn(nbt_tag_t *compound, const char *key, nbt_size_t sz, nbt_tag_t *value);
-nbt_tag_t *nbt_compound_swap(nbt_tag_t *compound, const char *key, nbt_tag_t *value);
-nbt_tag_t *nbt_compound_swapn(nbt_tag_t *compound, const char *key, nbt_size_t sz, nbt_tag_t *value);
-
int nbt_compound_remove(nbt_tag_t *compound, const char *key);
int nbt_compound_removen(nbt_tag_t *compound, const char *key, nbt_size_t sz);
|
