diff options
author | Maria Matejka <mq@ucw.cz> | 2023-04-22 21:20:19 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-22 21:20:19 +0200 |
commit | 6230d87c74e3629e21f1e0fe22a874a58302a01e (patch) | |
tree | bf4f644bf583369de3445cfba336bb87dc8c9113 /lib/resource.h | |
parent | 1141ce4e2d924f29e6e31ccf5e325f870c8895dd (diff) |
Protocols and tables now use the birdloop pools as primary
Diffstat (limited to 'lib/resource.h')
-rw-r--r-- | lib/resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/resource.h b/lib/resource.h index 64803778..2adb9de0 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -12,6 +12,8 @@ #include "lib/lists.h" +#include <stdarg.h> + struct resmem { size_t effective; /* Memory actually used for data storage */ size_t overhead; /* Overhead memory imposed by allocator strategies */ @@ -60,6 +62,7 @@ void *ralloc(pool *, struct resclass *); pool *rp_new(pool *, const char *); /* Create a new pool */ pool *rp_newf(pool *, const char *, ...); /* Create a new pool with a formatted string as its name */ +pool *rp_vnewf(pool *, const char *, va_list); /* Create a new pool with a formatted string as its name */ void rp_init(pool *, const char *); /* Init a new pool */ void rp_initf(pool *, const char *, ...); /* Init a new pool with a formatted string as its name */ static inline void rp_free(pool *p) { rfree(&p->r); } /* Free the whole pool */ |