diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-09-13 09:38:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-09-13 09:38:07 +0000 |
commit | fb355e4200fcf98f36a4f3e1fbeb1e16b4761ee6 (patch) | |
tree | bf78792e9206e121607ad786432c0b60bbdcdc72 /src/libdcache/dcache-internal.h | |
parent | 45c04a53fb9fbefe4dd86514c7563b4af1961dfb (diff) | |
download | shibari-main.tar.xz |
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libdcache/dcache-internal.h')
-rw-r--r-- | src/libdcache/dcache-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libdcache/dcache-internal.h b/src/libdcache/dcache-internal.h index 49ec504..9986456 100644 --- a/src/libdcache/dcache-internal.h +++ b/src/libdcache/dcache-internal.h @@ -6,6 +6,7 @@ #include <stdint.h> #include <skalibs/tai.h> +#include <skalibs/stralloc.h> #include <skalibs/avlnode.h> #include <skalibs/gensetdyn.h> @@ -14,6 +15,10 @@ #define DNODE(z, i) GENSETDYN_P(dcache_node, &(z)->storage, i) #define DCACHE_NODE_OVERHEAD (32 + sizeof(dcache_node) + 3 * sizeof(avlnode)) +extern int dcache_node_new (dcache *, uint32_t *, char const *, uint16_t, uint16_t, uint16_t) ; +extern int dcache_node_add (dcache *, uint32_t) ; +#define dcache_node_free(node) stralloc_free(&(node)->sa) + extern void dcache_delete (dcache *, uint32_t) ; #endif |