diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-10-01 23:55:10 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-10-01 23:55:10 +0300 |
commit | bbc6d2470afe8bfc8a97427b0b576080466bd31a (patch) | |
tree | 95fd82c286505c0247120e881db1288ec584383a /src/nxt_unit.h | |
parent | c2eb245b32870b6360079ff9a4b063a7cd84d585 (diff) | |
download | unit-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.h | 4 |
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) |