aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-04 00:28:04 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-04 00:28:39 +0100
commit6f47796dc0761fac359ec59ce26c7af5154e538d (patch)
tree14c5c99605cffc4fc3a68fc473324372029d9a6b /include
parent37485168b9a9ab870f5d8bf01da8cccb325f6de4 (diff)
Add a deep copy function for the str_table_t helper
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/str_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/str_table.h b/include/str_table.h
index 61f8aa5..a843e62 100644
--- a/include/str_table.h
+++ b/include/str_table.h
@@ -33,6 +33,8 @@ SQFS_INTERNAL int str_table_init(str_table_t *table, size_t size);
SQFS_INTERNAL void str_table_cleanup(str_table_t *table);
+SQFS_INTERNAL int str_table_copy(str_table_t *dst, const str_table_t *src);
+
/* Resolve a string to an incremental, unique ID. */
SQFS_INTERNAL
int str_table_get_index(str_table_t *table, const char *str, size_t *idx);