summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-10-01 23:55:10 +0300
committerMax Romanov <max.romanov@nginx.com>2020-10-01 23:55:10 +0300
commitbbc6d2470afe8bfc8a97427b0b576080466bd31a (patch)
tree95fd82c286505c0247120e881db1288ec584383a /src/nxt_unit.h
parentc2eb245b32870b6360079ff9a4b063a7cd84d585 (diff)
downloadunit-bbc6d2470afe8bfc8a97427b0b576080466bd31a.tar.gz
unit-bbc6d2470afe8bfc8a97427b0b576080466bd31a.tar.bz2
Publishing libunit's malloc() and free() wrappers for apps.
Diffstat (limited to 'src/nxt_unit.h')
-rw-r--r--src/nxt_unit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_unit.h b/src/nxt_unit.h
index eb3c30fa..e90f0781 100644
--- a/src/nxt_unit.h
+++ b/src/nxt_unit.h
@@ -322,6 +322,10 @@ int nxt_unit_websocket_retain(nxt_unit_websocket_frame_t *ws);
void nxt_unit_websocket_done(nxt_unit_websocket_frame_t *ws);
+void *nxt_unit_malloc(nxt_unit_ctx_t *ctx, size_t size);
+
+void nxt_unit_free(nxt_unit_ctx_t *ctx, void *p);
+
#if defined __has_attribute
#if __has_attribute(format)