Skip to content

Commit

Permalink
Fix type_map() (#488)
Browse files Browse the repository at this point in the history
We cannot declare `VipsTypeMap2Fn` as opaque as this callback is used
by `type_map()`. Instead, restore the `VipsTypeMap2Fn` definition and
use an opaque pointer for the second argument of `vips_type_map()`.
  • Loading branch information
kleisauke authored Sep 21, 2024
1 parent d0564a4 commit 2c67877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvips/vdecls.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def cdefs(features):
const char* g_type_name (GType gtype);
GType g_type_from_name (const char* name);
typedef ... VipsTypeMap2Fn;
void* vips_type_map (GType base, VipsTypeMap2Fn fn, void* a, void* b);
typedef void* (*VipsTypeMap2Fn) (GType type, void* a, void* b);
void* vips_type_map (GType base, void* fn, void* a, void* b);
const char* vips_error_buffer (void);
void vips_error_clear (void);
Expand Down

0 comments on commit 2c67877

Please sign in to comment.