From 65fbcd351bfb1f523ec5626659c4d62066e10c89 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Sun, 27 Feb 2022 14:42:17 +0100 Subject: [PATCH] Add missing funcs to public C API (#2692) --- libvips/include/vips/dbuf.h | 1 + libvips/include/vips/foreign.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libvips/include/vips/dbuf.h b/libvips/include/vips/dbuf.h index bb8fca47..b2a9ed65 100644 --- a/libvips/include/vips/dbuf.h +++ b/libvips/include/vips/dbuf.h @@ -63,6 +63,7 @@ typedef struct _VipsDbuf { void vips_dbuf_destroy( VipsDbuf *dbuf ); void vips_dbuf_init( VipsDbuf *dbuf ); +gboolean vips_dbuf_minimum_size( VipsDbuf *dbuf, size_t size ); gboolean vips_dbuf_allocate( VipsDbuf *dbuf, size_t size ); size_t vips_dbuf_read( VipsDbuf *dbuf, unsigned char *data, size_t size ); unsigned char *vips_dbuf_get_write( VipsDbuf *dbuf, size_t *size ); diff --git a/libvips/include/vips/foreign.h b/libvips/include/vips/foreign.h index a94695aa..ed39079c 100644 --- a/libvips/include/vips/foreign.h +++ b/libvips/include/vips/foreign.h @@ -816,6 +816,8 @@ typedef enum { int vips_dzsave( VipsImage *in, const char *name, ... ) __attribute__((sentinel)); +int vips_dzsave_buffer( VipsImage *in, void **buf, size_t *len, ... ) + __attribute__((sentinel)); /** * VipsForeignHeifCompression: