diff --git a/README.md b/README.md
index 2c84e3c..dec0f0b 100644
--- a/README.md
+++ b/README.md
@@ -37,8 +37,7 @@ libvips versions, assuming there haven't been major changes.
> [!NOTE]
> This library **does not** include `libvips` in the download, you must add it to the system/container you're building
-> for, then make sure it's available in `DYLD_LIBRARY_PATH` (on macOS), `LD_LIBRARY_PATH` (on Linux), or `PATH` (on
-> Windows).
+> for. See details in [native library loading](#native-library-loading).
All libvips operations are exposed via helper classes, like `VImage`. You must provide an [Arena][1] to operations like
`VImage.newFromFile`, which constrains the lifetime of objects generated during usage. You can get an appropriate arena
@@ -141,6 +140,25 @@ memory: high-water mark 128.35 MB
[main] INFO vipsffm.SampleRunner - all samples ran successfully 🎉
```
+## Native library loading
+
+This library requires the `libvips`, `glib`, and `gobject` native libraries to be present in your library path:
+* On macOS: `DYLD_LIBRARY_PATH` (eg `DYLD_LIBRARY_PATH=/opt/homebrew/lib` if you used `brew install vips`)
+* On Linux: `LD_LIBRARY_PATH`
+* On Windows: `PATH`
+
+The naming conventions of these libraries are not consistent across operating systems, so vips-ffm attempts to load each
+in the following order:
+* `vips`, `vips.{abiNumber}`, `libvips-{abiNumber}`
+* `glib-2.0`, `glib-2.0.{abiNumber}`, `libglib-2.0-{abiNumber}`
+* `gobject-2.0`, `gobject-2.0.{abiNumber}`, `libgobject-2.0-{abiNumber}`
+
+Override properties are provided to set your own "ABI number", but note that vips-ffm might not support that version
+yet (which could manifest as crashes/segfaults):
+* `vipsffm.abinumber.vips.override`, default: `42`
+* `vipsffm.abinumber.glib.override`, default: `0`
+* `vipsffm.abinumber.gobject.override`, default: `0`
+
## Project goals
Ideas and suggestions are welcome, but please make sure they fit in to these goals, or you have a good argument about
diff --git a/core/src/main/java/app/photofox/vipsffm/VipsHelper.java b/core/src/main/java/app/photofox/vipsffm/VipsHelper.java
index 547784a..00ebd80 100644
--- a/core/src/main/java/app/photofox/vipsffm/VipsHelper.java
+++ b/core/src/main/java/app/photofox/vipsffm/VipsHelper.java
@@ -1129,186 +1129,6 @@ public static MemorySegment image_new(Arena arena) throws VipsError {
return result;
}
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_memory()
- * }
- */
- public static MemorySegment image_new_memory(Arena arena) throws VipsError {
- var result = VipsRaw.vips_image_new_memory();
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_memory", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_file_RW(const char *filename)
- * }
- */
- public static MemorySegment image_new_from_file_RW(Arena arena, String filenameString) throws
- VipsError {
- var filename = arena.allocateFrom(filenameString);
- var result = VipsRaw.vips_image_new_from_file_RW(filename);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_file_RW", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_file_raw(const char *filename, int xsize, int ysize, int bands, guint64 offset)
- * }
- */
- public static MemorySegment image_new_from_file_raw(Arena arena, String filenameString, int xsize,
- int ysize, int bands, long offset) throws VipsError {
- var filename = arena.allocateFrom(filenameString);
- var result = VipsRaw.vips_image_new_from_file_raw(filename, xsize, ysize, bands, offset);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_file_raw", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment image_new_from_memory(Arena arena, MemorySegment data, long size,
- int width, int height, int bands, int format) throws VipsError {
- if(!VipsValidation.isValidPointer(data)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_memory", "data");
- }
- var result = VipsRaw.vips_image_new_from_memory(data, size, width, height, bands, format);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_memory", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment image_new_from_memory_copy(Arena arena, MemorySegment data, long size,
- int width, int height, int bands, int format) throws VipsError {
- if(!VipsValidation.isValidPointer(data)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_memory_copy", "data");
- }
- var result = VipsRaw.vips_image_new_from_memory_copy(data, size, width, height, bands, format);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_memory_copy", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_matrix(int width, int height)
- * }
- */
- public static MemorySegment image_new_matrix(Arena arena, int width, int height) throws
- VipsError {
- var result = VipsRaw.vips_image_new_matrix(width, height);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_matrix", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_matrix_from_array(int width, int height, const double *array, int size)
- * }
- */
- public static MemorySegment image_new_matrix_from_array(Arena arena, int width, int height,
- MemorySegment array, int size) throws VipsError {
- if(!VipsValidation.isValidPointer(array)) {
- VipsValidation.throwInvalidInputError("vips_image_new_matrix_from_array", "array");
- }
- var result = VipsRaw.vips_image_new_matrix_from_array(width, height, array, size);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_matrix_from_array", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_image(VipsImage *image, const double *c, int n)
- * }
- */
- public static MemorySegment image_new_from_image(Arena arena, MemorySegment image,
- MemorySegment c, int n) throws VipsError {
- if(!VipsValidation.isValidPointer(image)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_image", "image");
- }
- if(!VipsValidation.isValidPointer(c)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_image", "c");
- }
- var result = VipsRaw.vips_image_new_from_image(image, c, n);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_image", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_image1(VipsImage *image, double c)
- * }
- */
- public static MemorySegment image_new_from_image1(Arena arena, MemorySegment image, double c)
- throws VipsError {
- if(!VipsValidation.isValidPointer(image)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_image1", "image");
- }
- var result = VipsRaw.vips_image_new_from_image1(image, c);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_image1", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_temp_file(const char *format)
- * }
- */
- public static MemorySegment image_new_temp_file(Arena arena, String formatString) throws
- VipsError {
- var format = arena.allocateFrom(formatString);
- var result = VipsRaw.vips_image_new_temp_file(format);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_temp_file", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
/**
* Binding for:
* {@snippet lang=c :
@@ -1326,28 +1146,6 @@ public static int image_write(MemorySegment image, MemorySegment out) throws Vip
return result;
}
- /**
- * Binding for:
- * {@snippet lang=c :
- * void *vips_image_write_to_memory(VipsImage *in, size_t *size)
- * }
- */
- public static MemorySegment image_write_to_memory(Arena arena, MemorySegment in,
- MemorySegment size) throws VipsError {
- if(!VipsValidation.isValidPointer(in)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_memory", "in");
- }
- if(!VipsValidation.isValidPointer(size)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_memory", "size");
- }
- var result = VipsRaw.vips_image_write_to_memory(in, size);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_write_to_memory", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
/**
* Binding for:
* {@snippet lang=c :
@@ -1362,38 +1160,6 @@ public static boolean image_hasalpha(MemorySegment image) throws VipsError {
return result == 1;
}
- /**
- * Binding for:
- * {@snippet lang=c :
- * int vips_image_write_prepare(VipsImage *image)
- * }
- */
- public static int image_write_prepare(MemorySegment image) throws VipsError {
- if(!VipsValidation.isValidPointer(image)) {
- VipsValidation.throwInvalidInputError("vips_image_write_prepare", "image");
- }
- var result = VipsRaw.vips_image_write_prepare(image);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * int vips_image_write_line(VipsImage *image, int ypos, VipsPel *linebuffer)
- * }
- */
- public static int image_write_line(MemorySegment image, int ypos, MemorySegment linebuffer) throws
- VipsError {
- if(!VipsValidation.isValidPointer(image)) {
- VipsValidation.throwInvalidInputError("vips_image_write_line", "image");
- }
- if(!VipsValidation.isValidPointer(linebuffer)) {
- VipsValidation.throwInvalidInputError("vips_image_write_line", "linebuffer");
- }
- var result = VipsRaw.vips_image_write_line(image, ypos, linebuffer);
- return result;
- }
-
/**
* Binding for:
* {@snippet lang=c :
@@ -1649,6 +1415,20 @@ public static int image_get_height(MemorySegment image) throws VipsError {
return result;
}
+ /**
+ * Binding for:
+ * {@snippet lang=c :
+ * int vips_image_get_bands(const VipsImage *image)
+ * }
+ */
+ public static int image_get_bands(MemorySegment image) throws VipsError {
+ if(!VipsValidation.isValidPointer(image)) {
+ VipsValidation.throwInvalidInputError("vips_image_get_bands", "image");
+ }
+ var result = VipsRaw.vips_image_get_bands(image);
+ return result;
+ }
+
/**
* Binding for:
* {@snippet lang=c :
@@ -1665,6 +1445,28 @@ public static long image_get_typeof(Arena arena, MemorySegment image, String nam
return result;
}
+ /**
+ * Binding for:
+ * {@snippet lang=c :
+ * int vips_image_get_blob(const VipsImage *image, const char *name, const void **data, size_t *length)
+ * }
+ */
+ public static int image_get_blob(Arena arena, MemorySegment image, String nameString,
+ MemorySegment data, MemorySegment length) throws VipsError {
+ if(!VipsValidation.isValidPointer(image)) {
+ VipsValidation.throwInvalidInputError("vips_image_get_blob", "image");
+ }
+ var name = arena.allocateFrom(nameString);
+ if(!VipsValidation.isValidPointer(data)) {
+ VipsValidation.throwInvalidInputError("vips_image_get_blob", "data");
+ }
+ if(!VipsValidation.isValidPointer(length)) {
+ VipsValidation.throwInvalidInputError("vips_image_get_blob", "length");
+ }
+ var result = VipsRaw.vips_image_get_blob(image, name, data, length);
+ return result;
+ }
+
/**
* Binding for:
* {@snippet lang=c :
@@ -1990,157 +1792,6 @@ public static void error(Arena arena, String domainString, String fmtString,
invoker.apply(domain, fmt, invokerArgs);
}
- /**
- * Binding for:
- * {@snippet lang=c :
- * int vips_image_write_to_target(VipsImage *in, const char *suffix, VipsTarget *target, ...)
- * }
- */
- public static int image_write_to_target(Arena arena, MemorySegment in, String suffixString,
- MemorySegment target, VipsOption... options) throws VipsError {
- if(!VipsValidation.isValidPointer(in)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_target", "in");
- }
- var suffix = arena.allocateFrom(suffixString);
- if(!VipsValidation.isValidPointer(target)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_target", "target");
- }
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_write_to_target.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(in, suffix, target, invokerArgs);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * int vips_image_write_to_buffer(VipsImage *in, const char *suffix, void **buf, size_t *size, ...)
- * }
- */
- public static int image_write_to_buffer(Arena arena, MemorySegment in, String suffixString,
- MemorySegment buf, MemorySegment size, VipsOption... options) throws VipsError {
- if(!VipsValidation.isValidPointer(in)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_buffer", "in");
- }
- var suffix = arena.allocateFrom(suffixString);
- if(!VipsValidation.isValidPointer(buf)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_buffer", "buf");
- }
- if(!VipsValidation.isValidPointer(size)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_buffer", "size");
- }
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_write_to_buffer.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(in, suffix, buf, size, invokerArgs);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * int vips_image_write_to_file(VipsImage *image, const char *name, ...)
- * }
- */
- public static int image_write_to_file(Arena arena, MemorySegment image, String nameString,
- VipsOption... options) throws VipsError {
- if(!VipsValidation.isValidPointer(image)) {
- VipsValidation.throwInvalidInputError("vips_image_write_to_file", "image");
- }
- var name = arena.allocateFrom(nameString);
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_write_to_file.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(image, name, invokerArgs);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_matrixv(int width, int height, ...)
- * }
- */
- public static MemorySegment image_new_matrixv(Arena arena, int width, int height,
- VipsOption... options) throws VipsError {
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_new_matrixv.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(width, height, invokerArgs);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_matrixv", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_source(VipsSource *source, const char *option_string, ...)
- * }
- */
- public static MemorySegment image_new_from_source(Arena arena, MemorySegment source,
- String option_stringString, VipsOption... options) throws VipsError {
- if(!VipsValidation.isValidPointer(source)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_source", "source");
- }
- var option_string = arena.allocateFrom(option_stringString);
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_new_from_source.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(source, option_string, invokerArgs);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_source", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_buffer(const void *buf, size_t len, const char *option_string, ...)
- * }
- */
- public static MemorySegment image_new_from_buffer(Arena arena, MemorySegment buf, long len,
- String option_stringString, VipsOption... options) throws VipsError {
- if(!VipsValidation.isValidPointer(buf)) {
- VipsValidation.throwInvalidInputError("vips_image_new_from_buffer", "buf");
- }
- var option_string = arena.allocateFrom(option_stringString);
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_new_from_buffer.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(buf, len, option_string, invokerArgs);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_buffer", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
- /**
- * Binding for:
- * {@snippet lang=c :
- * VipsImage *vips_image_new_from_file(const char *name, ...)
- * }
- */
- public static MemorySegment image_new_from_file(Arena arena, String nameString,
- VipsOption... options) throws VipsError {
- var name = arena.allocateFrom(nameString);
- var layouts = VipsInvoker.makeInvokerVarargLayouts(options);
- var invoker = VipsRaw.vips_image_new_from_file.makeInvoker(layouts);
- var invokerArgs = VipsInvoker.makeInvokerVarargObjects(arena, options);
- var result = invoker.apply(name, invokerArgs);
- if(!VipsValidation.isValidPointer(result)) {
- VipsValidation.throwInvalidOutputError("vips_image_new_from_file", "result");
- }
- result = result.reinterpret(arena, VipsRaw::g_object_unref);
- return result;
- }
-
/**
* Binding for:
* {@snippet lang=c :
diff --git a/core/src/main/java/app/photofox/vipsffm/VipsInvoker.java b/core/src/main/java/app/photofox/vipsffm/VipsInvoker.java
index 4a7450d..1ff196d 100644
--- a/core/src/main/java/app/photofox/vipsffm/VipsInvoker.java
+++ b/core/src/main/java/app/photofox/vipsffm/VipsInvoker.java
@@ -13,6 +13,13 @@
import static app.photofox.vipsffm.jextract.VipsRaw.*;
+/**
+ *
Contains helper methods to interact with libvips
+ *
+ * You can invoke an operation manually using {@link #invokeOperation(Arena, String, List)} - this is useful
+ * if vips-ffm hasn't yet been built for a new version of libvips. You can find examples of how to use it in
+ * {@link VImage}.
+ */
public class VipsInvoker {
public static void invokeOperation(
diff --git a/core/src/main/java/app/photofox/vipsffm/VipsLibLookup.java b/core/src/main/java/app/photofox/vipsffm/VipsLibLookup.java
index 96fe206..92586b4 100644
--- a/core/src/main/java/app/photofox/vipsffm/VipsLibLookup.java
+++ b/core/src/main/java/app/photofox/vipsffm/VipsLibLookup.java
@@ -26,46 +26,41 @@ public static SymbolLookup buildSymbolLoader(Arena arena) {
private static SymbolLookup findVipsLoader(Arena arena) {
var abiNumber = Optional.ofNullable(System.getProperty("vipsffm.abinumber.vips.override"))
- .orElse("42");
+ .orElse("42");
var names = List.of(
"vips", // default unix-like
"vips." + abiNumber, // some linux systems don't symlink and need abi number
"libvips-" + abiNumber // windows needs everything
);
- for (var name : names) {
- var attempt = attemptLibraryLookup(name, arena);
- if (attempt.isPresent()) {
- return attempt.get();
- }
- }
- return null;
+ return findFirstSymbolLookup(arena, names);
}
private static SymbolLookup findGlibLoader(Arena arena) {
var abiNumber = Optional.ofNullable(System.getProperty("vipsffm.abinumber.glib.override"))
- .orElse("0");
+ .orElse("0");
var names = List.of(
- "glib-2.0", // default unix-like
- "glib-2.0." + abiNumber, // some linux systems don't symlink and need abi number
- "libglib-2.0-" + abiNumber // windows needs everything
+ "glib-2.0", // default unix-like
+ "glib-2.0." + abiNumber, // some linux systems don't symlink and need abi number
+ "libglib-2.0-" + abiNumber // windows needs everything
);
- for (var name : names) {
- var attempt = attemptLibraryLookup(name, arena);
- if (attempt.isPresent()) {
- return attempt.get();
- }
- }
- return null;
+ return findFirstSymbolLookup(arena, names);
}
private static SymbolLookup findGObjectLoader(Arena arena) {
var abiNumber = Optional.ofNullable(System.getProperty("vipsffm.abinumber.gobject.override"))
- .orElse("0");
+ .orElse("0");
var names = List.of(
- "gobject-2.0", // default unix-like
- "gobject-2.0." + abiNumber, // some linux systems don't symlink and need abi number
- "libgobject-2.0-" + abiNumber // windows needs everything
+ "gobject-2.0", // default unix-like
+ "gobject-2.0." + abiNumber, // some linux systems don't symlink and need abi number
+ "libgobject-2.0-" + abiNumber // windows needs everything
);
+ return findFirstSymbolLookup(arena, names);
+ }
+
+ private static SymbolLookup findFirstSymbolLookup(
+ Arena arena,
+ List names
+ ) {
for (var name : names) {
var attempt = attemptLibraryLookup(name, arena);
if (attempt.isPresent()) {
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GCallback.java b/core/src/main/java/app/photofox/vipsffm/jextract/GCallback.java
deleted file mode 100644
index a7c8259..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GCallback.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GCallback)(void)
- * }
- */
-public class GCallback {
-
- GCallback() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply();
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GCallback.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GCallback.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr) {
- try {
- DOWN$MH.invokeExact(funcPtr);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GClassFinalizeFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GClassFinalizeFunc.java
deleted file mode 100644
index be499be..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GClassFinalizeFunc.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GClassFinalizeFunc)(gpointer, gpointer)
- * }
- */
-public class GClassFinalizeFunc {
-
- GClassFinalizeFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment g_class, MemorySegment class_data);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GClassFinalizeFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GClassFinalizeFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment g_class, MemorySegment class_data) {
- try {
- DOWN$MH.invokeExact(funcPtr, g_class, class_data);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GClassInitFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GClassInitFunc.java
deleted file mode 100644
index 490270d..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GClassInitFunc.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GClassInitFunc)(gpointer, gpointer)
- * }
- */
-public class GClassInitFunc {
-
- GClassInitFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment g_class, MemorySegment class_data);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GClassInitFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GClassInitFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment g_class, MemorySegment class_data) {
- try {
- DOWN$MH.invokeExact(funcPtr, g_class, class_data);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectConstructParam.java b/core/src/main/java/app/photofox/vipsffm/jextract/GObjectConstructParam.java
deleted file mode 100644
index 0c648e8..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectConstructParam.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GObjectConstructParam GObjectConstructParam
- * }
- */
-public class GObjectConstructParam extends _GObjectConstructParam {
-
- GObjectConstructParam() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectFinalizeFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GObjectFinalizeFunc.java
deleted file mode 100644
index d0cdedf..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectFinalizeFunc.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GObjectFinalizeFunc)(GObject *)
- * }
- */
-public class GObjectFinalizeFunc {
-
- GObjectFinalizeFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment object);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GObjectFinalizeFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GObjectFinalizeFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment object) {
- try {
- DOWN$MH.invokeExact(funcPtr, object);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectGetPropertyFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GObjectGetPropertyFunc.java
deleted file mode 100644
index 4714236..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectGetPropertyFunc.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GObjectGetPropertyFunc)(GObject *, guint, GValue *, GParamSpec *)
- * }
- */
-public class GObjectGetPropertyFunc {
-
- GObjectGetPropertyFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment object, int property_id, MemorySegment value, MemorySegment pspec);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GObjectGetPropertyFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GObjectGetPropertyFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment object, int property_id, MemorySegment value, MemorySegment pspec) {
- try {
- DOWN$MH.invokeExact(funcPtr, object, property_id, value, pspec);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectSetPropertyFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GObjectSetPropertyFunc.java
deleted file mode 100644
index 44b105c..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GObjectSetPropertyFunc.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GObjectSetPropertyFunc)(GObject *, guint, const GValue *, GParamSpec *)
- * }
- */
-public class GObjectSetPropertyFunc {
-
- GObjectSetPropertyFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment object, int property_id, MemorySegment value, MemorySegment pspec);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GObjectSetPropertyFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GObjectSetPropertyFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment object, int property_id, MemorySegment value, MemorySegment pspec) {
- try {
- DOWN$MH.invokeExact(funcPtr, object, property_id, value, pspec);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoolean.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoolean.java
deleted file mode 100644
index c9832bb..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoolean.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecBoolean GParamSpecBoolean
- * }
- */
-public class GParamSpecBoolean extends _GParamSpecBoolean {
-
- GParamSpecBoolean() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoxed.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoxed.java
deleted file mode 100644
index cbdd93a..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecBoxed.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecBoxed GParamSpecBoxed
- * }
- */
-public class GParamSpecBoxed extends _GParamSpecBoxed {
-
- GParamSpecBoxed() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecChar.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecChar.java
deleted file mode 100644
index b8c3bce..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecChar.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecChar GParamSpecChar
- * }
- */
-public class GParamSpecChar extends _GParamSpecChar {
-
- GParamSpecChar() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecClass.java
deleted file mode 100644
index 18c8ff3..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecClass.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecClass GParamSpecClass
- * }
- */
-public class GParamSpecClass extends _GParamSpecClass {
-
- GParamSpecClass() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecDouble.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecDouble.java
deleted file mode 100644
index 9886e7a..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecDouble.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecDouble GParamSpecDouble
- * }
- */
-public class GParamSpecDouble extends _GParamSpecDouble {
-
- GParamSpecDouble() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecEnum.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecEnum.java
deleted file mode 100644
index 0450378..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecEnum.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecEnum GParamSpecEnum
- * }
- */
-public class GParamSpecEnum extends _GParamSpecEnum {
-
- GParamSpecEnum() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFlags.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFlags.java
deleted file mode 100644
index 8c39c7f..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFlags.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecFlags GParamSpecFlags
- * }
- */
-public class GParamSpecFlags extends _GParamSpecFlags {
-
- GParamSpecFlags() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFloat.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFloat.java
deleted file mode 100644
index ee48350..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecFloat.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecFloat GParamSpecFloat
- * }
- */
-public class GParamSpecFloat extends _GParamSpecFloat {
-
- GParamSpecFloat() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecGType.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecGType.java
deleted file mode 100644
index fe7679d..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecGType.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecGType GParamSpecGType
- * }
- */
-public class GParamSpecGType extends _GParamSpecGType {
-
- GParamSpecGType() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt.java
deleted file mode 100644
index 5860188..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecInt GParamSpecInt
- * }
- */
-public class GParamSpecInt extends _GParamSpecInt {
-
- GParamSpecInt() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt64.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt64.java
deleted file mode 100644
index f4bd6e6..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecInt64.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecInt64 GParamSpecInt64
- * }
- */
-public class GParamSpecInt64 extends _GParamSpecInt64 {
-
- GParamSpecInt64() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecLong.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecLong.java
deleted file mode 100644
index c866f4d..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecLong.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecLong GParamSpecLong
- * }
- */
-public class GParamSpecLong extends _GParamSpecLong {
-
- GParamSpecLong() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecObject.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecObject.java
deleted file mode 100644
index d2735be..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecObject.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecObject GParamSpecObject
- * }
- */
-public class GParamSpecObject extends _GParamSpecObject {
-
- GParamSpecObject() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecOverride.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecOverride.java
deleted file mode 100644
index 279b5fe..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecOverride.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecOverride GParamSpecOverride
- * }
- */
-public class GParamSpecOverride extends _GParamSpecOverride {
-
- GParamSpecOverride() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecParam.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecParam.java
deleted file mode 100644
index 66001c3..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecParam.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecParam GParamSpecParam
- * }
- */
-public class GParamSpecParam extends _GParamSpecParam {
-
- GParamSpecParam() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecPointer.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecPointer.java
deleted file mode 100644
index 68229db..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecPointer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecPointer GParamSpecPointer
- * }
- */
-public class GParamSpecPointer extends _GParamSpecPointer {
-
- GParamSpecPointer() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecString.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecString.java
deleted file mode 100644
index 700ddae..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecString.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecString GParamSpecString
- * }
- */
-public class GParamSpecString extends _GParamSpecString {
-
- GParamSpecString() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecTypeInfo.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecTypeInfo.java
deleted file mode 100644
index 2e07872..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecTypeInfo.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo
- * }
- */
-public class GParamSpecTypeInfo extends _GParamSpecTypeInfo {
-
- GParamSpecTypeInfo() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUChar.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUChar.java
deleted file mode 100644
index 480661f..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUChar.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecUChar GParamSpecUChar
- * }
- */
-public class GParamSpecUChar extends _GParamSpecUChar {
-
- GParamSpecUChar() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt.java
deleted file mode 100644
index 46c1a59..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecUInt GParamSpecUInt
- * }
- */
-public class GParamSpecUInt extends _GParamSpecUInt {
-
- GParamSpecUInt() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt64.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt64.java
deleted file mode 100644
index f5759d0..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUInt64.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecUInt64 GParamSpecUInt64
- * }
- */
-public class GParamSpecUInt64 extends _GParamSpecUInt64 {
-
- GParamSpecUInt64() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecULong.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecULong.java
deleted file mode 100644
index 138627a..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecULong.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecULong GParamSpecULong
- * }
- */
-public class GParamSpecULong extends _GParamSpecULong {
-
- GParamSpecULong() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUnichar.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUnichar.java
deleted file mode 100644
index eb7aa55..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecUnichar.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecUnichar GParamSpecUnichar
- * }
- */
-public class GParamSpecUnichar extends _GParamSpecUnichar {
-
- GParamSpecUnichar() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecValueArray.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecValueArray.java
deleted file mode 100644
index 3cc7886..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecValueArray.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecValueArray GParamSpecValueArray
- * }
- */
-public class GParamSpecValueArray extends _GParamSpecValueArray {
-
- GParamSpecValueArray() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecVariant.java b/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecVariant.java
deleted file mode 100644
index e3cbc3a..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GParamSpecVariant.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GParamSpecVariant GParamSpecVariant
- * }
- */
-public class GParamSpecVariant extends _GParamSpecVariant {
-
- GParamSpecVariant() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GTypeClassCacheFunc.java b/core/src/main/java/app/photofox/vipsffm/jextract/GTypeClassCacheFunc.java
deleted file mode 100644
index 3c7be41..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GTypeClassCacheFunc.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef gboolean (*GTypeClassCacheFunc)(gpointer, GTypeClass *)
- * }
- */
-public class GTypeClassCacheFunc {
-
- GTypeClassCacheFunc() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment cache_data, MemorySegment g_class);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GTypeClassCacheFunc.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GTypeClassCacheFunc.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment cache_data, MemorySegment g_class) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, cache_data, g_class);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GValueArray.java b/core/src/main/java/app/photofox/vipsffm/jextract/GValueArray.java
deleted file mode 100644
index 05b590e..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GValueArray.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _GValueArray GValueArray
- * }
- */
-public class GValueArray extends _GValueArray {
-
- GValueArray() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/GValueTransform.java b/core/src/main/java/app/photofox/vipsffm/jextract/GValueTransform.java
deleted file mode 100644
index e3e9cc3..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/GValueTransform.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void (*GValueTransform)(const GValue *, GValue *)
- * }
- */
-public class GValueTransform {
-
- GValueTransform() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment src_value, MemorySegment dest_value);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(GValueTransform.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(GValueTransform.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment src_value, MemorySegment dest_value) {
- try {
- DOWN$MH.invokeExact(funcPtr, src_value, dest_value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsConnectionClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsConnectionClass.java
deleted file mode 100644
index 1627eba..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsConnectionClass.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _VipsConnectionClass {
- * VipsObjectClass parent_class;
- * } VipsConnectionClass
- * }
- */
-public class VipsConnectionClass extends _VipsConnectionClass {
-
- VipsConnectionClass() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectClass.java
deleted file mode 100644
index 6c97352..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectClass.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _VipsObjectClass VipsObjectClass
- * }
- */
-public class VipsObjectClass extends _VipsObjectClass {
-
- VipsObjectClass() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectSetArguments.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectSetArguments.java
deleted file mode 100644
index b7247b7..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsObjectSetArguments.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef void *(*VipsObjectSetArguments)(VipsObject *, void *, void *)
- * }
- */
-public class VipsObjectSetArguments {
-
- VipsObjectSetArguments() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- MemorySegment apply(MemorySegment object, MemorySegment a, MemorySegment b);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(VipsObjectSetArguments.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(VipsObjectSetArguments.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment object, MemorySegment a, MemorySegment b) {
- try {
- return (MemorySegment) DOWN$MH.invokeExact(funcPtr, object, a, b);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsRaw.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsRaw.java
index 1b8ff73..cb73921 100644
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsRaw.java
+++ b/core/src/main/java/app/photofox/vipsffm/jextract/VipsRaw.java
@@ -137,64 +137,6 @@ public static void g_free(MemorySegment mem) {
}
}
- private static class g_free_sized {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_free_sized");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void g_free_sized(gpointer mem, size_t size)
- * }
- */
- public static FunctionDescriptor g_free_sized$descriptor() {
- return g_free_sized.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void g_free_sized(gpointer mem, size_t size)
- * }
- */
- public static MethodHandle g_free_sized$handle() {
- return g_free_sized.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void g_free_sized(gpointer mem, size_t size)
- * }
- */
- public static MemorySegment g_free_sized$address() {
- return g_free_sized.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void g_free_sized(gpointer mem, size_t size)
- * }
- */
- public static void g_free_sized(MemorySegment mem, long size) {
- var mh$ = g_free_sized.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_free_sized", mem, size);
- }
- mh$.invokeExact(mem, size);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
private static class g_string_free {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
@@ -254,122 +196,6 @@ public static MemorySegment g_string_free(MemorySegment string, int free_segment
}
}
- private static class g_string_free_and_steal {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_string_free_and_steal");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern gchar *g_string_free_and_steal(GString *string)
- * }
- */
- public static FunctionDescriptor g_string_free_and_steal$descriptor() {
- return g_string_free_and_steal.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern gchar *g_string_free_and_steal(GString *string)
- * }
- */
- public static MethodHandle g_string_free_and_steal$handle() {
- return g_string_free_and_steal.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern gchar *g_string_free_and_steal(GString *string)
- * }
- */
- public static MemorySegment g_string_free_and_steal$address() {
- return g_string_free_and_steal.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern gchar *g_string_free_and_steal(GString *string)
- * }
- */
- public static MemorySegment g_string_free_and_steal(MemorySegment string) {
- var mh$ = g_string_free_and_steal.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_string_free_and_steal", string);
- }
- return (MemorySegment)mh$.invokeExact(string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_string_free_to_bytes {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_string_free_to_bytes");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GBytes *g_string_free_to_bytes(GString *string)
- * }
- */
- public static FunctionDescriptor g_string_free_to_bytes$descriptor() {
- return g_string_free_to_bytes.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GBytes *g_string_free_to_bytes(GString *string)
- * }
- */
- public static MethodHandle g_string_free_to_bytes$handle() {
- return g_string_free_to_bytes.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GBytes *g_string_free_to_bytes(GString *string)
- * }
- */
- public static MemorySegment g_string_free_to_bytes$address() {
- return g_string_free_to_bytes.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GBytes *g_string_free_to_bytes(GString *string)
- * }
- */
- public static MemorySegment g_string_free_to_bytes(MemorySegment string) {
- var mh$ = g_string_free_to_bytes.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_string_free_to_bytes", string);
- }
- return (MemorySegment)mh$.invokeExact(string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
private static class g_test_log_type_name {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
@@ -530,10 +356,13 @@ public static int G_TYPE_DEBUG_MASK() {
return G_TYPE_DEBUG_MASK;
}
- private static class g_type_init {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( );
+ private static class g_type_name {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_LONG
+ );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_init");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -541,56 +370,57 @@ private static class g_type_init {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_init()
+ * extern const gchar *g_type_name(GType type)
* }
*/
- public static FunctionDescriptor g_type_init$descriptor() {
- return g_type_init.DESC;
+ public static FunctionDescriptor g_type_name$descriptor() {
+ return g_type_name.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_init()
+ * extern const gchar *g_type_name(GType type)
* }
*/
- public static MethodHandle g_type_init$handle() {
- return g_type_init.HANDLE;
+ public static MethodHandle g_type_name$handle() {
+ return g_type_name.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_init()
+ * extern const gchar *g_type_name(GType type)
* }
*/
- public static MemorySegment g_type_init$address() {
- return g_type_init.ADDR;
+ public static MemorySegment g_type_name$address() {
+ return g_type_name.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_init()
+ * extern const gchar *g_type_name(GType type)
* }
*/
- public static void g_type_init() {
- var mh$ = g_type_init.HANDLE;
+ public static MemorySegment g_type_name(long type) {
+ var mh$ = g_type_name.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_init");
+ traceDowncall("g_type_name", type);
}
- mh$.invokeExact();
+ return (MemorySegment)mh$.invokeExact(type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_init_with_debug_flags {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_INT
+ private static class g_type_from_name {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_LONG,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_init_with_debug_flags");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_from_name");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -598,57 +428,57 @@ private static class g_type_init_with_debug_flags {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_init_with_debug_flags(GTypeDebugFlags debug_flags)
+ * extern GType g_type_from_name(const gchar *name)
* }
*/
- public static FunctionDescriptor g_type_init_with_debug_flags$descriptor() {
- return g_type_init_with_debug_flags.DESC;
+ public static FunctionDescriptor g_type_from_name$descriptor() {
+ return g_type_from_name.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_init_with_debug_flags(GTypeDebugFlags debug_flags)
+ * extern GType g_type_from_name(const gchar *name)
* }
*/
- public static MethodHandle g_type_init_with_debug_flags$handle() {
- return g_type_init_with_debug_flags.HANDLE;
+ public static MethodHandle g_type_from_name$handle() {
+ return g_type_from_name.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_init_with_debug_flags(GTypeDebugFlags debug_flags)
+ * extern GType g_type_from_name(const gchar *name)
* }
*/
- public static MemorySegment g_type_init_with_debug_flags$address() {
- return g_type_init_with_debug_flags.ADDR;
+ public static MemorySegment g_type_from_name$address() {
+ return g_type_from_name.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_init_with_debug_flags(GTypeDebugFlags debug_flags)
+ * extern GType g_type_from_name(const gchar *name)
* }
*/
- public static void g_type_init_with_debug_flags(int debug_flags) {
- var mh$ = g_type_init_with_debug_flags.HANDLE;
+ public static long g_type_from_name(MemorySegment name) {
+ var mh$ = g_type_from_name.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_init_with_debug_flags", debug_flags);
+ traceDowncall("g_type_from_name", name);
}
- mh$.invokeExact(debug_flags);
+ return (long)mh$.invokeExact(name);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_name {
+ private static class g_type_class_ref {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_ref");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -656,173 +486,139 @@ private static class g_type_name {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern const gchar *g_type_name(GType type)
+ * extern gpointer g_type_class_ref(GType type)
* }
*/
- public static FunctionDescriptor g_type_name$descriptor() {
- return g_type_name.DESC;
+ public static FunctionDescriptor g_type_class_ref$descriptor() {
+ return g_type_class_ref.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern const gchar *g_type_name(GType type)
+ * extern gpointer g_type_class_ref(GType type)
* }
*/
- public static MethodHandle g_type_name$handle() {
- return g_type_name.HANDLE;
+ public static MethodHandle g_type_class_ref$handle() {
+ return g_type_class_ref.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern const gchar *g_type_name(GType type)
+ * extern gpointer g_type_class_ref(GType type)
* }
*/
- public static MemorySegment g_type_name$address() {
- return g_type_name.ADDR;
+ public static MemorySegment g_type_class_ref$address() {
+ return g_type_class_ref.ADDR;
}
/**
* {@snippet lang=c :
- * extern const gchar *g_type_name(GType type)
+ * extern gpointer g_type_class_ref(GType type)
* }
*/
- public static MemorySegment g_type_name(long type) {
- var mh$ = g_type_name.HANDLE;
+ public static MemorySegment g_type_class_ref(long type) {
+ var mh$ = g_type_class_ref.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_name", type);
+ traceDowncall("g_type_class_ref", type);
}
return (MemorySegment)mh$.invokeExact(type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
-
- private static class g_type_qname {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_qname");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
+ private static final int G_TYPE_FLAG_CLASSED = (int)1L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern GQuark g_type_qname(GType type)
+ * enum .G_TYPE_FLAG_CLASSED = 1
* }
*/
- public static FunctionDescriptor g_type_qname$descriptor() {
- return g_type_qname.DESC;
+ public static int G_TYPE_FLAG_CLASSED() {
+ return G_TYPE_FLAG_CLASSED;
}
-
+ private static final int G_TYPE_FLAG_INSTANTIATABLE = (int)2L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern GQuark g_type_qname(GType type)
+ * enum .G_TYPE_FLAG_INSTANTIATABLE = 2
* }
*/
- public static MethodHandle g_type_qname$handle() {
- return g_type_qname.HANDLE;
+ public static int G_TYPE_FLAG_INSTANTIATABLE() {
+ return G_TYPE_FLAG_INSTANTIATABLE;
}
-
+ private static final int G_TYPE_FLAG_DERIVABLE = (int)4L;
/**
- * Address for:
* {@snippet lang=c :
- * extern GQuark g_type_qname(GType type)
+ * enum .G_TYPE_FLAG_DERIVABLE = 4
* }
*/
- public static MemorySegment g_type_qname$address() {
- return g_type_qname.ADDR;
+ public static int G_TYPE_FLAG_DERIVABLE() {
+ return G_TYPE_FLAG_DERIVABLE;
}
-
+ private static final int G_TYPE_FLAG_DEEP_DERIVABLE = (int)8L;
/**
* {@snippet lang=c :
- * extern GQuark g_type_qname(GType type)
+ * enum .G_TYPE_FLAG_DEEP_DERIVABLE = 8
* }
*/
- public static int g_type_qname(long type) {
- var mh$ = g_type_qname.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_qname", type);
- }
- return (int)mh$.invokeExact(type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_type_from_name {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_from_name");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int G_TYPE_FLAG_DEEP_DERIVABLE() {
+ return G_TYPE_FLAG_DEEP_DERIVABLE;
}
-
+ private static final int G_TYPE_FLAG_NONE = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_from_name(const gchar *name)
+ * enum .G_TYPE_FLAG_NONE = 0
* }
*/
- public static FunctionDescriptor g_type_from_name$descriptor() {
- return g_type_from_name.DESC;
+ public static int G_TYPE_FLAG_NONE() {
+ return G_TYPE_FLAG_NONE;
}
-
+ private static final int G_TYPE_FLAG_ABSTRACT = (int)16L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_from_name(const gchar *name)
+ * enum .G_TYPE_FLAG_ABSTRACT = 16
* }
*/
- public static MethodHandle g_type_from_name$handle() {
- return g_type_from_name.HANDLE;
+ public static int G_TYPE_FLAG_ABSTRACT() {
+ return G_TYPE_FLAG_ABSTRACT;
}
-
+ private static final int G_TYPE_FLAG_VALUE_ABSTRACT = (int)32L;
/**
- * Address for:
* {@snippet lang=c :
- * extern GType g_type_from_name(const gchar *name)
+ * enum .G_TYPE_FLAG_VALUE_ABSTRACT = 32
* }
*/
- public static MemorySegment g_type_from_name$address() {
- return g_type_from_name.ADDR;
+ public static int G_TYPE_FLAG_VALUE_ABSTRACT() {
+ return G_TYPE_FLAG_VALUE_ABSTRACT;
}
-
+ private static final int G_TYPE_FLAG_FINAL = (int)64L;
/**
* {@snippet lang=c :
- * extern GType g_type_from_name(const gchar *name)
+ * enum .G_TYPE_FLAG_FINAL = 64
* }
*/
- public static long g_type_from_name(MemorySegment name) {
- var mh$ = g_type_from_name.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_from_name", name);
- }
- return (long)mh$.invokeExact(name);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int G_TYPE_FLAG_FINAL() {
+ return G_TYPE_FLAG_FINAL;
+ }
+ private static final int G_TYPE_FLAG_DEPRECATED = (int)128L;
+ /**
+ * {@snippet lang=c :
+ * enum .G_TYPE_FLAG_DEPRECATED = 128
+ * }
+ */
+ public static int G_TYPE_FLAG_DEPRECATED() {
+ return G_TYPE_FLAG_DEPRECATED;
}
- private static class g_type_parent {
+ private static class g_type_check_instance_is_a {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_parent");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_instance_is_a");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -830,57 +626,57 @@ private static class g_type_parent {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_parent(GType type)
+ * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
* }
*/
- public static FunctionDescriptor g_type_parent$descriptor() {
- return g_type_parent.DESC;
+ public static FunctionDescriptor g_type_check_instance_is_a$descriptor() {
+ return g_type_check_instance_is_a.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_parent(GType type)
+ * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
* }
*/
- public static MethodHandle g_type_parent$handle() {
- return g_type_parent.HANDLE;
+ public static MethodHandle g_type_check_instance_is_a$handle() {
+ return g_type_check_instance_is_a.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_parent(GType type)
+ * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
* }
*/
- public static MemorySegment g_type_parent$address() {
- return g_type_parent.ADDR;
+ public static MemorySegment g_type_check_instance_is_a$address() {
+ return g_type_check_instance_is_a.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_parent(GType type)
+ * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
* }
*/
- public static long g_type_parent(long type) {
- var mh$ = g_type_parent.HANDLE;
+ public static int g_type_check_instance_is_a(MemorySegment instance, long iface_type) {
+ var mh$ = g_type_check_instance_is_a.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_parent", type);
+ traceDowncall("g_type_check_instance_is_a", instance, iface_type);
}
- return (long)mh$.invokeExact(type);
+ return (int)mh$.invokeExact(instance, iface_type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_depth {
+ private static class g_type_name_from_instance {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_depth");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name_from_instance");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -888,58 +684,57 @@ private static class g_type_depth {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern guint g_type_depth(GType type)
+ * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
* }
*/
- public static FunctionDescriptor g_type_depth$descriptor() {
- return g_type_depth.DESC;
+ public static FunctionDescriptor g_type_name_from_instance$descriptor() {
+ return g_type_name_from_instance.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern guint g_type_depth(GType type)
+ * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
* }
*/
- public static MethodHandle g_type_depth$handle() {
- return g_type_depth.HANDLE;
+ public static MethodHandle g_type_name_from_instance$handle() {
+ return g_type_name_from_instance.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern guint g_type_depth(GType type)
+ * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
* }
*/
- public static MemorySegment g_type_depth$address() {
- return g_type_depth.ADDR;
+ public static MemorySegment g_type_name_from_instance$address() {
+ return g_type_name_from_instance.ADDR;
}
/**
* {@snippet lang=c :
- * extern guint g_type_depth(GType type)
+ * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
* }
*/
- public static int g_type_depth(long type) {
- var mh$ = g_type_depth.HANDLE;
+ public static MemorySegment g_type_name_from_instance(MemorySegment instance) {
+ var mh$ = g_type_name_from_instance.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_depth", type);
+ traceDowncall("g_type_name_from_instance", instance);
}
- return (int)mh$.invokeExact(type);
+ return (MemorySegment)mh$.invokeExact(instance);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_next_base {
+ private static class g_type_name_from_class {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_next_base");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name_from_class");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -947,58 +742,58 @@ private static class g_type_next_base {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_next_base(GType leaf_type, GType root_type)
+ * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
* }
*/
- public static FunctionDescriptor g_type_next_base$descriptor() {
- return g_type_next_base.DESC;
+ public static FunctionDescriptor g_type_name_from_class$descriptor() {
+ return g_type_name_from_class.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_next_base(GType leaf_type, GType root_type)
+ * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
* }
*/
- public static MethodHandle g_type_next_base$handle() {
- return g_type_next_base.HANDLE;
+ public static MethodHandle g_type_name_from_class$handle() {
+ return g_type_name_from_class.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_next_base(GType leaf_type, GType root_type)
+ * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
* }
*/
- public static MemorySegment g_type_next_base$address() {
- return g_type_next_base.ADDR;
+ public static MemorySegment g_type_name_from_class$address() {
+ return g_type_name_from_class.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_next_base(GType leaf_type, GType root_type)
+ * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
* }
*/
- public static long g_type_next_base(long leaf_type, long root_type) {
- var mh$ = g_type_next_base.HANDLE;
+ public static MemorySegment g_type_name_from_class(MemorySegment g_class) {
+ var mh$ = g_type_name_from_class.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_next_base", leaf_type, root_type);
+ traceDowncall("g_type_name_from_class", g_class);
}
- return (long)mh$.invokeExact(leaf_type, root_type);
+ return (MemorySegment)mh$.invokeExact(g_class);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_is_a {
+ private static class g_value_init {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_is_a");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_init");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1006,57 +801,56 @@ private static class g_type_is_a {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_is_a(GType type, GType is_a_type)
+ * extern GValue *g_value_init(GValue *value, GType g_type)
* }
*/
- public static FunctionDescriptor g_type_is_a$descriptor() {
- return g_type_is_a.DESC;
+ public static FunctionDescriptor g_value_init$descriptor() {
+ return g_value_init.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_is_a(GType type, GType is_a_type)
+ * extern GValue *g_value_init(GValue *value, GType g_type)
* }
*/
- public static MethodHandle g_type_is_a$handle() {
- return g_type_is_a.HANDLE;
+ public static MethodHandle g_value_init$handle() {
+ return g_value_init.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_is_a(GType type, GType is_a_type)
+ * extern GValue *g_value_init(GValue *value, GType g_type)
* }
*/
- public static MemorySegment g_type_is_a$address() {
- return g_type_is_a.ADDR;
+ public static MemorySegment g_value_init$address() {
+ return g_value_init.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_is_a(GType type, GType is_a_type)
+ * extern GValue *g_value_init(GValue *value, GType g_type)
* }
*/
- public static int g_type_is_a(long type, long is_a_type) {
- var mh$ = g_type_is_a.HANDLE;
+ public static MemorySegment g_value_init(MemorySegment value, long g_type) {
+ var mh$ = g_value_init.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_is_a", type, is_a_type);
+ traceDowncall("g_value_init", value, g_type);
}
- return (int)mh$.invokeExact(type, is_a_type);
+ return (MemorySegment)mh$.invokeExact(value, g_type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_ref {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ private static class g_value_unset {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_ref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_unset");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1064,57 +858,57 @@ private static class g_type_class_ref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_class_ref(GType type)
+ * extern void g_value_unset(GValue *value)
* }
*/
- public static FunctionDescriptor g_type_class_ref$descriptor() {
- return g_type_class_ref.DESC;
+ public static FunctionDescriptor g_value_unset$descriptor() {
+ return g_value_unset.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_class_ref(GType type)
+ * extern void g_value_unset(GValue *value)
* }
*/
- public static MethodHandle g_type_class_ref$handle() {
- return g_type_class_ref.HANDLE;
+ public static MethodHandle g_value_unset$handle() {
+ return g_value_unset.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_class_ref(GType type)
+ * extern void g_value_unset(GValue *value)
* }
*/
- public static MemorySegment g_type_class_ref$address() {
- return g_type_class_ref.ADDR;
+ public static MemorySegment g_value_unset$address() {
+ return g_value_unset.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_class_ref(GType type)
+ * extern void g_value_unset(GValue *value)
* }
*/
- public static MemorySegment g_type_class_ref(long type) {
- var mh$ = g_type_class_ref.HANDLE;
+ public static void g_value_unset(MemorySegment value) {
+ var mh$ = g_value_unset.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_ref", type);
+ traceDowncall("g_value_unset", value);
}
- return (MemorySegment)mh$.invokeExact(type);
+ mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_peek {
+ private static class g_param_spec_get_blurb {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_peek");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_param_spec_get_blurb");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1122,57 +916,62 @@ private static class g_type_class_peek {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek(GType type)
+ * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
* }
*/
- public static FunctionDescriptor g_type_class_peek$descriptor() {
- return g_type_class_peek.DESC;
+ public static FunctionDescriptor g_param_spec_get_blurb$descriptor() {
+ return g_param_spec_get_blurb.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek(GType type)
+ * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
* }
*/
- public static MethodHandle g_type_class_peek$handle() {
- return g_type_class_peek.HANDLE;
+ public static MethodHandle g_param_spec_get_blurb$handle() {
+ return g_param_spec_get_blurb.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek(GType type)
+ * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
* }
*/
- public static MemorySegment g_type_class_peek$address() {
- return g_type_class_peek.ADDR;
+ public static MemorySegment g_param_spec_get_blurb$address() {
+ return g_param_spec_get_blurb.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_class_peek(GType type)
+ * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
* }
*/
- public static MemorySegment g_type_class_peek(long type) {
- var mh$ = g_type_class_peek.HANDLE;
+ public static MemorySegment g_param_spec_get_blurb(MemorySegment pspec) {
+ var mh$ = g_param_spec_get_blurb.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_peek", type);
+ traceDowncall("g_param_spec_get_blurb", pspec);
}
- return (MemorySegment)mh$.invokeExact(type);
+ return (MemorySegment)mh$.invokeExact(pspec);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_peek_static {
+ private static class g_signal_connect_data {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_LONG,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_peek_static");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_signal_connect_data");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1180,56 +979,57 @@ private static class g_type_class_peek_static {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_static(GType type)
+ * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
* }
*/
- public static FunctionDescriptor g_type_class_peek_static$descriptor() {
- return g_type_class_peek_static.DESC;
+ public static FunctionDescriptor g_signal_connect_data$descriptor() {
+ return g_signal_connect_data.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_static(GType type)
+ * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
* }
*/
- public static MethodHandle g_type_class_peek_static$handle() {
- return g_type_class_peek_static.HANDLE;
+ public static MethodHandle g_signal_connect_data$handle() {
+ return g_signal_connect_data.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_static(GType type)
+ * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
* }
*/
- public static MemorySegment g_type_class_peek_static$address() {
- return g_type_class_peek_static.ADDR;
+ public static MemorySegment g_signal_connect_data$address() {
+ return g_signal_connect_data.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_static(GType type)
+ * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
* }
*/
- public static MemorySegment g_type_class_peek_static(long type) {
- var mh$ = g_type_class_peek_static.HANDLE;
+ public static long g_signal_connect_data(MemorySegment instance, MemorySegment detailed_signal, MemorySegment c_handler, MemorySegment data, MemorySegment destroy_data, int connect_flags) {
+ var mh$ = g_signal_connect_data.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_peek_static", type);
+ traceDowncall("g_signal_connect_data", instance, detailed_signal, c_handler, data, destroy_data, connect_flags);
}
- return (MemorySegment)mh$.invokeExact(type);
+ return (long)mh$.invokeExact(instance, detailed_signal, c_handler, data, destroy_data, connect_flags);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_unref {
+ private static class g_value_set_boxed {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_unref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_boxed");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1237,57 +1037,57 @@ private static class g_type_class_unref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_class_unref(gpointer g_class)
+ * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
* }
*/
- public static FunctionDescriptor g_type_class_unref$descriptor() {
- return g_type_class_unref.DESC;
+ public static FunctionDescriptor g_value_set_boxed$descriptor() {
+ return g_value_set_boxed.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_class_unref(gpointer g_class)
+ * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
* }
*/
- public static MethodHandle g_type_class_unref$handle() {
- return g_type_class_unref.HANDLE;
+ public static MethodHandle g_value_set_boxed$handle() {
+ return g_value_set_boxed.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_class_unref(gpointer g_class)
+ * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
* }
*/
- public static MemorySegment g_type_class_unref$address() {
- return g_type_class_unref.ADDR;
+ public static MemorySegment g_value_set_boxed$address() {
+ return g_value_set_boxed.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_class_unref(gpointer g_class)
+ * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
* }
*/
- public static void g_type_class_unref(MemorySegment g_class) {
- var mh$ = g_type_class_unref.HANDLE;
+ public static void g_value_set_boxed(MemorySegment value, MemorySegment v_boxed) {
+ var mh$ = g_value_set_boxed.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_unref", g_class);
+ traceDowncall("g_value_set_boxed", value, v_boxed);
}
- mh$.invokeExact(g_class);
+ mh$.invokeExact(value, v_boxed);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_peek_parent {
+ private static class g_value_get_boxed {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_peek_parent");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_boxed");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1295,58 +1095,58 @@ private static class g_type_class_peek_parent {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_parent(gpointer g_class)
+ * extern gpointer g_value_get_boxed(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_class_peek_parent$descriptor() {
- return g_type_class_peek_parent.DESC;
+ public static FunctionDescriptor g_value_get_boxed$descriptor() {
+ return g_value_get_boxed.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_parent(gpointer g_class)
+ * extern gpointer g_value_get_boxed(const GValue *value)
* }
*/
- public static MethodHandle g_type_class_peek_parent$handle() {
- return g_type_class_peek_parent.HANDLE;
+ public static MethodHandle g_value_get_boxed$handle() {
+ return g_value_get_boxed.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_parent(gpointer g_class)
+ * extern gpointer g_value_get_boxed(const GValue *value)
* }
*/
- public static MemorySegment g_type_class_peek_parent$address() {
- return g_type_class_peek_parent.ADDR;
+ public static MemorySegment g_value_get_boxed$address() {
+ return g_value_get_boxed.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_class_peek_parent(gpointer g_class)
+ * extern gpointer g_value_get_boxed(const GValue *value)
* }
*/
- public static MemorySegment g_type_class_peek_parent(MemorySegment g_class) {
- var mh$ = g_type_class_peek_parent.HANDLE;
+ public static MemorySegment g_value_get_boxed(MemorySegment value) {
+ var mh$ = g_value_get_boxed.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_peek_parent", g_class);
+ traceDowncall("g_value_get_boxed", value);
}
- return (MemorySegment)mh$.invokeExact(g_class);
+ return (MemorySegment)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_interface_peek {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class g_object_set_property {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_peek");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_set_property");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1354,57 +1154,58 @@ private static class g_type_interface_peek {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek(gpointer instance_class, GType iface_type)
+ * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_interface_peek$descriptor() {
- return g_type_interface_peek.DESC;
+ public static FunctionDescriptor g_object_set_property$descriptor() {
+ return g_object_set_property.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek(gpointer instance_class, GType iface_type)
+ * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
* }
*/
- public static MethodHandle g_type_interface_peek$handle() {
- return g_type_interface_peek.HANDLE;
+ public static MethodHandle g_object_set_property$handle() {
+ return g_object_set_property.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek(gpointer instance_class, GType iface_type)
+ * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
* }
*/
- public static MemorySegment g_type_interface_peek$address() {
- return g_type_interface_peek.ADDR;
+ public static MemorySegment g_object_set_property$address() {
+ return g_object_set_property.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek(gpointer instance_class, GType iface_type)
+ * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
* }
*/
- public static MemorySegment g_type_interface_peek(MemorySegment instance_class, long iface_type) {
- var mh$ = g_type_interface_peek.HANDLE;
+ public static void g_object_set_property(MemorySegment object, MemorySegment property_name, MemorySegment value) {
+ var mh$ = g_object_set_property.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_peek", instance_class, iface_type);
+ traceDowncall("g_object_set_property", object, property_name, value);
}
- return (MemorySegment)mh$.invokeExact(instance_class, iface_type);
+ mh$.invokeExact(object, property_name, value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_interface_peek_parent {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class g_object_get_property {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_peek_parent");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_get_property");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1412,57 +1213,57 @@ private static class g_type_interface_peek_parent {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek_parent(gpointer g_iface)
+ * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
* }
*/
- public static FunctionDescriptor g_type_interface_peek_parent$descriptor() {
- return g_type_interface_peek_parent.DESC;
+ public static FunctionDescriptor g_object_get_property$descriptor() {
+ return g_object_get_property.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek_parent(gpointer g_iface)
+ * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
* }
*/
- public static MethodHandle g_type_interface_peek_parent$handle() {
- return g_type_interface_peek_parent.HANDLE;
+ public static MethodHandle g_object_get_property$handle() {
+ return g_object_get_property.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek_parent(gpointer g_iface)
+ * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
* }
*/
- public static MemorySegment g_type_interface_peek_parent$address() {
- return g_type_interface_peek_parent.ADDR;
+ public static MemorySegment g_object_get_property$address() {
+ return g_object_get_property.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_interface_peek_parent(gpointer g_iface)
+ * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
* }
*/
- public static MemorySegment g_type_interface_peek_parent(MemorySegment g_iface) {
- var mh$ = g_type_interface_peek_parent.HANDLE;
+ public static void g_object_get_property(MemorySegment object, MemorySegment property_name, MemorySegment value) {
+ var mh$ = g_object_get_property.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_peek_parent", g_iface);
+ traceDowncall("g_object_get_property", object, property_name, value);
}
- return (MemorySegment)mh$.invokeExact(g_iface);
+ mh$.invokeExact(object, property_name, value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_default_interface_ref {
+ private static class g_object_ref_sink {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_default_interface_ref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_ref_sink");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1470,57 +1271,57 @@ private static class g_type_default_interface_ref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_ref(GType g_type)
+ * extern gpointer g_object_ref_sink(gpointer object)
* }
*/
- public static FunctionDescriptor g_type_default_interface_ref$descriptor() {
- return g_type_default_interface_ref.DESC;
+ public static FunctionDescriptor g_object_ref_sink$descriptor() {
+ return g_object_ref_sink.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_ref(GType g_type)
+ * extern gpointer g_object_ref_sink(gpointer object)
* }
*/
- public static MethodHandle g_type_default_interface_ref$handle() {
- return g_type_default_interface_ref.HANDLE;
+ public static MethodHandle g_object_ref_sink$handle() {
+ return g_object_ref_sink.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_ref(GType g_type)
+ * extern gpointer g_object_ref_sink(gpointer object)
* }
*/
- public static MemorySegment g_type_default_interface_ref$address() {
- return g_type_default_interface_ref.ADDR;
+ public static MemorySegment g_object_ref_sink$address() {
+ return g_object_ref_sink.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_ref(GType g_type)
+ * extern gpointer g_object_ref_sink(gpointer object)
* }
*/
- public static MemorySegment g_type_default_interface_ref(long g_type) {
- var mh$ = g_type_default_interface_ref.HANDLE;
+ public static MemorySegment g_object_ref_sink(MemorySegment object) {
+ var mh$ = g_object_ref_sink.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_default_interface_ref", g_type);
+ traceDowncall("g_object_ref_sink", object);
}
- return (MemorySegment)mh$.invokeExact(g_type);
+ return (MemorySegment)mh$.invokeExact(object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_default_interface_peek {
+ private static class g_object_ref {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_default_interface_peek");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_ref");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1528,56 +1329,56 @@ private static class g_type_default_interface_peek {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_peek(GType g_type)
+ * extern gpointer g_object_ref(gpointer object)
* }
*/
- public static FunctionDescriptor g_type_default_interface_peek$descriptor() {
- return g_type_default_interface_peek.DESC;
+ public static FunctionDescriptor g_object_ref$descriptor() {
+ return g_object_ref.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_peek(GType g_type)
+ * extern gpointer g_object_ref(gpointer object)
* }
*/
- public static MethodHandle g_type_default_interface_peek$handle() {
- return g_type_default_interface_peek.HANDLE;
+ public static MethodHandle g_object_ref$handle() {
+ return g_object_ref.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_peek(GType g_type)
+ * extern gpointer g_object_ref(gpointer object)
* }
*/
- public static MemorySegment g_type_default_interface_peek$address() {
- return g_type_default_interface_peek.ADDR;
+ public static MemorySegment g_object_ref$address() {
+ return g_object_ref.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_default_interface_peek(GType g_type)
+ * extern gpointer g_object_ref(gpointer object)
* }
*/
- public static MemorySegment g_type_default_interface_peek(long g_type) {
- var mh$ = g_type_default_interface_peek.HANDLE;
+ public static MemorySegment g_object_ref(MemorySegment object) {
+ var mh$ = g_object_ref.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_default_interface_peek", g_type);
+ traceDowncall("g_object_ref", object);
}
- return (MemorySegment)mh$.invokeExact(g_type);
+ return (MemorySegment)mh$.invokeExact(object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_default_interface_unref {
+ private static class g_object_unref {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_default_interface_unref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_unref");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1585,58 +1386,57 @@ private static class g_type_default_interface_unref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_default_interface_unref(gpointer g_iface)
+ * extern void g_object_unref(gpointer object)
* }
*/
- public static FunctionDescriptor g_type_default_interface_unref$descriptor() {
- return g_type_default_interface_unref.DESC;
+ public static FunctionDescriptor g_object_unref$descriptor() {
+ return g_object_unref.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_default_interface_unref(gpointer g_iface)
+ * extern void g_object_unref(gpointer object)
* }
*/
- public static MethodHandle g_type_default_interface_unref$handle() {
- return g_type_default_interface_unref.HANDLE;
+ public static MethodHandle g_object_unref$handle() {
+ return g_object_unref.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_default_interface_unref(gpointer g_iface)
+ * extern void g_object_unref(gpointer object)
* }
*/
- public static MemorySegment g_type_default_interface_unref$address() {
- return g_type_default_interface_unref.ADDR;
+ public static MemorySegment g_object_unref$address() {
+ return g_object_unref.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_default_interface_unref(gpointer g_iface)
+ * extern void g_object_unref(gpointer object)
* }
*/
- public static void g_type_default_interface_unref(MemorySegment g_iface) {
- var mh$ = g_type_default_interface_unref.HANDLE;
+ public static void g_object_unref(MemorySegment object) {
+ var mh$ = g_object_unref.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_default_interface_unref", g_iface);
+ traceDowncall("g_object_unref", object);
}
- mh$.invokeExact(g_iface);
+ mh$.invokeExact(object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_children {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class g_value_set_object {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_children");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_object");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1644,58 +1444,57 @@ private static class g_type_children {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType *g_type_children(GType type, guint *n_children)
+ * extern void g_value_set_object(GValue *value, gpointer v_object)
* }
*/
- public static FunctionDescriptor g_type_children$descriptor() {
- return g_type_children.DESC;
+ public static FunctionDescriptor g_value_set_object$descriptor() {
+ return g_value_set_object.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType *g_type_children(GType type, guint *n_children)
+ * extern void g_value_set_object(GValue *value, gpointer v_object)
* }
*/
- public static MethodHandle g_type_children$handle() {
- return g_type_children.HANDLE;
+ public static MethodHandle g_value_set_object$handle() {
+ return g_value_set_object.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType *g_type_children(GType type, guint *n_children)
+ * extern void g_value_set_object(GValue *value, gpointer v_object)
* }
*/
- public static MemorySegment g_type_children$address() {
- return g_type_children.ADDR;
+ public static MemorySegment g_value_set_object$address() {
+ return g_value_set_object.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType *g_type_children(GType type, guint *n_children)
+ * extern void g_value_set_object(GValue *value, gpointer v_object)
* }
*/
- public static MemorySegment g_type_children(long type, MemorySegment n_children) {
- var mh$ = g_type_children.HANDLE;
+ public static void g_value_set_object(MemorySegment value, MemorySegment v_object) {
+ var mh$ = g_value_set_object.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_children", type, n_children);
+ traceDowncall("g_value_set_object", value, v_object);
}
- return (MemorySegment)mh$.invokeExact(type, n_children);
+ mh$.invokeExact(value, v_object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_interfaces {
+ private static class g_value_get_object {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interfaces");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_object");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1703,117 +1502,102 @@ private static class g_type_interfaces {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType *g_type_interfaces(GType type, guint *n_interfaces)
+ * extern gpointer g_value_get_object(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_interfaces$descriptor() {
- return g_type_interfaces.DESC;
+ public static FunctionDescriptor g_value_get_object$descriptor() {
+ return g_value_get_object.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType *g_type_interfaces(GType type, guint *n_interfaces)
+ * extern gpointer g_value_get_object(const GValue *value)
* }
*/
- public static MethodHandle g_type_interfaces$handle() {
- return g_type_interfaces.HANDLE;
+ public static MethodHandle g_value_get_object$handle() {
+ return g_value_get_object.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType *g_type_interfaces(GType type, guint *n_interfaces)
+ * extern gpointer g_value_get_object(const GValue *value)
* }
*/
- public static MemorySegment g_type_interfaces$address() {
- return g_type_interfaces.ADDR;
+ public static MemorySegment g_value_get_object$address() {
+ return g_value_get_object.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType *g_type_interfaces(GType type, guint *n_interfaces)
+ * extern gpointer g_value_get_object(const GValue *value)
* }
*/
- public static MemorySegment g_type_interfaces(long type, MemorySegment n_interfaces) {
- var mh$ = g_type_interfaces.HANDLE;
+ public static MemorySegment g_value_get_object(MemorySegment value) {
+ var mh$ = g_value_get_object.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interfaces", type, n_interfaces);
+ traceDowncall("g_value_get_object", value);
}
- return (MemorySegment)mh$.invokeExact(type, n_interfaces);
+ return (MemorySegment)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_set_qdata {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_set_qdata");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static class g_param_spec_types$constants {
+ public static final AddressLayout LAYOUT = VipsRaw.C_POINTER;
+ public static final MemorySegment SEGMENT = VipsRaw.findOrThrow("g_param_spec_types").reinterpret(LAYOUT.byteSize());
}
/**
- * Function descriptor for:
+ * Layout for variable:
* {@snippet lang=c :
- * extern void g_type_set_qdata(GType type, GQuark quark, gpointer data)
+ * extern GType *g_param_spec_types
* }
*/
- public static FunctionDescriptor g_type_set_qdata$descriptor() {
- return g_type_set_qdata.DESC;
+ public static AddressLayout g_param_spec_types$layout() {
+ return g_param_spec_types$constants.LAYOUT;
}
/**
- * Downcall method handle for:
+ * Segment for variable:
* {@snippet lang=c :
- * extern void g_type_set_qdata(GType type, GQuark quark, gpointer data)
+ * extern GType *g_param_spec_types
* }
*/
- public static MethodHandle g_type_set_qdata$handle() {
- return g_type_set_qdata.HANDLE;
+ public static MemorySegment g_param_spec_types$segment() {
+ return g_param_spec_types$constants.SEGMENT;
}
/**
- * Address for:
+ * Getter for variable:
* {@snippet lang=c :
- * extern void g_type_set_qdata(GType type, GQuark quark, gpointer data)
+ * extern GType *g_param_spec_types
* }
*/
- public static MemorySegment g_type_set_qdata$address() {
- return g_type_set_qdata.ADDR;
+ public static MemorySegment g_param_spec_types() {
+ return g_param_spec_types$constants.SEGMENT.get(g_param_spec_types$constants.LAYOUT, 0L);
}
/**
+ * Setter for variable:
* {@snippet lang=c :
- * extern void g_type_set_qdata(GType type, GQuark quark, gpointer data)
+ * extern GType *g_param_spec_types
* }
*/
- public static void g_type_set_qdata(long type, int quark, MemorySegment data) {
- var mh$ = g_type_set_qdata.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_set_qdata", type, quark, data);
- }
- mh$.invokeExact(type, quark, data);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static void g_param_spec_types(MemorySegment varValue) {
+ g_param_spec_types$constants.SEGMENT.set(g_param_spec_types$constants.LAYOUT, 0L, varValue);
}
- private static class g_type_get_qdata {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class g_value_set_boolean {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_get_qdata");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_boolean");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1821,57 +1605,57 @@ private static class g_type_get_qdata {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_get_qdata(GType type, GQuark quark)
+ * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
* }
*/
- public static FunctionDescriptor g_type_get_qdata$descriptor() {
- return g_type_get_qdata.DESC;
+ public static FunctionDescriptor g_value_set_boolean$descriptor() {
+ return g_value_set_boolean.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_get_qdata(GType type, GQuark quark)
+ * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
* }
*/
- public static MethodHandle g_type_get_qdata$handle() {
- return g_type_get_qdata.HANDLE;
+ public static MethodHandle g_value_set_boolean$handle() {
+ return g_value_set_boolean.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_get_qdata(GType type, GQuark quark)
+ * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
* }
*/
- public static MemorySegment g_type_get_qdata$address() {
- return g_type_get_qdata.ADDR;
+ public static MemorySegment g_value_set_boolean$address() {
+ return g_value_set_boolean.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_get_qdata(GType type, GQuark quark)
+ * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
* }
*/
- public static MemorySegment g_type_get_qdata(long type, int quark) {
- var mh$ = g_type_get_qdata.HANDLE;
+ public static void g_value_set_boolean(MemorySegment value, int v_boolean) {
+ var mh$ = g_value_set_boolean.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_get_qdata", type, quark);
+ traceDowncall("g_value_set_boolean", value, v_boolean);
}
- return (MemorySegment)mh$.invokeExact(type, quark);
+ mh$.invokeExact(value, v_boolean);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_query {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
+ private static class g_value_get_boolean {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_query");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_boolean");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1879,57 +1663,57 @@ private static class g_type_query {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_query(GType type, GTypeQuery *query)
+ * extern gboolean g_value_get_boolean(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_query$descriptor() {
- return g_type_query.DESC;
+ public static FunctionDescriptor g_value_get_boolean$descriptor() {
+ return g_value_get_boolean.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_query(GType type, GTypeQuery *query)
+ * extern gboolean g_value_get_boolean(const GValue *value)
* }
*/
- public static MethodHandle g_type_query$handle() {
- return g_type_query.HANDLE;
+ public static MethodHandle g_value_get_boolean$handle() {
+ return g_value_get_boolean.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_query(GType type, GTypeQuery *query)
+ * extern gboolean g_value_get_boolean(const GValue *value)
* }
*/
- public static MemorySegment g_type_query$address() {
- return g_type_query.ADDR;
+ public static MemorySegment g_value_get_boolean$address() {
+ return g_value_get_boolean.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_query(GType type, GTypeQuery *query)
+ * extern gboolean g_value_get_boolean(const GValue *value)
* }
*/
- public static void g_type_query(long type, MemorySegment query) {
- var mh$ = g_type_query.HANDLE;
+ public static int g_value_get_boolean(MemorySegment value) {
+ var mh$ = g_value_get_boolean.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_query", type, query);
+ traceDowncall("g_value_get_boolean", value);
}
- mh$.invokeExact(type, query);
+ return (int)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_get_instance_count {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG
+ private static class g_value_set_int {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_get_instance_count");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_int");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -1937,141 +1721,115 @@ private static class g_type_get_instance_count {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern int g_type_get_instance_count(GType type)
+ * extern void g_value_set_int(GValue *value, gint v_int)
* }
*/
- public static FunctionDescriptor g_type_get_instance_count$descriptor() {
- return g_type_get_instance_count.DESC;
+ public static FunctionDescriptor g_value_set_int$descriptor() {
+ return g_value_set_int.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern int g_type_get_instance_count(GType type)
+ * extern void g_value_set_int(GValue *value, gint v_int)
* }
*/
- public static MethodHandle g_type_get_instance_count$handle() {
- return g_type_get_instance_count.HANDLE;
+ public static MethodHandle g_value_set_int$handle() {
+ return g_value_set_int.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern int g_type_get_instance_count(GType type)
+ * extern void g_value_set_int(GValue *value, gint v_int)
* }
*/
- public static MemorySegment g_type_get_instance_count$address() {
- return g_type_get_instance_count.ADDR;
+ public static MemorySegment g_value_set_int$address() {
+ return g_value_set_int.ADDR;
}
/**
* {@snippet lang=c :
- * extern int g_type_get_instance_count(GType type)
+ * extern void g_value_set_int(GValue *value, gint v_int)
* }
*/
- public static int g_type_get_instance_count(long type) {
- var mh$ = g_type_get_instance_count.HANDLE;
+ public static void g_value_set_int(MemorySegment value, int v_int) {
+ var mh$ = g_value_set_int.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_get_instance_count", type);
+ traceDowncall("g_value_set_int", value, v_int);
}
- return (int)mh$.invokeExact(type);
+ mh$.invokeExact(value, v_int);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static final int G_TYPE_FLAG_CLASSED = (int)1L;
+
+ private static class g_value_get_int {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER
+ );
+
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_int");
+
+ public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ }
+
/**
+ * Function descriptor for:
* {@snippet lang=c :
- * enum .G_TYPE_FLAG_CLASSED = 1
+ * extern gint g_value_get_int(const GValue *value)
* }
*/
- public static int G_TYPE_FLAG_CLASSED() {
- return G_TYPE_FLAG_CLASSED;
+ public static FunctionDescriptor g_value_get_int$descriptor() {
+ return g_value_get_int.DESC;
}
- private static final int G_TYPE_FLAG_INSTANTIATABLE = (int)2L;
+
/**
+ * Downcall method handle for:
* {@snippet lang=c :
- * enum .G_TYPE_FLAG_INSTANTIATABLE = 2
+ * extern gint g_value_get_int(const GValue *value)
* }
*/
- public static int G_TYPE_FLAG_INSTANTIATABLE() {
- return G_TYPE_FLAG_INSTANTIATABLE;
+ public static MethodHandle g_value_get_int$handle() {
+ return g_value_get_int.HANDLE;
}
- private static final int G_TYPE_FLAG_DERIVABLE = (int)4L;
+
/**
+ * Address for:
* {@snippet lang=c :
- * enum .G_TYPE_FLAG_DERIVABLE = 4
+ * extern gint g_value_get_int(const GValue *value)
* }
*/
- public static int G_TYPE_FLAG_DERIVABLE() {
- return G_TYPE_FLAG_DERIVABLE;
+ public static MemorySegment g_value_get_int$address() {
+ return g_value_get_int.ADDR;
}
- private static final int G_TYPE_FLAG_DEEP_DERIVABLE = (int)8L;
+
/**
* {@snippet lang=c :
- * enum .G_TYPE_FLAG_DEEP_DERIVABLE = 8
+ * extern gint g_value_get_int(const GValue *value)
* }
*/
- public static int G_TYPE_FLAG_DEEP_DERIVABLE() {
- return G_TYPE_FLAG_DEEP_DERIVABLE;
- }
- private static final int G_TYPE_FLAG_NONE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .G_TYPE_FLAG_NONE = 0
- * }
- */
- public static int G_TYPE_FLAG_NONE() {
- return G_TYPE_FLAG_NONE;
- }
- private static final int G_TYPE_FLAG_ABSTRACT = (int)16L;
- /**
- * {@snippet lang=c :
- * enum .G_TYPE_FLAG_ABSTRACT = 16
- * }
- */
- public static int G_TYPE_FLAG_ABSTRACT() {
- return G_TYPE_FLAG_ABSTRACT;
- }
- private static final int G_TYPE_FLAG_VALUE_ABSTRACT = (int)32L;
- /**
- * {@snippet lang=c :
- * enum .G_TYPE_FLAG_VALUE_ABSTRACT = 32
- * }
- */
- public static int G_TYPE_FLAG_VALUE_ABSTRACT() {
- return G_TYPE_FLAG_VALUE_ABSTRACT;
- }
- private static final int G_TYPE_FLAG_FINAL = (int)64L;
- /**
- * {@snippet lang=c :
- * enum .G_TYPE_FLAG_FINAL = 64
- * }
- */
- public static int G_TYPE_FLAG_FINAL() {
- return G_TYPE_FLAG_FINAL;
- }
- private static final int G_TYPE_FLAG_DEPRECATED = (int)128L;
- /**
- * {@snippet lang=c :
- * enum .G_TYPE_FLAG_DEPRECATED = 128
- * }
- */
- public static int G_TYPE_FLAG_DEPRECATED() {
- return G_TYPE_FLAG_DEPRECATED;
+ public static int g_value_get_int(MemorySegment value) {
+ var mh$ = g_value_get_int.HANDLE;
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("g_value_get_int", value);
+ }
+ return (int)mh$.invokeExact(value);
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
+ }
}
- private static class g_type_register_static {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
+ private static class g_value_set_long {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_register_static");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_long");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2079,63 +1837,57 @@ private static class g_type_register_static {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_register_static(GType parent_type, const gchar *type_name, const GTypeInfo *info, GTypeFlags flags)
+ * extern void g_value_set_long(GValue *value, glong v_long)
* }
*/
- public static FunctionDescriptor g_type_register_static$descriptor() {
- return g_type_register_static.DESC;
+ public static FunctionDescriptor g_value_set_long$descriptor() {
+ return g_value_set_long.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_register_static(GType parent_type, const gchar *type_name, const GTypeInfo *info, GTypeFlags flags)
+ * extern void g_value_set_long(GValue *value, glong v_long)
* }
*/
- public static MethodHandle g_type_register_static$handle() {
- return g_type_register_static.HANDLE;
+ public static MethodHandle g_value_set_long$handle() {
+ return g_value_set_long.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_register_static(GType parent_type, const gchar *type_name, const GTypeInfo *info, GTypeFlags flags)
+ * extern void g_value_set_long(GValue *value, glong v_long)
* }
*/
- public static MemorySegment g_type_register_static$address() {
- return g_type_register_static.ADDR;
+ public static MemorySegment g_value_set_long$address() {
+ return g_value_set_long.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_register_static(GType parent_type, const gchar *type_name, const GTypeInfo *info, GTypeFlags flags)
+ * extern void g_value_set_long(GValue *value, glong v_long)
* }
*/
- public static long g_type_register_static(long parent_type, MemorySegment type_name, MemorySegment info, int flags) {
- var mh$ = g_type_register_static.HANDLE;
+ public static void g_value_set_long(MemorySegment value, long v_long) {
+ var mh$ = g_value_set_long.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_register_static", parent_type, type_name, info, flags);
+ traceDowncall("g_value_set_long", value, v_long);
}
- return (long)mh$.invokeExact(parent_type, type_name, info, flags);
+ mh$.invokeExact(value, v_long);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_register_static_simple {
+ private static class g_value_get_long {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_register_static_simple");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_long");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2143,60 +1895,57 @@ private static class g_type_register_static_simple {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_register_static_simple(GType parent_type, const gchar *type_name, guint class_size, GClassInitFunc class_init, guint instance_size, GInstanceInitFunc instance_init, GTypeFlags flags)
+ * extern glong g_value_get_long(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_register_static_simple$descriptor() {
- return g_type_register_static_simple.DESC;
+ public static FunctionDescriptor g_value_get_long$descriptor() {
+ return g_value_get_long.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_register_static_simple(GType parent_type, const gchar *type_name, guint class_size, GClassInitFunc class_init, guint instance_size, GInstanceInitFunc instance_init, GTypeFlags flags)
+ * extern glong g_value_get_long(const GValue *value)
* }
*/
- public static MethodHandle g_type_register_static_simple$handle() {
- return g_type_register_static_simple.HANDLE;
+ public static MethodHandle g_value_get_long$handle() {
+ return g_value_get_long.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_register_static_simple(GType parent_type, const gchar *type_name, guint class_size, GClassInitFunc class_init, guint instance_size, GInstanceInitFunc instance_init, GTypeFlags flags)
+ * extern glong g_value_get_long(const GValue *value)
* }
*/
- public static MemorySegment g_type_register_static_simple$address() {
- return g_type_register_static_simple.ADDR;
+ public static MemorySegment g_value_get_long$address() {
+ return g_value_get_long.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_register_static_simple(GType parent_type, const gchar *type_name, guint class_size, GClassInitFunc class_init, guint instance_size, GInstanceInitFunc instance_init, GTypeFlags flags)
+ * extern glong g_value_get_long(const GValue *value)
* }
*/
- public static long g_type_register_static_simple(long parent_type, MemorySegment type_name, int class_size, MemorySegment class_init, int instance_size, MemorySegment instance_init, int flags) {
- var mh$ = g_type_register_static_simple.HANDLE;
+ public static long g_value_get_long(MemorySegment value) {
+ var mh$ = g_value_get_long.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_register_static_simple", parent_type, type_name, class_size, class_init, instance_size, instance_init, flags);
+ traceDowncall("g_value_get_long", value);
}
- return (long)mh$.invokeExact(parent_type, type_name, class_size, class_init, instance_size, instance_init, flags);
+ return (long)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_register_dynamic {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
+ private static class g_value_set_double {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_DOUBLE
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_register_dynamic");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_double");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2204,61 +1953,57 @@ private static class g_type_register_dynamic {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_register_dynamic(GType parent_type, const gchar *type_name, GTypePlugin *plugin, GTypeFlags flags)
+ * extern void g_value_set_double(GValue *value, gdouble v_double)
* }
*/
- public static FunctionDescriptor g_type_register_dynamic$descriptor() {
- return g_type_register_dynamic.DESC;
+ public static FunctionDescriptor g_value_set_double$descriptor() {
+ return g_value_set_double.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_register_dynamic(GType parent_type, const gchar *type_name, GTypePlugin *plugin, GTypeFlags flags)
+ * extern void g_value_set_double(GValue *value, gdouble v_double)
* }
*/
- public static MethodHandle g_type_register_dynamic$handle() {
- return g_type_register_dynamic.HANDLE;
+ public static MethodHandle g_value_set_double$handle() {
+ return g_value_set_double.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_register_dynamic(GType parent_type, const gchar *type_name, GTypePlugin *plugin, GTypeFlags flags)
+ * extern void g_value_set_double(GValue *value, gdouble v_double)
* }
*/
- public static MemorySegment g_type_register_dynamic$address() {
- return g_type_register_dynamic.ADDR;
+ public static MemorySegment g_value_set_double$address() {
+ return g_value_set_double.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_register_dynamic(GType parent_type, const gchar *type_name, GTypePlugin *plugin, GTypeFlags flags)
+ * extern void g_value_set_double(GValue *value, gdouble v_double)
* }
*/
- public static long g_type_register_dynamic(long parent_type, MemorySegment type_name, MemorySegment plugin, int flags) {
- var mh$ = g_type_register_dynamic.HANDLE;
+ public static void g_value_set_double(MemorySegment value, double v_double) {
+ var mh$ = g_value_set_double.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_register_dynamic", parent_type, type_name, plugin, flags);
+ traceDowncall("g_value_set_double", value, v_double);
}
- return (long)mh$.invokeExact(parent_type, type_name, plugin, flags);
+ mh$.invokeExact(value, v_double);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_register_fundamental {
+ private static class g_value_get_double {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_DOUBLE,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_register_fundamental");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_double");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2266,58 +2011,57 @@ private static class g_type_register_fundamental {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_register_fundamental(GType type_id, const gchar *type_name, const GTypeInfo *info, const GTypeFundamentalInfo *finfo, GTypeFlags flags)
+ * extern gdouble g_value_get_double(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_register_fundamental$descriptor() {
- return g_type_register_fundamental.DESC;
+ public static FunctionDescriptor g_value_get_double$descriptor() {
+ return g_value_get_double.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_register_fundamental(GType type_id, const gchar *type_name, const GTypeInfo *info, const GTypeFundamentalInfo *finfo, GTypeFlags flags)
+ * extern gdouble g_value_get_double(const GValue *value)
* }
*/
- public static MethodHandle g_type_register_fundamental$handle() {
- return g_type_register_fundamental.HANDLE;
+ public static MethodHandle g_value_get_double$handle() {
+ return g_value_get_double.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_register_fundamental(GType type_id, const gchar *type_name, const GTypeInfo *info, const GTypeFundamentalInfo *finfo, GTypeFlags flags)
+ * extern gdouble g_value_get_double(const GValue *value)
* }
*/
- public static MemorySegment g_type_register_fundamental$address() {
- return g_type_register_fundamental.ADDR;
+ public static MemorySegment g_value_get_double$address() {
+ return g_value_get_double.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_register_fundamental(GType type_id, const gchar *type_name, const GTypeInfo *info, const GTypeFundamentalInfo *finfo, GTypeFlags flags)
+ * extern gdouble g_value_get_double(const GValue *value)
* }
*/
- public static long g_type_register_fundamental(long type_id, MemorySegment type_name, MemorySegment info, MemorySegment finfo, int flags) {
- var mh$ = g_type_register_fundamental.HANDLE;
+ public static double g_value_get_double(MemorySegment value) {
+ var mh$ = g_value_get_double.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_register_fundamental", type_id, type_name, info, finfo, flags);
+ traceDowncall("g_value_get_double", value);
}
- return (long)mh$.invokeExact(type_id, type_name, info, finfo, flags);
+ return (double)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_add_interface_static {
+ private static class g_value_set_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_interface_static");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2325,58 +2069,57 @@ private static class g_type_add_interface_static {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_add_interface_static(GType instance_type, GType interface_type, const GInterfaceInfo *info)
+ * extern void g_value_set_string(GValue *value, const gchar *v_string)
* }
*/
- public static FunctionDescriptor g_type_add_interface_static$descriptor() {
- return g_type_add_interface_static.DESC;
+ public static FunctionDescriptor g_value_set_string$descriptor() {
+ return g_value_set_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_add_interface_static(GType instance_type, GType interface_type, const GInterfaceInfo *info)
+ * extern void g_value_set_string(GValue *value, const gchar *v_string)
* }
*/
- public static MethodHandle g_type_add_interface_static$handle() {
- return g_type_add_interface_static.HANDLE;
+ public static MethodHandle g_value_set_string$handle() {
+ return g_value_set_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_add_interface_static(GType instance_type, GType interface_type, const GInterfaceInfo *info)
+ * extern void g_value_set_string(GValue *value, const gchar *v_string)
* }
*/
- public static MemorySegment g_type_add_interface_static$address() {
- return g_type_add_interface_static.ADDR;
+ public static MemorySegment g_value_set_string$address() {
+ return g_value_set_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_add_interface_static(GType instance_type, GType interface_type, const GInterfaceInfo *info)
+ * extern void g_value_set_string(GValue *value, const gchar *v_string)
* }
*/
- public static void g_type_add_interface_static(long instance_type, long interface_type, MemorySegment info) {
- var mh$ = g_type_add_interface_static.HANDLE;
+ public static void g_value_set_string(MemorySegment value, MemorySegment v_string) {
+ var mh$ = g_value_set_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_interface_static", instance_type, interface_type, info);
+ traceDowncall("g_value_set_string", value, v_string);
}
- mh$.invokeExact(instance_type, interface_type, info);
+ mh$.invokeExact(value, v_string);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_add_interface_dynamic {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
+ private static class g_value_get_string {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_interface_dynamic");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2384,116 +2127,94 @@ private static class g_type_add_interface_dynamic {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_add_interface_dynamic(GType instance_type, GType interface_type, GTypePlugin *plugin)
+ * extern const gchar *g_value_get_string(const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_add_interface_dynamic$descriptor() {
- return g_type_add_interface_dynamic.DESC;
+ public static FunctionDescriptor g_value_get_string$descriptor() {
+ return g_value_get_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_add_interface_dynamic(GType instance_type, GType interface_type, GTypePlugin *plugin)
+ * extern const gchar *g_value_get_string(const GValue *value)
* }
*/
- public static MethodHandle g_type_add_interface_dynamic$handle() {
- return g_type_add_interface_dynamic.HANDLE;
+ public static MethodHandle g_value_get_string$handle() {
+ return g_value_get_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_add_interface_dynamic(GType instance_type, GType interface_type, GTypePlugin *plugin)
+ * extern const gchar *g_value_get_string(const GValue *value)
* }
*/
- public static MemorySegment g_type_add_interface_dynamic$address() {
- return g_type_add_interface_dynamic.ADDR;
+ public static MemorySegment g_value_get_string$address() {
+ return g_value_get_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_add_interface_dynamic(GType instance_type, GType interface_type, GTypePlugin *plugin)
+ * extern const gchar *g_value_get_string(const GValue *value)
* }
*/
- public static void g_type_add_interface_dynamic(long instance_type, long interface_type, MemorySegment plugin) {
- var mh$ = g_type_add_interface_dynamic.HANDLE;
+ public static MemorySegment g_value_get_string(MemorySegment value) {
+ var mh$ = g_value_get_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_interface_dynamic", instance_type, interface_type, plugin);
+ traceDowncall("g_value_get_string", value);
}
- mh$.invokeExact(instance_type, interface_type, plugin);
+ return (MemorySegment)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
-
- private static class g_type_interface_add_prerequisite {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_add_prerequisite");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
+ private static final int VIPS_PRECISION_INTEGER = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_interface_add_prerequisite(GType interface_type, GType prerequisite_type)
+ * enum .VIPS_PRECISION_INTEGER = 0
* }
*/
- public static FunctionDescriptor g_type_interface_add_prerequisite$descriptor() {
- return g_type_interface_add_prerequisite.DESC;
+ public static int VIPS_PRECISION_INTEGER() {
+ return VIPS_PRECISION_INTEGER;
}
-
+ private static final int VIPS_PRECISION_FLOAT = (int)1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_interface_add_prerequisite(GType interface_type, GType prerequisite_type)
+ * enum .VIPS_PRECISION_FLOAT = 1
* }
*/
- public static MethodHandle g_type_interface_add_prerequisite$handle() {
- return g_type_interface_add_prerequisite.HANDLE;
+ public static int VIPS_PRECISION_FLOAT() {
+ return VIPS_PRECISION_FLOAT;
}
-
+ private static final int VIPS_PRECISION_APPROXIMATE = (int)2L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_type_interface_add_prerequisite(GType interface_type, GType prerequisite_type)
+ * enum .VIPS_PRECISION_APPROXIMATE = 2
* }
*/
- public static MemorySegment g_type_interface_add_prerequisite$address() {
- return g_type_interface_add_prerequisite.ADDR;
+ public static int VIPS_PRECISION_APPROXIMATE() {
+ return VIPS_PRECISION_APPROXIMATE;
}
-
+ private static final int VIPS_PRECISION_LAST = (int)3L;
/**
* {@snippet lang=c :
- * extern void g_type_interface_add_prerequisite(GType interface_type, GType prerequisite_type)
+ * enum .VIPS_PRECISION_LAST = 3
* }
*/
- public static void g_type_interface_add_prerequisite(long interface_type, long prerequisite_type) {
- var mh$ = g_type_interface_add_prerequisite.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_add_prerequisite", interface_type, prerequisite_type);
- }
- mh$.invokeExact(interface_type, prerequisite_type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_PRECISION_LAST() {
+ return VIPS_PRECISION_LAST;
}
- private static class g_type_interface_prerequisites {
+ private static class vips_enum_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_LONG,
- VipsRaw.C_POINTER
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_prerequisites");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2501,57 +2222,58 @@ private static class g_type_interface_prerequisites {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType *g_type_interface_prerequisites(GType interface_type, guint *n_prerequisites)
+ * extern const char *vips_enum_string(GType enm, int value)
* }
*/
- public static FunctionDescriptor g_type_interface_prerequisites$descriptor() {
- return g_type_interface_prerequisites.DESC;
+ public static FunctionDescriptor vips_enum_string$descriptor() {
+ return vips_enum_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType *g_type_interface_prerequisites(GType interface_type, guint *n_prerequisites)
+ * extern const char *vips_enum_string(GType enm, int value)
* }
*/
- public static MethodHandle g_type_interface_prerequisites$handle() {
- return g_type_interface_prerequisites.HANDLE;
+ public static MethodHandle vips_enum_string$handle() {
+ return vips_enum_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType *g_type_interface_prerequisites(GType interface_type, guint *n_prerequisites)
+ * extern const char *vips_enum_string(GType enm, int value)
* }
*/
- public static MemorySegment g_type_interface_prerequisites$address() {
- return g_type_interface_prerequisites.ADDR;
+ public static MemorySegment vips_enum_string$address() {
+ return vips_enum_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType *g_type_interface_prerequisites(GType interface_type, guint *n_prerequisites)
+ * extern const char *vips_enum_string(GType enm, int value)
* }
*/
- public static MemorySegment g_type_interface_prerequisites(long interface_type, MemorySegment n_prerequisites) {
- var mh$ = g_type_interface_prerequisites.HANDLE;
+ public static MemorySegment vips_enum_string(long enm, int value) {
+ var mh$ = vips_enum_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_prerequisites", interface_type, n_prerequisites);
+ traceDowncall("vips_enum_string", enm, value);
}
- return (MemorySegment)mh$.invokeExact(interface_type, n_prerequisites);
+ return (MemorySegment)mh$.invokeExact(enm, value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_interface_instantiatable_prerequisite {
+ private static class vips_enum_nick {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_LONG,
- VipsRaw.C_LONG
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_instantiatable_prerequisite");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_nick");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2559,57 +2281,59 @@ private static class g_type_interface_instantiatable_prerequisite {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_interface_instantiatable_prerequisite(GType interface_type)
+ * extern const char *vips_enum_nick(GType enm, int value)
* }
*/
- public static FunctionDescriptor g_type_interface_instantiatable_prerequisite$descriptor() {
- return g_type_interface_instantiatable_prerequisite.DESC;
+ public static FunctionDescriptor vips_enum_nick$descriptor() {
+ return vips_enum_nick.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_interface_instantiatable_prerequisite(GType interface_type)
+ * extern const char *vips_enum_nick(GType enm, int value)
* }
*/
- public static MethodHandle g_type_interface_instantiatable_prerequisite$handle() {
- return g_type_interface_instantiatable_prerequisite.HANDLE;
+ public static MethodHandle vips_enum_nick$handle() {
+ return vips_enum_nick.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_interface_instantiatable_prerequisite(GType interface_type)
+ * extern const char *vips_enum_nick(GType enm, int value)
* }
*/
- public static MemorySegment g_type_interface_instantiatable_prerequisite$address() {
- return g_type_interface_instantiatable_prerequisite.ADDR;
+ public static MemorySegment vips_enum_nick$address() {
+ return vips_enum_nick.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_interface_instantiatable_prerequisite(GType interface_type)
+ * extern const char *vips_enum_nick(GType enm, int value)
* }
*/
- public static long g_type_interface_instantiatable_prerequisite(long interface_type) {
- var mh$ = g_type_interface_instantiatable_prerequisite.HANDLE;
+ public static MemorySegment vips_enum_nick(long enm, int value) {
+ var mh$ = vips_enum_nick.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_instantiatable_prerequisite", interface_type);
+ traceDowncall("vips_enum_nick", enm, value);
}
- return (long)mh$.invokeExact(interface_type);
+ return (MemorySegment)mh$.invokeExact(enm, value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_add_private {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_enum_from_nick {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_LONG,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_add_private");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_from_nick");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2617,58 +2341,58 @@ private static class g_type_class_add_private {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_class_add_private(gpointer g_class, gsize private_size)
+ * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
* }
*/
- public static FunctionDescriptor g_type_class_add_private$descriptor() {
- return g_type_class_add_private.DESC;
+ public static FunctionDescriptor vips_enum_from_nick$descriptor() {
+ return vips_enum_from_nick.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_class_add_private(gpointer g_class, gsize private_size)
+ * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
* }
*/
- public static MethodHandle g_type_class_add_private$handle() {
- return g_type_class_add_private.HANDLE;
+ public static MethodHandle vips_enum_from_nick$handle() {
+ return vips_enum_from_nick.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_class_add_private(gpointer g_class, gsize private_size)
+ * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
* }
*/
- public static MemorySegment g_type_class_add_private$address() {
- return g_type_class_add_private.ADDR;
+ public static MemorySegment vips_enum_from_nick$address() {
+ return vips_enum_from_nick.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_class_add_private(gpointer g_class, gsize private_size)
+ * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
* }
*/
- public static void g_type_class_add_private(MemorySegment g_class, long private_size) {
- var mh$ = g_type_class_add_private.HANDLE;
+ public static int vips_enum_from_nick(MemorySegment domain, long type, MemorySegment str) {
+ var mh$ = vips_enum_from_nick.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_add_private", g_class, private_size);
+ traceDowncall("vips_enum_from_nick", domain, type, str);
}
- mh$.invokeExact(g_class, private_size);
+ return (int)mh$.invokeExact(domain, type, str);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_add_instance_private {
+ private static class vips_filename_suffix_match {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_INT,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_instance_private");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_suffix_match");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2676,233 +2400,195 @@ private static class g_type_add_instance_private {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gint g_type_add_instance_private(GType class_type, gsize private_size)
+ * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
* }
*/
- public static FunctionDescriptor g_type_add_instance_private$descriptor() {
- return g_type_add_instance_private.DESC;
+ public static FunctionDescriptor vips_filename_suffix_match$descriptor() {
+ return vips_filename_suffix_match.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gint g_type_add_instance_private(GType class_type, gsize private_size)
+ * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
* }
*/
- public static MethodHandle g_type_add_instance_private$handle() {
- return g_type_add_instance_private.HANDLE;
+ public static MethodHandle vips_filename_suffix_match$handle() {
+ return vips_filename_suffix_match.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gint g_type_add_instance_private(GType class_type, gsize private_size)
+ * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
* }
*/
- public static MemorySegment g_type_add_instance_private$address() {
- return g_type_add_instance_private.ADDR;
+ public static MemorySegment vips_filename_suffix_match$address() {
+ return vips_filename_suffix_match.ADDR;
}
/**
* {@snippet lang=c :
- * extern gint g_type_add_instance_private(GType class_type, gsize private_size)
+ * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
* }
*/
- public static int g_type_add_instance_private(long class_type, long private_size) {
- var mh$ = g_type_add_instance_private.HANDLE;
+ public static int vips_filename_suffix_match(MemorySegment path, MemorySegment suffixes) {
+ var mh$ = vips_filename_suffix_match.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_instance_private", class_type, private_size);
+ traceDowncall("vips_filename_suffix_match", path, suffixes);
}
- return (int)mh$.invokeExact(class_type, private_size);
+ return (int)mh$.invokeExact(path, suffixes);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
-
- private static class g_type_instance_get_private {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_instance_get_private");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static final int VIPS_TOKEN_LEFT = (int)1L;
+ /**
+ * {@snippet lang=c :
+ * enum .VIPS_TOKEN_LEFT = 1
+ * }
+ */
+ public static int VIPS_TOKEN_LEFT() {
+ return VIPS_TOKEN_LEFT;
}
-
+ private static final int VIPS_TOKEN_RIGHT = (int)2L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_instance_get_private(GTypeInstance *instance, GType private_type)
+ * enum .VIPS_TOKEN_RIGHT = 2
* }
*/
- public static FunctionDescriptor g_type_instance_get_private$descriptor() {
- return g_type_instance_get_private.DESC;
+ public static int VIPS_TOKEN_RIGHT() {
+ return VIPS_TOKEN_RIGHT;
}
-
+ private static final int VIPS_TOKEN_STRING = (int)3L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_instance_get_private(GTypeInstance *instance, GType private_type)
+ * enum .VIPS_TOKEN_STRING = 3
* }
*/
- public static MethodHandle g_type_instance_get_private$handle() {
- return g_type_instance_get_private.HANDLE;
+ public static int VIPS_TOKEN_STRING() {
+ return VIPS_TOKEN_STRING;
}
-
+ private static final int VIPS_TOKEN_EQUALS = (int)4L;
/**
- * Address for:
* {@snippet lang=c :
- * extern gpointer g_type_instance_get_private(GTypeInstance *instance, GType private_type)
+ * enum .VIPS_TOKEN_EQUALS = 4
* }
*/
- public static MemorySegment g_type_instance_get_private$address() {
- return g_type_instance_get_private.ADDR;
+ public static int VIPS_TOKEN_EQUALS() {
+ return VIPS_TOKEN_EQUALS;
}
-
+ private static final int VIPS_TOKEN_COMMA = (int)5L;
/**
* {@snippet lang=c :
- * extern gpointer g_type_instance_get_private(GTypeInstance *instance, GType private_type)
+ * enum .VIPS_TOKEN_COMMA = 5
* }
*/
- public static MemorySegment g_type_instance_get_private(MemorySegment instance, long private_type) {
- var mh$ = g_type_instance_get_private.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_instance_get_private", instance, private_type);
- }
- return (MemorySegment)mh$.invokeExact(instance, private_type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_TOKEN_COMMA() {
+ return VIPS_TOKEN_COMMA;
}
-
- private static class g_type_class_adjust_private_offset {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_adjust_private_offset");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static final int VIPS_ARGUMENT_NONE = (int)0L;
+ /**
+ * {@snippet lang=c :
+ * enum .VIPS_ARGUMENT_NONE = 0
+ * }
+ */
+ public static int VIPS_ARGUMENT_NONE() {
+ return VIPS_ARGUMENT_NONE;
}
-
+ private static final int VIPS_ARGUMENT_REQUIRED = (int)1L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_class_adjust_private_offset(gpointer g_class, gint *private_size_or_offset)
+ * enum .VIPS_ARGUMENT_REQUIRED = 1
* }
*/
- public static FunctionDescriptor g_type_class_adjust_private_offset$descriptor() {
- return g_type_class_adjust_private_offset.DESC;
+ public static int VIPS_ARGUMENT_REQUIRED() {
+ return VIPS_ARGUMENT_REQUIRED;
}
-
+ private static final int VIPS_ARGUMENT_CONSTRUCT = (int)2L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_class_adjust_private_offset(gpointer g_class, gint *private_size_or_offset)
+ * enum .VIPS_ARGUMENT_CONSTRUCT = 2
* }
*/
- public static MethodHandle g_type_class_adjust_private_offset$handle() {
- return g_type_class_adjust_private_offset.HANDLE;
+ public static int VIPS_ARGUMENT_CONSTRUCT() {
+ return VIPS_ARGUMENT_CONSTRUCT;
}
-
+ private static final int VIPS_ARGUMENT_SET_ONCE = (int)4L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_type_class_adjust_private_offset(gpointer g_class, gint *private_size_or_offset)
+ * enum .VIPS_ARGUMENT_SET_ONCE = 4
* }
*/
- public static MemorySegment g_type_class_adjust_private_offset$address() {
- return g_type_class_adjust_private_offset.ADDR;
+ public static int VIPS_ARGUMENT_SET_ONCE() {
+ return VIPS_ARGUMENT_SET_ONCE;
}
-
+ private static final int VIPS_ARGUMENT_SET_ALWAYS = (int)8L;
/**
* {@snippet lang=c :
- * extern void g_type_class_adjust_private_offset(gpointer g_class, gint *private_size_or_offset)
+ * enum .VIPS_ARGUMENT_SET_ALWAYS = 8
* }
*/
- public static void g_type_class_adjust_private_offset(MemorySegment g_class, MemorySegment private_size_or_offset) {
- var mh$ = g_type_class_adjust_private_offset.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_adjust_private_offset", g_class, private_size_or_offset);
- }
- mh$.invokeExact(g_class, private_size_or_offset);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_ARGUMENT_SET_ALWAYS() {
+ return VIPS_ARGUMENT_SET_ALWAYS;
}
-
- private static class g_type_add_class_private {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_class_private");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static final int VIPS_ARGUMENT_INPUT = (int)16L;
+ /**
+ * {@snippet lang=c :
+ * enum .VIPS_ARGUMENT_INPUT = 16
+ * }
+ */
+ public static int VIPS_ARGUMENT_INPUT() {
+ return VIPS_ARGUMENT_INPUT;
}
-
+ private static final int VIPS_ARGUMENT_OUTPUT = (int)32L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_add_class_private(GType class_type, gsize private_size)
+ * enum .VIPS_ARGUMENT_OUTPUT = 32
* }
*/
- public static FunctionDescriptor g_type_add_class_private$descriptor() {
- return g_type_add_class_private.DESC;
+ public static int VIPS_ARGUMENT_OUTPUT() {
+ return VIPS_ARGUMENT_OUTPUT;
}
-
+ private static final int VIPS_ARGUMENT_DEPRECATED = (int)64L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_add_class_private(GType class_type, gsize private_size)
+ * enum .VIPS_ARGUMENT_DEPRECATED = 64
* }
*/
- public static MethodHandle g_type_add_class_private$handle() {
- return g_type_add_class_private.HANDLE;
+ public static int VIPS_ARGUMENT_DEPRECATED() {
+ return VIPS_ARGUMENT_DEPRECATED;
}
-
+ private static final int VIPS_ARGUMENT_MODIFY = (int)128L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_type_add_class_private(GType class_type, gsize private_size)
+ * enum .VIPS_ARGUMENT_MODIFY = 128
* }
*/
- public static MemorySegment g_type_add_class_private$address() {
- return g_type_add_class_private.ADDR;
+ public static int VIPS_ARGUMENT_MODIFY() {
+ return VIPS_ARGUMENT_MODIFY;
}
-
+ private static final int VIPS_ARGUMENT_NON_HASHABLE = (int)256L;
/**
* {@snippet lang=c :
- * extern void g_type_add_class_private(GType class_type, gsize private_size)
+ * enum .VIPS_ARGUMENT_NON_HASHABLE = 256
* }
*/
- public static void g_type_add_class_private(long class_type, long private_size) {
- var mh$ = g_type_add_class_private.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_class_private", class_type, private_size);
- }
- mh$.invokeExact(class_type, private_size);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_ARGUMENT_NON_HASHABLE() {
+ return VIPS_ARGUMENT_NON_HASHABLE;
}
- private static class g_type_class_get_private {
+ private static class vips_object_get_args {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_get_private");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_args");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2910,57 +2596,61 @@ private static class g_type_class_get_private {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_type_class_get_private(GTypeClass *klass, GType private_type)
+ * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
* }
*/
- public static FunctionDescriptor g_type_class_get_private$descriptor() {
- return g_type_class_get_private.DESC;
+ public static FunctionDescriptor vips_object_get_args$descriptor() {
+ return vips_object_get_args.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_type_class_get_private(GTypeClass *klass, GType private_type)
+ * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
* }
*/
- public static MethodHandle g_type_class_get_private$handle() {
- return g_type_class_get_private.HANDLE;
+ public static MethodHandle vips_object_get_args$handle() {
+ return vips_object_get_args.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_type_class_get_private(GTypeClass *klass, GType private_type)
+ * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
* }
*/
- public static MemorySegment g_type_class_get_private$address() {
- return g_type_class_get_private.ADDR;
+ public static MemorySegment vips_object_get_args$address() {
+ return vips_object_get_args.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_type_class_get_private(GTypeClass *klass, GType private_type)
+ * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
* }
*/
- public static MemorySegment g_type_class_get_private(MemorySegment klass, long private_type) {
- var mh$ = g_type_class_get_private.HANDLE;
+ public static int vips_object_get_args(MemorySegment object, MemorySegment names, MemorySegment flags, MemorySegment n_args) {
+ var mh$ = vips_object_get_args.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_get_private", klass, private_type);
+ traceDowncall("vips_object_get_args", object, names, flags, n_args);
}
- return (MemorySegment)mh$.invokeExact(klass, private_type);
+ return (int)mh$.invokeExact(object, names, flags, n_args);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_get_instance_private_offset {
+ private static class vips_object_get_argument {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_get_instance_private_offset");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -2968,56 +2658,58 @@ private static class g_type_class_get_instance_private_offset {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gint g_type_class_get_instance_private_offset(gpointer g_class)
+ * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
* }
*/
- public static FunctionDescriptor g_type_class_get_instance_private_offset$descriptor() {
- return g_type_class_get_instance_private_offset.DESC;
+ public static FunctionDescriptor vips_object_get_argument$descriptor() {
+ return vips_object_get_argument.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gint g_type_class_get_instance_private_offset(gpointer g_class)
+ * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
* }
*/
- public static MethodHandle g_type_class_get_instance_private_offset$handle() {
- return g_type_class_get_instance_private_offset.HANDLE;
+ public static MethodHandle vips_object_get_argument$handle() {
+ return vips_object_get_argument.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gint g_type_class_get_instance_private_offset(gpointer g_class)
+ * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
* }
*/
- public static MemorySegment g_type_class_get_instance_private_offset$address() {
- return g_type_class_get_instance_private_offset.ADDR;
+ public static MemorySegment vips_object_get_argument$address() {
+ return vips_object_get_argument.ADDR;
}
/**
* {@snippet lang=c :
- * extern gint g_type_class_get_instance_private_offset(gpointer g_class)
+ * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
* }
*/
- public static int g_type_class_get_instance_private_offset(MemorySegment g_class) {
- var mh$ = g_type_class_get_instance_private_offset.HANDLE;
+ public static int vips_object_get_argument(MemorySegment object, MemorySegment name, MemorySegment pspec, MemorySegment argument_class, MemorySegment argument_instance) {
+ var mh$ = vips_object_get_argument.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_get_instance_private_offset", g_class);
+ traceDowncall("vips_object_get_argument", object, name, pspec, argument_class, argument_instance);
}
- return (int)mh$.invokeExact(g_class);
+ return (int)mh$.invokeExact(object, name, pspec, argument_class, argument_instance);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_ensure {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_LONG
+ private static class vips_object_get_argument_flags {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_ensure");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_flags");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3025,55 +2717,58 @@ private static class g_type_ensure {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_ensure(GType type)
+ * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
* }
*/
- public static FunctionDescriptor g_type_ensure$descriptor() {
- return g_type_ensure.DESC;
+ public static FunctionDescriptor vips_object_get_argument_flags$descriptor() {
+ return vips_object_get_argument_flags.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_ensure(GType type)
+ * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
* }
*/
- public static MethodHandle g_type_ensure$handle() {
- return g_type_ensure.HANDLE;
+ public static MethodHandle vips_object_get_argument_flags$handle() {
+ return vips_object_get_argument_flags.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_ensure(GType type)
+ * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
* }
*/
- public static MemorySegment g_type_ensure$address() {
- return g_type_ensure.ADDR;
+ public static MemorySegment vips_object_get_argument_flags$address() {
+ return vips_object_get_argument_flags.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_ensure(GType type)
+ * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
* }
*/
- public static void g_type_ensure(long type) {
- var mh$ = g_type_ensure.HANDLE;
+ public static int vips_object_get_argument_flags(MemorySegment object, MemorySegment name) {
+ var mh$ = vips_object_get_argument_flags.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_ensure", type);
+ traceDowncall("vips_object_get_argument_flags", object, name);
}
- mh$.invokeExact(type);
+ return (int)mh$.invokeExact(object, name);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_get_type_registration_serial {
+ private static class vips_object_get_argument_priority {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT );
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_get_type_registration_serial");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_priority");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3081,57 +2776,58 @@ private static class g_type_get_type_registration_serial {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern guint g_type_get_type_registration_serial()
+ * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
* }
*/
- public static FunctionDescriptor g_type_get_type_registration_serial$descriptor() {
- return g_type_get_type_registration_serial.DESC;
+ public static FunctionDescriptor vips_object_get_argument_priority$descriptor() {
+ return vips_object_get_argument_priority.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern guint g_type_get_type_registration_serial()
+ * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
* }
*/
- public static MethodHandle g_type_get_type_registration_serial$handle() {
- return g_type_get_type_registration_serial.HANDLE;
- }
+ public static MethodHandle vips_object_get_argument_priority$handle() {
+ return vips_object_get_argument_priority.HANDLE;
+ }
/**
* Address for:
* {@snippet lang=c :
- * extern guint g_type_get_type_registration_serial()
+ * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
* }
*/
- public static MemorySegment g_type_get_type_registration_serial$address() {
- return g_type_get_type_registration_serial.ADDR;
+ public static MemorySegment vips_object_get_argument_priority$address() {
+ return vips_object_get_argument_priority.ADDR;
}
/**
* {@snippet lang=c :
- * extern guint g_type_get_type_registration_serial()
+ * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
* }
*/
- public static int g_type_get_type_registration_serial() {
- var mh$ = g_type_get_type_registration_serial.HANDLE;
+ public static int vips_object_get_argument_priority(MemorySegment object, MemorySegment name) {
+ var mh$ = vips_object_get_argument_priority.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_get_type_registration_serial");
+ traceDowncall("vips_object_get_argument_priority", object, name);
}
- return (int)mh$.invokeExact();
+ return (int)mh$.invokeExact(object, name);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_get_plugin {
+ private static class vips_value_is_null {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_get_plugin");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_is_null");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3139,58 +2835,59 @@ private static class g_type_get_plugin {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_get_plugin(GType type)
+ * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
* }
*/
- public static FunctionDescriptor g_type_get_plugin$descriptor() {
- return g_type_get_plugin.DESC;
+ public static FunctionDescriptor vips_value_is_null$descriptor() {
+ return vips_value_is_null.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_get_plugin(GType type)
+ * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
* }
*/
- public static MethodHandle g_type_get_plugin$handle() {
- return g_type_get_plugin.HANDLE;
+ public static MethodHandle vips_value_is_null$handle() {
+ return vips_value_is_null.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_get_plugin(GType type)
+ * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
* }
*/
- public static MemorySegment g_type_get_plugin$address() {
- return g_type_get_plugin.ADDR;
+ public static MemorySegment vips_value_is_null$address() {
+ return vips_value_is_null.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypePlugin *g_type_get_plugin(GType type)
+ * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
* }
*/
- public static MemorySegment g_type_get_plugin(long type) {
- var mh$ = g_type_get_plugin.HANDLE;
+ public static int vips_value_is_null(MemorySegment psoec, MemorySegment value) {
+ var mh$ = vips_value_is_null.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_get_plugin", type);
+ traceDowncall("vips_value_is_null", psoec, value);
}
- return (MemorySegment)mh$.invokeExact(type);
+ return (int)mh$.invokeExact(psoec, value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_interface_get_plugin {
+ private static class vips_object_get_argument_to_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_interface_get_plugin");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_to_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3198,55 +2895,58 @@ private static class g_type_interface_get_plugin {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_interface_get_plugin(GType instance_type, GType interface_type)
+ * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
* }
*/
- public static FunctionDescriptor g_type_interface_get_plugin$descriptor() {
- return g_type_interface_get_plugin.DESC;
+ public static FunctionDescriptor vips_object_get_argument_to_string$descriptor() {
+ return vips_object_get_argument_to_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_interface_get_plugin(GType instance_type, GType interface_type)
+ * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
* }
*/
- public static MethodHandle g_type_interface_get_plugin$handle() {
- return g_type_interface_get_plugin.HANDLE;
+ public static MethodHandle vips_object_get_argument_to_string$handle() {
+ return vips_object_get_argument_to_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypePlugin *g_type_interface_get_plugin(GType instance_type, GType interface_type)
+ * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
* }
*/
- public static MemorySegment g_type_interface_get_plugin$address() {
- return g_type_interface_get_plugin.ADDR;
+ public static MemorySegment vips_object_get_argument_to_string$address() {
+ return vips_object_get_argument_to_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypePlugin *g_type_interface_get_plugin(GType instance_type, GType interface_type)
+ * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
* }
*/
- public static MemorySegment g_type_interface_get_plugin(long instance_type, long interface_type) {
- var mh$ = g_type_interface_get_plugin.HANDLE;
+ public static int vips_object_get_argument_to_string(MemorySegment object, MemorySegment name, MemorySegment arg) {
+ var mh$ = vips_object_get_argument_to_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_interface_get_plugin", instance_type, interface_type);
+ traceDowncall("vips_object_get_argument_to_string", object, name, arg);
}
- return (MemorySegment)mh$.invokeExact(instance_type, interface_type);
+ return (int)mh$.invokeExact(object, name, arg);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_fundamental_next {
+ private static class vips_object_set_from_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_fundamental_next");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_set_from_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3254,57 +2954,60 @@ private static class g_type_fundamental_next {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_fundamental_next()
+ * extern int vips_object_set_from_string(VipsObject *object, const char *string)
* }
*/
- public static FunctionDescriptor g_type_fundamental_next$descriptor() {
- return g_type_fundamental_next.DESC;
+ public static FunctionDescriptor vips_object_set_from_string$descriptor() {
+ return vips_object_set_from_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_fundamental_next()
+ * extern int vips_object_set_from_string(VipsObject *object, const char *string)
* }
*/
- public static MethodHandle g_type_fundamental_next$handle() {
- return g_type_fundamental_next.HANDLE;
+ public static MethodHandle vips_object_set_from_string$handle() {
+ return vips_object_set_from_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_fundamental_next()
+ * extern int vips_object_set_from_string(VipsObject *object, const char *string)
* }
*/
- public static MemorySegment g_type_fundamental_next$address() {
- return g_type_fundamental_next.ADDR;
+ public static MemorySegment vips_object_set_from_string$address() {
+ return vips_object_set_from_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_fundamental_next()
+ * extern int vips_object_set_from_string(VipsObject *object, const char *string)
* }
*/
- public static long g_type_fundamental_next() {
- var mh$ = g_type_fundamental_next.HANDLE;
+ public static int vips_object_set_from_string(MemorySegment object, MemorySegment string) {
+ var mh$ = vips_object_set_from_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_fundamental_next");
+ traceDowncall("vips_object_set_from_string", object, string);
}
- return (long)mh$.invokeExact();
+ return (int)mh$.invokeExact(object, string);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_fundamental {
+ private static class vips_type_map {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_LONG,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_fundamental");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_map");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3312,57 +3015,59 @@ private static class g_type_fundamental {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_fundamental(GType type_id)
+ * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
* }
*/
- public static FunctionDescriptor g_type_fundamental$descriptor() {
- return g_type_fundamental.DESC;
+ public static FunctionDescriptor vips_type_map$descriptor() {
+ return vips_type_map.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_fundamental(GType type_id)
+ * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
* }
*/
- public static MethodHandle g_type_fundamental$handle() {
- return g_type_fundamental.HANDLE;
+ public static MethodHandle vips_type_map$handle() {
+ return vips_type_map.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_fundamental(GType type_id)
+ * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
* }
*/
- public static MemorySegment g_type_fundamental$address() {
- return g_type_fundamental.ADDR;
+ public static MemorySegment vips_type_map$address() {
+ return vips_type_map.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_fundamental(GType type_id)
+ * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
* }
*/
- public static long g_type_fundamental(long type_id) {
- var mh$ = g_type_fundamental.HANDLE;
+ public static MemorySegment vips_type_map(long base, MemorySegment fn, MemorySegment a, MemorySegment b) {
+ var mh$ = vips_type_map.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_fundamental", type_id);
+ traceDowncall("vips_type_map", base, fn, a, b);
}
- return (long)mh$.invokeExact(type_id);
+ return (MemorySegment)mh$.invokeExact(base, fn, a, b);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_create_instance {
+ private static class vips_type_map_all {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_LONG,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_create_instance");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_map_all");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3370,56 +3075,57 @@ private static class g_type_create_instance {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_create_instance(GType type)
+ * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
* }
*/
- public static FunctionDescriptor g_type_create_instance$descriptor() {
- return g_type_create_instance.DESC;
+ public static FunctionDescriptor vips_type_map_all$descriptor() {
+ return vips_type_map_all.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_create_instance(GType type)
+ * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
* }
*/
- public static MethodHandle g_type_create_instance$handle() {
- return g_type_create_instance.HANDLE;
+ public static MethodHandle vips_type_map_all$handle() {
+ return vips_type_map_all.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_create_instance(GType type)
+ * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
* }
*/
- public static MemorySegment g_type_create_instance$address() {
- return g_type_create_instance.ADDR;
+ public static MemorySegment vips_type_map_all$address() {
+ return vips_type_map_all.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypeInstance *g_type_create_instance(GType type)
+ * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
* }
*/
- public static MemorySegment g_type_create_instance(long type) {
- var mh$ = g_type_create_instance.HANDLE;
+ public static MemorySegment vips_type_map_all(long base, MemorySegment fn, MemorySegment a) {
+ var mh$ = vips_type_map_all.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_create_instance", type);
+ traceDowncall("vips_type_map_all", base, fn, a);
}
- return (MemorySegment)mh$.invokeExact(type);
+ return (MemorySegment)mh$.invokeExact(base, fn, a);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_free_instance {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
+ private static class vips_type_depth {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_free_instance");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_depth");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3427,57 +3133,58 @@ private static class g_type_free_instance {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_free_instance(GTypeInstance *instance)
+ * extern int vips_type_depth(GType type)
* }
*/
- public static FunctionDescriptor g_type_free_instance$descriptor() {
- return g_type_free_instance.DESC;
+ public static FunctionDescriptor vips_type_depth$descriptor() {
+ return vips_type_depth.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_free_instance(GTypeInstance *instance)
+ * extern int vips_type_depth(GType type)
* }
*/
- public static MethodHandle g_type_free_instance$handle() {
- return g_type_free_instance.HANDLE;
+ public static MethodHandle vips_type_depth$handle() {
+ return vips_type_depth.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_free_instance(GTypeInstance *instance)
+ * extern int vips_type_depth(GType type)
* }
*/
- public static MemorySegment g_type_free_instance$address() {
- return g_type_free_instance.ADDR;
+ public static MemorySegment vips_type_depth$address() {
+ return vips_type_depth.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_free_instance(GTypeInstance *instance)
+ * extern int vips_type_depth(GType type)
* }
*/
- public static void g_type_free_instance(MemorySegment instance) {
- var mh$ = g_type_free_instance.HANDLE;
+ public static int vips_type_depth(long type) {
+ var mh$ = vips_type_depth.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_free_instance", instance);
+ traceDowncall("vips_type_depth", type);
}
- mh$.invokeExact(instance);
+ return (int)mh$.invokeExact(type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_add_class_cache_func {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_type_find {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_LONG,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_class_cache_func");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_find");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3485,57 +3192,57 @@ private static class g_type_add_class_cache_func {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_add_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern GType vips_type_find(const char *basename, const char *nickname)
* }
*/
- public static FunctionDescriptor g_type_add_class_cache_func$descriptor() {
- return g_type_add_class_cache_func.DESC;
+ public static FunctionDescriptor vips_type_find$descriptor() {
+ return vips_type_find.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_add_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern GType vips_type_find(const char *basename, const char *nickname)
* }
*/
- public static MethodHandle g_type_add_class_cache_func$handle() {
- return g_type_add_class_cache_func.HANDLE;
+ public static MethodHandle vips_type_find$handle() {
+ return vips_type_find.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_add_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern GType vips_type_find(const char *basename, const char *nickname)
* }
*/
- public static MemorySegment g_type_add_class_cache_func$address() {
- return g_type_add_class_cache_func.ADDR;
+ public static MemorySegment vips_type_find$address() {
+ return vips_type_find.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_add_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern GType vips_type_find(const char *basename, const char *nickname)
* }
*/
- public static void g_type_add_class_cache_func(MemorySegment cache_data, MemorySegment cache_func) {
- var mh$ = g_type_add_class_cache_func.HANDLE;
+ public static long vips_type_find(MemorySegment basename, MemorySegment nickname) {
+ var mh$ = vips_type_find.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_class_cache_func", cache_data, cache_func);
+ traceDowncall("vips_type_find", basename, nickname);
}
- mh$.invokeExact(cache_data, cache_func);
+ return (long)mh$.invokeExact(basename, nickname);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_remove_class_cache_func {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_nickname_find {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_remove_class_cache_func");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_nickname_find");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3543,56 +3250,56 @@ private static class g_type_remove_class_cache_func {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_remove_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern const char *vips_nickname_find(GType type)
* }
*/
- public static FunctionDescriptor g_type_remove_class_cache_func$descriptor() {
- return g_type_remove_class_cache_func.DESC;
+ public static FunctionDescriptor vips_nickname_find$descriptor() {
+ return vips_nickname_find.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_remove_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern const char *vips_nickname_find(GType type)
* }
*/
- public static MethodHandle g_type_remove_class_cache_func$handle() {
- return g_type_remove_class_cache_func.HANDLE;
+ public static MethodHandle vips_nickname_find$handle() {
+ return vips_nickname_find.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_remove_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern const char *vips_nickname_find(GType type)
* }
*/
- public static MemorySegment g_type_remove_class_cache_func$address() {
- return g_type_remove_class_cache_func.ADDR;
+ public static MemorySegment vips_nickname_find$address() {
+ return vips_nickname_find.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_remove_class_cache_func(gpointer cache_data, GTypeClassCacheFunc cache_func)
+ * extern const char *vips_nickname_find(GType type)
* }
*/
- public static void g_type_remove_class_cache_func(MemorySegment cache_data, MemorySegment cache_func) {
- var mh$ = g_type_remove_class_cache_func.HANDLE;
+ public static MemorySegment vips_nickname_find(long type) {
+ var mh$ = vips_nickname_find.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_remove_class_cache_func", cache_data, cache_func);
+ traceDowncall("vips_nickname_find", type);
}
- mh$.invokeExact(cache_data, cache_func);
+ return (MemorySegment)mh$.invokeExact(type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_class_unref_uncached {
+ private static class vips_object_unref_outputs {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_class_unref_uncached");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_unref_outputs");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3600,57 +3307,57 @@ private static class g_type_class_unref_uncached {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_class_unref_uncached(gpointer g_class)
+ * extern void vips_object_unref_outputs(VipsObject *object)
* }
*/
- public static FunctionDescriptor g_type_class_unref_uncached$descriptor() {
- return g_type_class_unref_uncached.DESC;
+ public static FunctionDescriptor vips_object_unref_outputs$descriptor() {
+ return vips_object_unref_outputs.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_class_unref_uncached(gpointer g_class)
+ * extern void vips_object_unref_outputs(VipsObject *object)
* }
*/
- public static MethodHandle g_type_class_unref_uncached$handle() {
- return g_type_class_unref_uncached.HANDLE;
+ public static MethodHandle vips_object_unref_outputs$handle() {
+ return vips_object_unref_outputs.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_class_unref_uncached(gpointer g_class)
+ * extern void vips_object_unref_outputs(VipsObject *object)
* }
*/
- public static MemorySegment g_type_class_unref_uncached$address() {
- return g_type_class_unref_uncached.ADDR;
+ public static MemorySegment vips_object_unref_outputs$address() {
+ return vips_object_unref_outputs.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_class_unref_uncached(gpointer g_class)
+ * extern void vips_object_unref_outputs(VipsObject *object)
* }
*/
- public static void g_type_class_unref_uncached(MemorySegment g_class) {
- var mh$ = g_type_class_unref_uncached.HANDLE;
+ public static void vips_object_unref_outputs(MemorySegment object) {
+ var mh$ = vips_object_unref_outputs.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_class_unref_uncached", g_class);
+ traceDowncall("vips_object_unref_outputs", object);
}
- mh$.invokeExact(g_class);
+ mh$.invokeExact(object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_add_interface_check {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_object_get_description {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_add_interface_check");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_description");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3658,57 +3365,57 @@ private static class g_type_add_interface_check {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_add_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern const char *vips_object_get_description(VipsObject *object)
* }
*/
- public static FunctionDescriptor g_type_add_interface_check$descriptor() {
- return g_type_add_interface_check.DESC;
+ public static FunctionDescriptor vips_object_get_description$descriptor() {
+ return vips_object_get_description.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_add_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern const char *vips_object_get_description(VipsObject *object)
* }
*/
- public static MethodHandle g_type_add_interface_check$handle() {
- return g_type_add_interface_check.HANDLE;
+ public static MethodHandle vips_object_get_description$handle() {
+ return vips_object_get_description.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_add_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern const char *vips_object_get_description(VipsObject *object)
* }
*/
- public static MemorySegment g_type_add_interface_check$address() {
- return g_type_add_interface_check.ADDR;
+ public static MemorySegment vips_object_get_description$address() {
+ return vips_object_get_description.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_add_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern const char *vips_object_get_description(VipsObject *object)
* }
*/
- public static void g_type_add_interface_check(MemorySegment check_data, MemorySegment check_func) {
- var mh$ = g_type_add_interface_check.HANDLE;
+ public static MemorySegment vips_object_get_description(MemorySegment object) {
+ var mh$ = vips_object_get_description.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_add_interface_check", check_data, check_func);
+ traceDowncall("vips_object_get_description", object);
}
- mh$.invokeExact(check_data, check_func);
+ return (MemorySegment)mh$.invokeExact(object);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_remove_interface_check {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_area_copy {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_remove_interface_check");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_copy");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3716,57 +3423,56 @@ private static class g_type_remove_interface_check {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_remove_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern VipsArea *vips_area_copy(VipsArea *area)
* }
*/
- public static FunctionDescriptor g_type_remove_interface_check$descriptor() {
- return g_type_remove_interface_check.DESC;
+ public static FunctionDescriptor vips_area_copy$descriptor() {
+ return vips_area_copy.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_remove_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern VipsArea *vips_area_copy(VipsArea *area)
* }
*/
- public static MethodHandle g_type_remove_interface_check$handle() {
- return g_type_remove_interface_check.HANDLE;
+ public static MethodHandle vips_area_copy$handle() {
+ return vips_area_copy.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_remove_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern VipsArea *vips_area_copy(VipsArea *area)
* }
*/
- public static MemorySegment g_type_remove_interface_check$address() {
- return g_type_remove_interface_check.ADDR;
+ public static MemorySegment vips_area_copy$address() {
+ return vips_area_copy.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_remove_interface_check(gpointer check_data, GTypeInterfaceCheckFunc check_func)
+ * extern VipsArea *vips_area_copy(VipsArea *area)
* }
*/
- public static void g_type_remove_interface_check(MemorySegment check_data, MemorySegment check_func) {
- var mh$ = g_type_remove_interface_check.HANDLE;
+ public static MemorySegment vips_area_copy(MemorySegment area) {
+ var mh$ = vips_area_copy.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_remove_interface_check", check_data, check_func);
+ traceDowncall("vips_area_copy", area);
}
- mh$.invokeExact(check_data, check_func);
+ return (MemorySegment)mh$.invokeExact(area);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_value_table_peek {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ private static class vips_area_unref {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_value_table_peek");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_unref");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3774,116 +3480,117 @@ private static class g_type_value_table_peek {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypeValueTable *g_type_value_table_peek(GType type)
+ * extern void vips_area_unref(VipsArea *area)
* }
*/
- public static FunctionDescriptor g_type_value_table_peek$descriptor() {
- return g_type_value_table_peek.DESC;
+ public static FunctionDescriptor vips_area_unref$descriptor() {
+ return vips_area_unref.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypeValueTable *g_type_value_table_peek(GType type)
+ * extern void vips_area_unref(VipsArea *area)
* }
*/
- public static MethodHandle g_type_value_table_peek$handle() {
- return g_type_value_table_peek.HANDLE;
+ public static MethodHandle vips_area_unref$handle() {
+ return vips_area_unref.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypeValueTable *g_type_value_table_peek(GType type)
+ * extern void vips_area_unref(VipsArea *area)
* }
*/
- public static MemorySegment g_type_value_table_peek$address() {
- return g_type_value_table_peek.ADDR;
+ public static MemorySegment vips_area_unref$address() {
+ return vips_area_unref.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypeValueTable *g_type_value_table_peek(GType type)
+ * extern void vips_area_unref(VipsArea *area)
* }
*/
- public static MemorySegment g_type_value_table_peek(long type) {
- var mh$ = g_type_value_table_peek.HANDLE;
+ public static void vips_area_unref(MemorySegment area) {
+ var mh$ = vips_area_unref.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_value_table_peek", type);
+ traceDowncall("vips_area_unref", area);
}
- return (MemorySegment)mh$.invokeExact(type);
+ mh$.invokeExact(area);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_instance {
+ private static class vips_area_get_data {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_instance");
-
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
+
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_get_data");
+
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance(GTypeInstance *instance)
+ * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static FunctionDescriptor g_type_check_instance$descriptor() {
- return g_type_check_instance.DESC;
+ public static FunctionDescriptor vips_area_get_data$descriptor() {
+ return vips_area_get_data.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance(GTypeInstance *instance)
+ * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static MethodHandle g_type_check_instance$handle() {
- return g_type_check_instance.HANDLE;
+ public static MethodHandle vips_area_get_data$handle() {
+ return vips_area_get_data.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance(GTypeInstance *instance)
+ * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static MemorySegment g_type_check_instance$address() {
- return g_type_check_instance.ADDR;
+ public static MemorySegment vips_area_get_data$address() {
+ return vips_area_get_data.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_instance(GTypeInstance *instance)
+ * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static int g_type_check_instance(MemorySegment instance) {
- var mh$ = g_type_check_instance.HANDLE;
+ public static MemorySegment vips_area_get_data(MemorySegment area, MemorySegment length, MemorySegment n, MemorySegment type, MemorySegment sizeof_type) {
+ var mh$ = vips_area_get_data.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_instance", instance);
+ traceDowncall("vips_area_get_data", area, length, n, type, sizeof_type);
}
- return (int)mh$.invokeExact(instance);
+ return (MemorySegment)mh$.invokeExact(area, length, n, type, sizeof_type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_instance_cast {
+ private static class vips_area_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_instance_cast");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3891,58 +3598,59 @@ private static class g_type_check_instance_cast {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_check_instance_cast(GTypeInstance *instance, GType iface_type)
+ * extern GType vips_area_get_type()
* }
*/
- public static FunctionDescriptor g_type_check_instance_cast$descriptor() {
- return g_type_check_instance_cast.DESC;
+ public static FunctionDescriptor vips_area_get_type$descriptor() {
+ return vips_area_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_check_instance_cast(GTypeInstance *instance, GType iface_type)
+ * extern GType vips_area_get_type()
* }
*/
- public static MethodHandle g_type_check_instance_cast$handle() {
- return g_type_check_instance_cast.HANDLE;
+ public static MethodHandle vips_area_get_type$handle() {
+ return vips_area_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypeInstance *g_type_check_instance_cast(GTypeInstance *instance, GType iface_type)
+ * extern GType vips_area_get_type()
* }
*/
- public static MemorySegment g_type_check_instance_cast$address() {
- return g_type_check_instance_cast.ADDR;
+ public static MemorySegment vips_area_get_type$address() {
+ return vips_area_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypeInstance *g_type_check_instance_cast(GTypeInstance *instance, GType iface_type)
+ * extern GType vips_area_get_type()
* }
*/
- public static MemorySegment g_type_check_instance_cast(MemorySegment instance, long iface_type) {
- var mh$ = g_type_check_instance_cast.HANDLE;
+ public static long vips_area_get_type() {
+ var mh$ = vips_area_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_instance_cast", instance, iface_type);
+ traceDowncall("vips_area_get_type");
}
- return (MemorySegment)mh$.invokeExact(instance, iface_type);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_instance_is_a {
+ private static class vips_blob_new {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_instance_is_a");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_new");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -3950,58 +3658,58 @@ private static class g_type_check_instance_is_a {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
+ * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static FunctionDescriptor g_type_check_instance_is_a$descriptor() {
- return g_type_check_instance_is_a.DESC;
+ public static FunctionDescriptor vips_blob_new$descriptor() {
+ return vips_blob_new.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
+ * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MethodHandle g_type_check_instance_is_a$handle() {
- return g_type_check_instance_is_a.HANDLE;
+ public static MethodHandle vips_blob_new$handle() {
+ return vips_blob_new.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
+ * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MemorySegment g_type_check_instance_is_a$address() {
- return g_type_check_instance_is_a.ADDR;
+ public static MemorySegment vips_blob_new$address() {
+ return vips_blob_new.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_a(GTypeInstance *instance, GType iface_type)
+ * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static int g_type_check_instance_is_a(MemorySegment instance, long iface_type) {
- var mh$ = g_type_check_instance_is_a.HANDLE;
+ public static MemorySegment vips_blob_new(MemorySegment free_fn, MemorySegment data, long length) {
+ var mh$ = vips_blob_new.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_instance_is_a", instance, iface_type);
+ traceDowncall("vips_blob_new", free_fn, data, length);
}
- return (int)mh$.invokeExact(instance, iface_type);
+ return (MemorySegment)mh$.invokeExact(free_fn, data, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_instance_is_fundamentally_a {
+ private static class vips_blob_copy {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_instance_is_fundamentally_a");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_copy");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4009,58 +3717,58 @@ private static class g_type_check_instance_is_fundamentally_a {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_fundamentally_a(GTypeInstance *instance, GType fundamental_type)
+ * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
* }
*/
- public static FunctionDescriptor g_type_check_instance_is_fundamentally_a$descriptor() {
- return g_type_check_instance_is_fundamentally_a.DESC;
+ public static FunctionDescriptor vips_blob_copy$descriptor() {
+ return vips_blob_copy.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_fundamentally_a(GTypeInstance *instance, GType fundamental_type)
+ * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
* }
*/
- public static MethodHandle g_type_check_instance_is_fundamentally_a$handle() {
- return g_type_check_instance_is_fundamentally_a.HANDLE;
+ public static MethodHandle vips_blob_copy$handle() {
+ return vips_blob_copy.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_fundamentally_a(GTypeInstance *instance, GType fundamental_type)
+ * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
* }
*/
- public static MemorySegment g_type_check_instance_is_fundamentally_a$address() {
- return g_type_check_instance_is_fundamentally_a.ADDR;
+ public static MemorySegment vips_blob_copy$address() {
+ return vips_blob_copy.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_instance_is_fundamentally_a(GTypeInstance *instance, GType fundamental_type)
+ * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
* }
*/
- public static int g_type_check_instance_is_fundamentally_a(MemorySegment instance, long fundamental_type) {
- var mh$ = g_type_check_instance_is_fundamentally_a.HANDLE;
+ public static MemorySegment vips_blob_copy(MemorySegment data, long length) {
+ var mh$ = vips_blob_copy.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_instance_is_fundamentally_a", instance, fundamental_type);
+ traceDowncall("vips_blob_copy", data, length);
}
- return (int)mh$.invokeExact(instance, fundamental_type);
+ return (MemorySegment)mh$.invokeExact(data, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_class_cast {
+ private static class vips_blob_get {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_class_cast");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_get");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4068,58 +3776,59 @@ private static class g_type_check_class_cast {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GTypeClass *g_type_check_class_cast(GTypeClass *g_class, GType is_a_type)
+ * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
* }
*/
- public static FunctionDescriptor g_type_check_class_cast$descriptor() {
- return g_type_check_class_cast.DESC;
+ public static FunctionDescriptor vips_blob_get$descriptor() {
+ return vips_blob_get.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GTypeClass *g_type_check_class_cast(GTypeClass *g_class, GType is_a_type)
+ * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
* }
*/
- public static MethodHandle g_type_check_class_cast$handle() {
- return g_type_check_class_cast.HANDLE;
+ public static MethodHandle vips_blob_get$handle() {
+ return vips_blob_get.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GTypeClass *g_type_check_class_cast(GTypeClass *g_class, GType is_a_type)
+ * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
* }
*/
- public static MemorySegment g_type_check_class_cast$address() {
- return g_type_check_class_cast.ADDR;
+ public static MemorySegment vips_blob_get$address() {
+ return vips_blob_get.ADDR;
}
/**
* {@snippet lang=c :
- * extern GTypeClass *g_type_check_class_cast(GTypeClass *g_class, GType is_a_type)
+ * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
* }
*/
- public static MemorySegment g_type_check_class_cast(MemorySegment g_class, long is_a_type) {
- var mh$ = g_type_check_class_cast.HANDLE;
+ public static MemorySegment vips_blob_get(MemorySegment blob, MemorySegment length) {
+ var mh$ = vips_blob_get.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_class_cast", g_class, is_a_type);
+ traceDowncall("vips_blob_get", blob, length);
}
- return (MemorySegment)mh$.invokeExact(g_class, is_a_type);
+ return (MemorySegment)mh$.invokeExact(blob, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_class_is_a {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
+ private static class vips_blob_set {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_class_is_a");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_set");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4127,57 +3836,55 @@ private static class g_type_check_class_is_a {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_class_is_a(GTypeClass *g_class, GType is_a_type)
+ * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static FunctionDescriptor g_type_check_class_is_a$descriptor() {
- return g_type_check_class_is_a.DESC;
+ public static FunctionDescriptor vips_blob_set$descriptor() {
+ return vips_blob_set.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_class_is_a(GTypeClass *g_class, GType is_a_type)
+ * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MethodHandle g_type_check_class_is_a$handle() {
- return g_type_check_class_is_a.HANDLE;
+ public static MethodHandle vips_blob_set$handle() {
+ return vips_blob_set.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_class_is_a(GTypeClass *g_class, GType is_a_type)
+ * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MemorySegment g_type_check_class_is_a$address() {
- return g_type_check_class_is_a.ADDR;
+ public static MemorySegment vips_blob_set$address() {
+ return vips_blob_set.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_class_is_a(GTypeClass *g_class, GType is_a_type)
+ * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static int g_type_check_class_is_a(MemorySegment g_class, long is_a_type) {
- var mh$ = g_type_check_class_is_a.HANDLE;
+ public static void vips_blob_set(MemorySegment blob, MemorySegment free_fn, MemorySegment data, long length) {
+ var mh$ = vips_blob_set.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_class_is_a", g_class, is_a_type);
+ traceDowncall("vips_blob_set", blob, free_fn, data, length);
}
- return (int)mh$.invokeExact(g_class, is_a_type);
+ mh$.invokeExact(blob, free_fn, data, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_is_value_type {
+ private static class vips_blob_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_is_value_type");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4185,57 +3892,55 @@ private static class g_type_check_is_value_type {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_is_value_type(GType type)
+ * extern GType vips_blob_get_type()
* }
*/
- public static FunctionDescriptor g_type_check_is_value_type$descriptor() {
- return g_type_check_is_value_type.DESC;
+ public static FunctionDescriptor vips_blob_get_type$descriptor() {
+ return vips_blob_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_is_value_type(GType type)
+ * extern GType vips_blob_get_type()
* }
*/
- public static MethodHandle g_type_check_is_value_type$handle() {
- return g_type_check_is_value_type.HANDLE;
+ public static MethodHandle vips_blob_get_type$handle() {
+ return vips_blob_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_is_value_type(GType type)
+ * extern GType vips_blob_get_type()
* }
*/
- public static MemorySegment g_type_check_is_value_type$address() {
- return g_type_check_is_value_type.ADDR;
+ public static MemorySegment vips_blob_get_type$address() {
+ return vips_blob_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_is_value_type(GType type)
+ * extern GType vips_blob_get_type()
* }
*/
- public static int g_type_check_is_value_type(long type) {
- var mh$ = g_type_check_is_value_type.HANDLE;
+ public static long vips_blob_get_type() {
+ var mh$ = vips_blob_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_is_value_type", type);
+ traceDowncall("vips_blob_get_type");
}
- return (int)mh$.invokeExact(type);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_value {
+ private static class vips_array_double_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_value");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_double_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4243,58 +3948,55 @@ private static class g_type_check_value {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value(const GValue *value)
+ * extern GType vips_array_double_get_type()
* }
*/
- public static FunctionDescriptor g_type_check_value$descriptor() {
- return g_type_check_value.DESC;
+ public static FunctionDescriptor vips_array_double_get_type$descriptor() {
+ return vips_array_double_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value(const GValue *value)
+ * extern GType vips_array_double_get_type()
* }
*/
- public static MethodHandle g_type_check_value$handle() {
- return g_type_check_value.HANDLE;
+ public static MethodHandle vips_array_double_get_type$handle() {
+ return vips_array_double_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value(const GValue *value)
+ * extern GType vips_array_double_get_type()
* }
*/
- public static MemorySegment g_type_check_value$address() {
- return g_type_check_value.ADDR;
+ public static MemorySegment vips_array_double_get_type$address() {
+ return vips_array_double_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_value(const GValue *value)
+ * extern GType vips_array_double_get_type()
* }
*/
- public static int g_type_check_value(MemorySegment value) {
- var mh$ = g_type_check_value.HANDLE;
+ public static long vips_array_double_get_type() {
+ var mh$ = vips_array_double_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_value", value);
+ traceDowncall("vips_array_double_get_type");
}
- return (int)mh$.invokeExact(value);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_check_value_holds {
+ private static class vips_array_int_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_check_value_holds");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_int_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4302,58 +4004,55 @@ private static class g_type_check_value_holds {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value_holds(const GValue *value, GType type)
+ * extern GType vips_array_int_get_type()
* }
*/
- public static FunctionDescriptor g_type_check_value_holds$descriptor() {
- return g_type_check_value_holds.DESC;
+ public static FunctionDescriptor vips_array_int_get_type$descriptor() {
+ return vips_array_int_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value_holds(const GValue *value, GType type)
+ * extern GType vips_array_int_get_type()
* }
*/
- public static MethodHandle g_type_check_value_holds$handle() {
- return g_type_check_value_holds.HANDLE;
+ public static MethodHandle vips_array_int_get_type$handle() {
+ return vips_array_int_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_check_value_holds(const GValue *value, GType type)
+ * extern GType vips_array_int_get_type()
* }
*/
- public static MemorySegment g_type_check_value_holds$address() {
- return g_type_check_value_holds.ADDR;
+ public static MemorySegment vips_array_int_get_type$address() {
+ return vips_array_int_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_check_value_holds(const GValue *value, GType type)
+ * extern GType vips_array_int_get_type()
* }
*/
- public static int g_type_check_value_holds(MemorySegment value, long type) {
- var mh$ = g_type_check_value_holds.HANDLE;
+ public static long vips_array_int_get_type() {
+ var mh$ = vips_array_int_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_check_value_holds", value, type);
+ traceDowncall("vips_array_int_get_type");
}
- return (int)mh$.invokeExact(value, type);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_test_flags {
+ private static class vips_array_image_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG,
- VipsRaw.C_INT
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_test_flags");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_image_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4361,57 +4060,58 @@ private static class g_type_test_flags {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_test_flags(GType type, guint flags)
+ * extern GType vips_array_image_get_type()
* }
*/
- public static FunctionDescriptor g_type_test_flags$descriptor() {
- return g_type_test_flags.DESC;
+ public static FunctionDescriptor vips_array_image_get_type$descriptor() {
+ return vips_array_image_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_test_flags(GType type, guint flags)
+ * extern GType vips_array_image_get_type()
* }
*/
- public static MethodHandle g_type_test_flags$handle() {
- return g_type_test_flags.HANDLE;
+ public static MethodHandle vips_array_image_get_type$handle() {
+ return vips_array_image_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_test_flags(GType type, guint flags)
+ * extern GType vips_array_image_get_type()
* }
*/
- public static MemorySegment g_type_test_flags$address() {
- return g_type_test_flags.ADDR;
+ public static MemorySegment vips_array_image_get_type$address() {
+ return vips_array_image_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_test_flags(GType type, guint flags)
+ * extern GType vips_array_image_get_type()
* }
*/
- public static int g_type_test_flags(long type, int flags) {
- var mh$ = g_type_test_flags.HANDLE;
+ public static long vips_array_image_get_type() {
+ var mh$ = vips_array_image_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_test_flags", type, flags);
+ traceDowncall("vips_array_image_get_type");
}
- return (int)mh$.invokeExact(type, flags);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_name_from_instance {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class vips_value_set_area {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name_from_instance");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_area");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4419,57 +4119,58 @@ private static class g_type_name_from_instance {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
+ * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
* }
*/
- public static FunctionDescriptor g_type_name_from_instance$descriptor() {
- return g_type_name_from_instance.DESC;
+ public static FunctionDescriptor vips_value_set_area$descriptor() {
+ return vips_value_set_area.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
+ * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
* }
*/
- public static MethodHandle g_type_name_from_instance$handle() {
- return g_type_name_from_instance.HANDLE;
+ public static MethodHandle vips_value_set_area$handle() {
+ return vips_value_set_area.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
+ * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
* }
*/
- public static MemorySegment g_type_name_from_instance$address() {
- return g_type_name_from_instance.ADDR;
+ public static MemorySegment vips_value_set_area$address() {
+ return vips_value_set_area.ADDR;
}
/**
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_instance(GTypeInstance *instance)
+ * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
* }
*/
- public static MemorySegment g_type_name_from_instance(MemorySegment instance) {
- var mh$ = g_type_name_from_instance.HANDLE;
+ public static void vips_value_set_area(MemorySegment value, MemorySegment free_fn, MemorySegment data) {
+ var mh$ = vips_value_set_area.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_name_from_instance", instance);
+ traceDowncall("vips_value_set_area", value, free_fn, data);
}
- return (MemorySegment)mh$.invokeExact(instance);
+ mh$.invokeExact(value, free_fn, data);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_name_from_class {
+ private static class vips_value_get_area {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_name_from_class");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_area");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4477,58 +4178,57 @@ private static class g_type_name_from_class {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
+ * extern void *vips_value_get_area(const GValue *value, size_t *length)
* }
*/
- public static FunctionDescriptor g_type_name_from_class$descriptor() {
- return g_type_name_from_class.DESC;
+ public static FunctionDescriptor vips_value_get_area$descriptor() {
+ return vips_value_get_area.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
+ * extern void *vips_value_get_area(const GValue *value, size_t *length)
* }
*/
- public static MethodHandle g_type_name_from_class$handle() {
- return g_type_name_from_class.HANDLE;
+ public static MethodHandle vips_value_get_area$handle() {
+ return vips_value_get_area.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
+ * extern void *vips_value_get_area(const GValue *value, size_t *length)
* }
*/
- public static MemorySegment g_type_name_from_class$address() {
- return g_type_name_from_class.ADDR;
+ public static MemorySegment vips_value_get_area$address() {
+ return vips_value_get_area.ADDR;
}
/**
* {@snippet lang=c :
- * extern const gchar *g_type_name_from_class(GTypeClass *g_class)
+ * extern void *vips_value_get_area(const GValue *value, size_t *length)
* }
*/
- public static MemorySegment g_type_name_from_class(MemorySegment g_class) {
- var mh$ = g_type_name_from_class.HANDLE;
+ public static MemorySegment vips_value_get_area(MemorySegment value, MemorySegment length) {
+ var mh$ = vips_value_get_area.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_name_from_class", g_class);
+ traceDowncall("vips_value_get_area", value, length);
}
- return (MemorySegment)mh$.invokeExact(g_class);
+ return (MemorySegment)mh$.invokeExact(value, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_init {
+ private static class vips_value_get_save_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_init");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_save_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4536,56 +4236,57 @@ private static class g_value_init {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GValue *g_value_init(GValue *value, GType g_type)
+ * extern const char *vips_value_get_save_string(const GValue *value)
* }
*/
- public static FunctionDescriptor g_value_init$descriptor() {
- return g_value_init.DESC;
+ public static FunctionDescriptor vips_value_get_save_string$descriptor() {
+ return vips_value_get_save_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GValue *g_value_init(GValue *value, GType g_type)
+ * extern const char *vips_value_get_save_string(const GValue *value)
* }
*/
- public static MethodHandle g_value_init$handle() {
- return g_value_init.HANDLE;
+ public static MethodHandle vips_value_get_save_string$handle() {
+ return vips_value_get_save_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GValue *g_value_init(GValue *value, GType g_type)
+ * extern const char *vips_value_get_save_string(const GValue *value)
* }
*/
- public static MemorySegment g_value_init$address() {
- return g_value_init.ADDR;
+ public static MemorySegment vips_value_get_save_string$address() {
+ return vips_value_get_save_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern GValue *g_value_init(GValue *value, GType g_type)
+ * extern const char *vips_value_get_save_string(const GValue *value)
* }
*/
- public static MemorySegment g_value_init(MemorySegment value, long g_type) {
- var mh$ = g_value_init.HANDLE;
+ public static MemorySegment vips_value_get_save_string(MemorySegment value) {
+ var mh$ = vips_value_get_save_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_init", value, g_type);
+ traceDowncall("vips_value_get_save_string", value);
}
- return (MemorySegment)mh$.invokeExact(value, g_type);
+ return (MemorySegment)mh$.invokeExact(value);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_unset {
+ private static class vips_value_set_save_string {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_unset");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_save_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4593,57 +4294,130 @@ private static class g_value_unset {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_unset(GValue *value)
+ * extern void vips_value_set_save_string(GValue *value, const char *str)
* }
*/
- public static FunctionDescriptor g_value_unset$descriptor() {
- return g_value_unset.DESC;
+ public static FunctionDescriptor vips_value_set_save_string$descriptor() {
+ return vips_value_set_save_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_unset(GValue *value)
+ * extern void vips_value_set_save_string(GValue *value, const char *str)
* }
*/
- public static MethodHandle g_value_unset$handle() {
- return g_value_unset.HANDLE;
+ public static MethodHandle vips_value_set_save_string$handle() {
+ return vips_value_set_save_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_unset(GValue *value)
+ * extern void vips_value_set_save_string(GValue *value, const char *str)
* }
*/
- public static MemorySegment g_value_unset$address() {
- return g_value_unset.ADDR;
+ public static MemorySegment vips_value_set_save_string$address() {
+ return vips_value_set_save_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_unset(GValue *value)
+ * extern void vips_value_set_save_string(GValue *value, const char *str)
* }
*/
- public static void g_value_unset(MemorySegment value) {
- var mh$ = g_value_unset.HANDLE;
+ public static void vips_value_set_save_string(MemorySegment value, MemorySegment str) {
+ var mh$ = vips_value_set_save_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_unset", value);
+ traceDowncall("vips_value_set_save_string", value, str);
}
- mh$.invokeExact(value);
+ mh$.invokeExact(value, str);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_init_from_instance {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ /**
+ * Variadic invoker class for:
+ * {@snippet lang=c :
+ * extern void vips_value_set_save_stringf(GValue *value, const char *fmt, ...)
+ * }
+ */
+ public static class vips_value_set_save_stringf {
+ private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.ofVoid(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
+ private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_save_stringf");
+
+ private final MethodHandle handle;
+ private final FunctionDescriptor descriptor;
+ private final MethodHandle spreader;
+
+ private vips_value_set_save_stringf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
+ this.handle = handle;
+ this.descriptor = descriptor;
+ this.spreader = spreader;
+ }
+
+ /**
+ * Variadic invoker factory for:
+ * {@snippet lang=c :
+ * extern void vips_value_set_save_stringf(GValue *value, const char *fmt, ...)
+ * }
+ */
+ public static vips_value_set_save_stringf makeInvoker(MemoryLayout... layouts) {
+ FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
+ Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
+ var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
+ var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
+ return new vips_value_set_save_stringf(mh$, desc$, spreader$);
+ }
+
+ /**
+ * {@return the address}
+ */
+ public static MemorySegment address() {
+ return ADDR;
+ }
+
+ /**
+ * {@return the specialized method handle}
+ */
+ public MethodHandle handle() {
+ return handle;
+ }
+
+ /**
+ * {@return the specialized descriptor}
+ */
+ public FunctionDescriptor descriptor() {
+ return descriptor;
+ }
+
+ public void apply(MemorySegment value, MemorySegment fmt, Object... x2) {
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("vips_value_set_save_stringf", value, fmt, x2);
+ }
+ spreader.invokeExact(value, fmt, x2);
+ } catch(IllegalArgumentException | ClassCastException ex$) {
+ throw ex$; // rethrow IAE from passing wrong number/type of args
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
+ }
+ }
+ }
+
+ private static class vips_value_get_ref_string {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_init_from_instance");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_ref_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4651,57 +4425,57 @@ private static class g_value_init_from_instance {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_init_from_instance(GValue *value, gpointer instance)
+ * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
* }
*/
- public static FunctionDescriptor g_value_init_from_instance$descriptor() {
- return g_value_init_from_instance.DESC;
+ public static FunctionDescriptor vips_value_get_ref_string$descriptor() {
+ return vips_value_get_ref_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_init_from_instance(GValue *value, gpointer instance)
+ * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
* }
*/
- public static MethodHandle g_value_init_from_instance$handle() {
- return g_value_init_from_instance.HANDLE;
+ public static MethodHandle vips_value_get_ref_string$handle() {
+ return vips_value_get_ref_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_init_from_instance(GValue *value, gpointer instance)
+ * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
* }
*/
- public static MemorySegment g_value_init_from_instance$address() {
- return g_value_init_from_instance.ADDR;
+ public static MemorySegment vips_value_get_ref_string$address() {
+ return vips_value_get_ref_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_init_from_instance(GValue *value, gpointer instance)
+ * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
* }
*/
- public static void g_value_init_from_instance(MemorySegment value, MemorySegment instance) {
- var mh$ = g_value_init_from_instance.HANDLE;
+ public static MemorySegment vips_value_get_ref_string(MemorySegment value, MemorySegment length) {
+ var mh$ = vips_value_get_ref_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_init_from_instance", value, instance);
+ traceDowncall("vips_value_get_ref_string", value, length);
}
- mh$.invokeExact(value, instance);
+ return (MemorySegment)mh$.invokeExact(value, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_param_spec_get_blurb {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class vips_value_set_ref_string {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_param_spec_get_blurb");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_ref_string");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4709,62 +4483,58 @@ private static class g_param_spec_get_blurb {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
+ * extern void vips_value_set_ref_string(GValue *value, const char *str)
* }
*/
- public static FunctionDescriptor g_param_spec_get_blurb$descriptor() {
- return g_param_spec_get_blurb.DESC;
+ public static FunctionDescriptor vips_value_set_ref_string$descriptor() {
+ return vips_value_set_ref_string.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
+ * extern void vips_value_set_ref_string(GValue *value, const char *str)
* }
*/
- public static MethodHandle g_param_spec_get_blurb$handle() {
- return g_param_spec_get_blurb.HANDLE;
+ public static MethodHandle vips_value_set_ref_string$handle() {
+ return vips_value_set_ref_string.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
+ * extern void vips_value_set_ref_string(GValue *value, const char *str)
* }
*/
- public static MemorySegment g_param_spec_get_blurb$address() {
- return g_param_spec_get_blurb.ADDR;
+ public static MemorySegment vips_value_set_ref_string$address() {
+ return vips_value_set_ref_string.ADDR;
}
/**
* {@snippet lang=c :
- * extern const gchar *g_param_spec_get_blurb(GParamSpec *pspec)
+ * extern void vips_value_set_ref_string(GValue *value, const char *str)
* }
*/
- public static MemorySegment g_param_spec_get_blurb(MemorySegment pspec) {
- var mh$ = g_param_spec_get_blurb.HANDLE;
+ public static void vips_value_set_ref_string(MemorySegment value, MemorySegment str) {
+ var mh$ = vips_value_set_ref_string.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_param_spec_get_blurb", pspec);
+ traceDowncall("vips_value_set_ref_string", value, str);
}
- return (MemorySegment)mh$.invokeExact(pspec);
+ mh$.invokeExact(value, str);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_signal_connect_data {
+ private static class vips_value_get_blob {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_signal_connect_data");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_blob");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4772,57 +4542,59 @@ private static class g_signal_connect_data {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
+ * extern void *vips_value_get_blob(const GValue *value, size_t *length)
* }
*/
- public static FunctionDescriptor g_signal_connect_data$descriptor() {
- return g_signal_connect_data.DESC;
+ public static FunctionDescriptor vips_value_get_blob$descriptor() {
+ return vips_value_get_blob.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
+ * extern void *vips_value_get_blob(const GValue *value, size_t *length)
* }
*/
- public static MethodHandle g_signal_connect_data$handle() {
- return g_signal_connect_data.HANDLE;
+ public static MethodHandle vips_value_get_blob$handle() {
+ return vips_value_get_blob.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
+ * extern void *vips_value_get_blob(const GValue *value, size_t *length)
* }
*/
- public static MemorySegment g_signal_connect_data$address() {
- return g_signal_connect_data.ADDR;
+ public static MemorySegment vips_value_get_blob$address() {
+ return vips_value_get_blob.ADDR;
}
/**
* {@snippet lang=c :
- * extern gulong g_signal_connect_data(gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags)
+ * extern void *vips_value_get_blob(const GValue *value, size_t *length)
* }
*/
- public static long g_signal_connect_data(MemorySegment instance, MemorySegment detailed_signal, MemorySegment c_handler, MemorySegment data, MemorySegment destroy_data, int connect_flags) {
- var mh$ = g_signal_connect_data.HANDLE;
+ public static MemorySegment vips_value_get_blob(MemorySegment value, MemorySegment length) {
+ var mh$ = vips_value_get_blob.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_signal_connect_data", instance, detailed_signal, c_handler, data, destroy_data, connect_flags);
+ traceDowncall("vips_value_get_blob", value, length);
}
- return (long)mh$.invokeExact(instance, detailed_signal, c_handler, data, destroy_data, connect_flags);
+ return (MemorySegment)mh$.invokeExact(value, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_set_boxed {
+ private static class vips_value_set_blob {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_boxed");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_blob");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4830,57 +4602,58 @@ private static class g_value_set_boxed {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static FunctionDescriptor g_value_set_boxed$descriptor() {
- return g_value_set_boxed.DESC;
+ public static FunctionDescriptor vips_value_set_blob$descriptor() {
+ return vips_value_set_blob.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MethodHandle g_value_set_boxed$handle() {
- return g_value_set_boxed.HANDLE;
+ public static MethodHandle vips_value_set_blob$handle() {
+ return vips_value_set_blob.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static MemorySegment g_value_set_boxed$address() {
- return g_value_set_boxed.ADDR;
+ public static MemorySegment vips_value_set_blob$address() {
+ return vips_value_set_blob.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_set_boxed(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
* }
*/
- public static void g_value_set_boxed(MemorySegment value, MemorySegment v_boxed) {
- var mh$ = g_value_set_boxed.HANDLE;
+ public static void vips_value_set_blob(MemorySegment value, MemorySegment free_fn, MemorySegment data, long length) {
+ var mh$ = vips_value_set_blob.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_boxed", value, v_boxed);
+ traceDowncall("vips_value_set_blob", value, free_fn, data, length);
}
- mh$.invokeExact(value, v_boxed);
+ mh$.invokeExact(value, free_fn, data, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_set_boxed_take_ownership {
+ private static class vips_value_set_blob_free {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_POINTER,
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_boxed_take_ownership");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_blob_free");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4888,57 +4661,59 @@ private static class g_value_set_boxed_take_ownership {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_boxed_take_ownership(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
* }
*/
- public static FunctionDescriptor g_value_set_boxed_take_ownership$descriptor() {
- return g_value_set_boxed_take_ownership.DESC;
+ public static FunctionDescriptor vips_value_set_blob_free$descriptor() {
+ return vips_value_set_blob_free.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_boxed_take_ownership(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
* }
*/
- public static MethodHandle g_value_set_boxed_take_ownership$handle() {
- return g_value_set_boxed_take_ownership.HANDLE;
+ public static MethodHandle vips_value_set_blob_free$handle() {
+ return vips_value_set_blob_free.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_set_boxed_take_ownership(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
* }
*/
- public static MemorySegment g_value_set_boxed_take_ownership$address() {
- return g_value_set_boxed_take_ownership.ADDR;
+ public static MemorySegment vips_value_set_blob_free$address() {
+ return vips_value_set_blob_free.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_set_boxed_take_ownership(GValue *value, gconstpointer v_boxed)
+ * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
* }
*/
- public static void g_value_set_boxed_take_ownership(MemorySegment value, MemorySegment v_boxed) {
- var mh$ = g_value_set_boxed_take_ownership.HANDLE;
+ public static void vips_value_set_blob_free(MemorySegment value, MemorySegment data, long length) {
+ var mh$ = vips_value_set_blob_free.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_boxed_take_ownership", value, v_boxed);
+ traceDowncall("vips_value_set_blob_free", value, data, length);
}
- mh$.invokeExact(value, v_boxed);
+ mh$.invokeExact(value, data, length);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_get_boxed {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class vips_value_set_array {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_INT,
+ VipsRaw.C_LONG,
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_boxed");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -4946,58 +4721,60 @@ private static class g_value_get_boxed {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_value_get_boxed(const GValue *value)
+ * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
* }
*/
- public static FunctionDescriptor g_value_get_boxed$descriptor() {
- return g_value_get_boxed.DESC;
+ public static FunctionDescriptor vips_value_set_array$descriptor() {
+ return vips_value_set_array.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_value_get_boxed(const GValue *value)
+ * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
* }
*/
- public static MethodHandle g_value_get_boxed$handle() {
- return g_value_get_boxed.HANDLE;
+ public static MethodHandle vips_value_set_array$handle() {
+ return vips_value_set_array.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_value_get_boxed(const GValue *value)
+ * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
* }
*/
- public static MemorySegment g_value_get_boxed$address() {
- return g_value_get_boxed.ADDR;
+ public static MemorySegment vips_value_set_array$address() {
+ return vips_value_set_array.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_value_get_boxed(const GValue *value)
+ * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
* }
*/
- public static MemorySegment g_value_get_boxed(MemorySegment value) {
- var mh$ = g_value_get_boxed.HANDLE;
+ public static void vips_value_set_array(MemorySegment value, int n, long type, long sizeof_type) {
+ var mh$ = vips_value_set_array.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_boxed", value);
+ traceDowncall("vips_value_set_array", value, n, type, sizeof_type);
}
- return (MemorySegment)mh$.invokeExact(value);
+ mh$.invokeExact(value, n, type, sizeof_type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_object_set_property {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_value_get_array {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_set_property");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5005,58 +4782,58 @@ private static class g_object_set_property {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
+ * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static FunctionDescriptor g_object_set_property$descriptor() {
- return g_object_set_property.DESC;
+ public static FunctionDescriptor vips_value_get_array$descriptor() {
+ return vips_value_get_array.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
+ * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static MethodHandle g_object_set_property$handle() {
- return g_object_set_property.HANDLE;
+ public static MethodHandle vips_value_get_array$handle() {
+ return vips_value_get_array.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
+ * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static MemorySegment g_object_set_property$address() {
- return g_object_set_property.ADDR;
+ public static MemorySegment vips_value_get_array$address() {
+ return vips_value_get_array.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_object_set_property(GObject *object, const gchar *property_name, const GValue *value)
+ * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
* }
*/
- public static void g_object_set_property(MemorySegment object, MemorySegment property_name, MemorySegment value) {
- var mh$ = g_object_set_property.HANDLE;
+ public static MemorySegment vips_value_get_array(MemorySegment value, MemorySegment n, MemorySegment type, MemorySegment sizeof_type) {
+ var mh$ = vips_value_get_array.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_object_set_property", object, property_name, value);
+ traceDowncall("vips_value_get_array", value, n, type, sizeof_type);
}
- mh$.invokeExact(object, property_name, value);
+ return (MemorySegment)mh$.invokeExact(value, n, type, sizeof_type);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_object_get_property {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_value_get_array_double {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_get_property");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_double");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5064,57 +4841,58 @@ private static class g_object_get_property {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
+ * extern double *vips_value_get_array_double(const GValue *value, int *n)
* }
*/
- public static FunctionDescriptor g_object_get_property$descriptor() {
- return g_object_get_property.DESC;
+ public static FunctionDescriptor vips_value_get_array_double$descriptor() {
+ return vips_value_get_array_double.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
+ * extern double *vips_value_get_array_double(const GValue *value, int *n)
* }
*/
- public static MethodHandle g_object_get_property$handle() {
- return g_object_get_property.HANDLE;
+ public static MethodHandle vips_value_get_array_double$handle() {
+ return vips_value_get_array_double.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
+ * extern double *vips_value_get_array_double(const GValue *value, int *n)
* }
*/
- public static MemorySegment g_object_get_property$address() {
- return g_object_get_property.ADDR;
+ public static MemorySegment vips_value_get_array_double$address() {
+ return vips_value_get_array_double.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_object_get_property(GObject *object, const gchar *property_name, GValue *value)
+ * extern double *vips_value_get_array_double(const GValue *value, int *n)
* }
*/
- public static void g_object_get_property(MemorySegment object, MemorySegment property_name, MemorySegment value) {
- var mh$ = g_object_get_property.HANDLE;
+ public static MemorySegment vips_value_get_array_double(MemorySegment value, MemorySegment n) {
+ var mh$ = vips_value_get_array_double.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_object_get_property", object, property_name, value);
+ traceDowncall("vips_value_get_array_double", value, n);
}
- mh$.invokeExact(object, property_name, value);
+ return (MemorySegment)mh$.invokeExact(value, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_object_ref_sink {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class vips_value_set_array_double {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_POINTER,
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_ref_sink");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_double");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5122,57 +4900,58 @@ private static class g_object_ref_sink {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_object_ref_sink(gpointer object)
+ * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
* }
*/
- public static FunctionDescriptor g_object_ref_sink$descriptor() {
- return g_object_ref_sink.DESC;
+ public static FunctionDescriptor vips_value_set_array_double$descriptor() {
+ return vips_value_set_array_double.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_object_ref_sink(gpointer object)
+ * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
* }
*/
- public static MethodHandle g_object_ref_sink$handle() {
- return g_object_ref_sink.HANDLE;
+ public static MethodHandle vips_value_set_array_double$handle() {
+ return vips_value_set_array_double.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_object_ref_sink(gpointer object)
+ * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
* }
*/
- public static MemorySegment g_object_ref_sink$address() {
- return g_object_ref_sink.ADDR;
+ public static MemorySegment vips_value_set_array_double$address() {
+ return vips_value_set_array_double.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_object_ref_sink(gpointer object)
+ * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
* }
*/
- public static MemorySegment g_object_ref_sink(MemorySegment object) {
- var mh$ = g_object_ref_sink.HANDLE;
+ public static void vips_value_set_array_double(MemorySegment value, MemorySegment array, int n) {
+ var mh$ = vips_value_set_array_double.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_object_ref_sink", object);
+ traceDowncall("vips_value_set_array_double", value, array, n);
}
- return (MemorySegment)mh$.invokeExact(object);
+ mh$.invokeExact(value, array, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_object_ref {
+ private static class vips_value_get_array_int {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_ref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_int");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5180,56 +4959,58 @@ private static class g_object_ref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_object_ref(gpointer object)
+ * extern int *vips_value_get_array_int(const GValue *value, int *n)
* }
*/
- public static FunctionDescriptor g_object_ref$descriptor() {
- return g_object_ref.DESC;
+ public static FunctionDescriptor vips_value_get_array_int$descriptor() {
+ return vips_value_get_array_int.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_object_ref(gpointer object)
+ * extern int *vips_value_get_array_int(const GValue *value, int *n)
* }
*/
- public static MethodHandle g_object_ref$handle() {
- return g_object_ref.HANDLE;
+ public static MethodHandle vips_value_get_array_int$handle() {
+ return vips_value_get_array_int.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_object_ref(gpointer object)
+ * extern int *vips_value_get_array_int(const GValue *value, int *n)
* }
*/
- public static MemorySegment g_object_ref$address() {
- return g_object_ref.ADDR;
+ public static MemorySegment vips_value_get_array_int$address() {
+ return vips_value_get_array_int.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_object_ref(gpointer object)
+ * extern int *vips_value_get_array_int(const GValue *value, int *n)
* }
*/
- public static MemorySegment g_object_ref(MemorySegment object) {
- var mh$ = g_object_ref.HANDLE;
+ public static MemorySegment vips_value_get_array_int(MemorySegment value, MemorySegment n) {
+ var mh$ = vips_value_get_array_int.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_object_ref", object);
+ traceDowncall("vips_value_get_array_int", value, n);
}
- return (MemorySegment)mh$.invokeExact(object);
+ return (MemorySegment)mh$.invokeExact(value, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_object_unref {
+ private static class vips_value_set_array_int {
public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_object_unref");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_int");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5237,57 +5018,58 @@ private static class g_object_unref {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_object_unref(gpointer object)
+ * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
* }
*/
- public static FunctionDescriptor g_object_unref$descriptor() {
- return g_object_unref.DESC;
+ public static FunctionDescriptor vips_value_set_array_int$descriptor() {
+ return vips_value_set_array_int.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_object_unref(gpointer object)
+ * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
* }
*/
- public static MethodHandle g_object_unref$handle() {
- return g_object_unref.HANDLE;
+ public static MethodHandle vips_value_set_array_int$handle() {
+ return vips_value_set_array_int.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_object_unref(gpointer object)
+ * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
* }
*/
- public static MemorySegment g_object_unref$address() {
- return g_object_unref.ADDR;
+ public static MemorySegment vips_value_set_array_int$address() {
+ return vips_value_set_array_int.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_object_unref(gpointer object)
+ * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
* }
*/
- public static void g_object_unref(MemorySegment object) {
- var mh$ = g_object_unref.HANDLE;
+ public static void vips_value_set_array_int(MemorySegment value, MemorySegment array, int n) {
+ var mh$ = vips_value_set_array_int.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_object_unref", object);
+ traceDowncall("vips_value_set_array_int", value, array, n);
}
- mh$.invokeExact(object);
+ mh$.invokeExact(value, array, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_set_object {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_value_get_array_object {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_object");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_object");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5295,57 +5077,57 @@ private static class g_value_set_object {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_object(GValue *value, gpointer v_object)
+ * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
* }
*/
- public static FunctionDescriptor g_value_set_object$descriptor() {
- return g_value_set_object.DESC;
+ public static FunctionDescriptor vips_value_get_array_object$descriptor() {
+ return vips_value_get_array_object.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_object(GValue *value, gpointer v_object)
+ * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
* }
*/
- public static MethodHandle g_value_set_object$handle() {
- return g_value_set_object.HANDLE;
+ public static MethodHandle vips_value_get_array_object$handle() {
+ return vips_value_get_array_object.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_set_object(GValue *value, gpointer v_object)
+ * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
* }
*/
- public static MemorySegment g_value_set_object$address() {
- return g_value_set_object.ADDR;
+ public static MemorySegment vips_value_get_array_object$address() {
+ return vips_value_get_array_object.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_set_object(GValue *value, gpointer v_object)
+ * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
* }
*/
- public static void g_value_set_object(MemorySegment value, MemorySegment v_object) {
- var mh$ = g_value_set_object.HANDLE;
+ public static MemorySegment vips_value_get_array_object(MemorySegment value, MemorySegment n) {
+ var mh$ = vips_value_get_array_object.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_object", value, v_object);
+ traceDowncall("vips_value_get_array_object", value, n);
}
- mh$.invokeExact(value, v_object);
+ return (MemorySegment)mh$.invokeExact(value, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_get_object {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ private static class vips_value_set_array_object {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_object");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_object");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5353,57 +5135,55 @@ private static class g_value_get_object {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gpointer g_value_get_object(const GValue *value)
+ * extern void vips_value_set_array_object(GValue *value, int n)
* }
*/
- public static FunctionDescriptor g_value_get_object$descriptor() {
- return g_value_get_object.DESC;
+ public static FunctionDescriptor vips_value_set_array_object$descriptor() {
+ return vips_value_set_array_object.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gpointer g_value_get_object(const GValue *value)
+ * extern void vips_value_set_array_object(GValue *value, int n)
* }
*/
- public static MethodHandle g_value_get_object$handle() {
- return g_value_get_object.HANDLE;
+ public static MethodHandle vips_value_set_array_object$handle() {
+ return vips_value_set_array_object.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gpointer g_value_get_object(const GValue *value)
+ * extern void vips_value_set_array_object(GValue *value, int n)
* }
*/
- public static MemorySegment g_value_get_object$address() {
- return g_value_get_object.ADDR;
+ public static MemorySegment vips_value_set_array_object$address() {
+ return vips_value_set_array_object.ADDR;
}
/**
* {@snippet lang=c :
- * extern gpointer g_value_get_object(const GValue *value)
+ * extern void vips_value_set_array_object(GValue *value, int n)
* }
*/
- public static MemorySegment g_value_get_object(MemorySegment value) {
- var mh$ = g_value_get_object.HANDLE;
+ public static void vips_value_set_array_object(MemorySegment value, int n) {
+ var mh$ = vips_value_set_array_object.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_object", value);
+ traceDowncall("vips_value_set_array_object", value, n);
}
- return (MemorySegment)mh$.invokeExact(value);
+ mh$.invokeExact(value, n);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_value_set_object_take_ownership {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
+ private static class vips_source_get_type {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_object_take_ownership");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5411,100 +5191,115 @@ private static class g_value_set_object_take_ownership {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_object_take_ownership(GValue *value, gpointer v_object)
+ * extern GType vips_source_get_type()
* }
*/
- public static FunctionDescriptor g_value_set_object_take_ownership$descriptor() {
- return g_value_set_object_take_ownership.DESC;
+ public static FunctionDescriptor vips_source_get_type$descriptor() {
+ return vips_source_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_object_take_ownership(GValue *value, gpointer v_object)
+ * extern GType vips_source_get_type()
* }
*/
- public static MethodHandle g_value_set_object_take_ownership$handle() {
- return g_value_set_object_take_ownership.HANDLE;
+ public static MethodHandle vips_source_get_type$handle() {
+ return vips_source_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_value_set_object_take_ownership(GValue *value, gpointer v_object)
+ * extern GType vips_source_get_type()
* }
*/
- public static MemorySegment g_value_set_object_take_ownership$address() {
- return g_value_set_object_take_ownership.ADDR;
+ public static MemorySegment vips_source_get_type$address() {
+ return vips_source_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_value_set_object_take_ownership(GValue *value, gpointer v_object)
+ * extern GType vips_source_get_type()
* }
*/
- public static void g_value_set_object_take_ownership(MemorySegment value, MemorySegment v_object) {
- var mh$ = g_value_set_object_take_ownership.HANDLE;
+ public static long vips_source_get_type() {
+ var mh$ = vips_source_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_object_take_ownership", value, v_object);
+ traceDowncall("vips_source_get_type");
}
- mh$.invokeExact(value, v_object);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_param_spec_types$constants {
- public static final AddressLayout LAYOUT = VipsRaw.C_POINTER;
- public static final MemorySegment SEGMENT = VipsRaw.findOrThrow("g_param_spec_types").reinterpret(LAYOUT.byteSize());
+ private static class vips_source_new_from_descriptor {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_INT
+ );
+
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_descriptor");
+
+ public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
/**
- * Layout for variable:
+ * Function descriptor for:
* {@snippet lang=c :
- * extern GType *g_param_spec_types
+ * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
* }
*/
- public static AddressLayout g_param_spec_types$layout() {
- return g_param_spec_types$constants.LAYOUT;
+ public static FunctionDescriptor vips_source_new_from_descriptor$descriptor() {
+ return vips_source_new_from_descriptor.DESC;
}
/**
- * Segment for variable:
+ * Downcall method handle for:
* {@snippet lang=c :
- * extern GType *g_param_spec_types
+ * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
* }
*/
- public static MemorySegment g_param_spec_types$segment() {
- return g_param_spec_types$constants.SEGMENT;
+ public static MethodHandle vips_source_new_from_descriptor$handle() {
+ return vips_source_new_from_descriptor.HANDLE;
}
/**
- * Getter for variable:
+ * Address for:
* {@snippet lang=c :
- * extern GType *g_param_spec_types
+ * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
* }
*/
- public static MemorySegment g_param_spec_types() {
- return g_param_spec_types$constants.SEGMENT.get(g_param_spec_types$constants.LAYOUT, 0L);
+ public static MemorySegment vips_source_new_from_descriptor$address() {
+ return vips_source_new_from_descriptor.ADDR;
}
/**
- * Setter for variable:
* {@snippet lang=c :
- * extern GType *g_param_spec_types
+ * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
* }
*/
- public static void g_param_spec_types(MemorySegment varValue) {
- g_param_spec_types$constants.SEGMENT.set(g_param_spec_types$constants.LAYOUT, 0L, varValue);
+ public static MemorySegment vips_source_new_from_descriptor(int descriptor) {
+ var mh$ = vips_source_new_from_descriptor.HANDLE;
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("vips_source_new_from_descriptor", descriptor);
+ }
+ return (MemorySegment)mh$.invokeExact(descriptor);
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
+ }
}
- private static class g_type_module_get_type {
+ private static class vips_source_new_from_file {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_get_type");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_file");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5512,57 +5307,57 @@ private static class g_type_module_get_type {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_module_get_type()
+ * extern VipsSource *vips_source_new_from_file(const char *filename)
* }
*/
- public static FunctionDescriptor g_type_module_get_type$descriptor() {
- return g_type_module_get_type.DESC;
+ public static FunctionDescriptor vips_source_new_from_file$descriptor() {
+ return vips_source_new_from_file.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_module_get_type()
+ * extern VipsSource *vips_source_new_from_file(const char *filename)
* }
*/
- public static MethodHandle g_type_module_get_type$handle() {
- return g_type_module_get_type.HANDLE;
+ public static MethodHandle vips_source_new_from_file$handle() {
+ return vips_source_new_from_file.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_module_get_type()
+ * extern VipsSource *vips_source_new_from_file(const char *filename)
* }
*/
- public static MemorySegment g_type_module_get_type$address() {
- return g_type_module_get_type.ADDR;
+ public static MemorySegment vips_source_new_from_file$address() {
+ return vips_source_new_from_file.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_module_get_type()
+ * extern VipsSource *vips_source_new_from_file(const char *filename)
* }
*/
- public static long g_type_module_get_type() {
- var mh$ = g_type_module_get_type.HANDLE;
+ public static MemorySegment vips_source_new_from_file(MemorySegment filename) {
+ var mh$ = vips_source_new_from_file.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_get_type");
+ traceDowncall("vips_source_new_from_file", filename);
}
- return (long)mh$.invokeExact();
+ return (MemorySegment)mh$.invokeExact(filename);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_use {
+ private static class vips_source_new_from_blob {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_use");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_blob");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5570,56 +5365,57 @@ private static class g_type_module_use {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_type_module_use(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
* }
*/
- public static FunctionDescriptor g_type_module_use$descriptor() {
- return g_type_module_use.DESC;
+ public static FunctionDescriptor vips_source_new_from_blob$descriptor() {
+ return vips_source_new_from_blob.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_type_module_use(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
* }
*/
- public static MethodHandle g_type_module_use$handle() {
- return g_type_module_use.HANDLE;
+ public static MethodHandle vips_source_new_from_blob$handle() {
+ return vips_source_new_from_blob.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean g_type_module_use(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
* }
*/
- public static MemorySegment g_type_module_use$address() {
- return g_type_module_use.ADDR;
+ public static MemorySegment vips_source_new_from_blob$address() {
+ return vips_source_new_from_blob.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean g_type_module_use(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
* }
*/
- public static int g_type_module_use(MemorySegment module) {
- var mh$ = g_type_module_use.HANDLE;
+ public static MemorySegment vips_source_new_from_blob(MemorySegment blob) {
+ var mh$ = vips_source_new_from_blob.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_use", module);
+ traceDowncall("vips_source_new_from_blob", blob);
}
- return (int)mh$.invokeExact(module);
+ return (MemorySegment)mh$.invokeExact(blob);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_unuse {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_source_new_from_target {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_unuse");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_target");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5627,57 +5423,58 @@ private static class g_type_module_unuse {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_module_unuse(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
* }
*/
- public static FunctionDescriptor g_type_module_unuse$descriptor() {
- return g_type_module_unuse.DESC;
+ public static FunctionDescriptor vips_source_new_from_target$descriptor() {
+ return vips_source_new_from_target.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_module_unuse(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
* }
*/
- public static MethodHandle g_type_module_unuse$handle() {
- return g_type_module_unuse.HANDLE;
+ public static MethodHandle vips_source_new_from_target$handle() {
+ return vips_source_new_from_target.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_module_unuse(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
* }
*/
- public static MemorySegment g_type_module_unuse$address() {
- return g_type_module_unuse.ADDR;
+ public static MemorySegment vips_source_new_from_target$address() {
+ return vips_source_new_from_target.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_module_unuse(GTypeModule *module)
+ * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
* }
*/
- public static void g_type_module_unuse(MemorySegment module) {
- var mh$ = g_type_module_unuse.HANDLE;
+ public static MemorySegment vips_source_new_from_target(MemorySegment target) {
+ var mh$ = vips_source_new_from_target.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_unuse", module);
+ traceDowncall("vips_source_new_from_target", target);
}
- mh$.invokeExact(module);
+ return (MemorySegment)mh$.invokeExact(target);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_set_name {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_source_new_from_memory {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_POINTER,
+ VipsRaw.C_LONG
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_set_name");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_memory");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5685,61 +5482,57 @@ private static class g_type_module_set_name {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_module_set_name(GTypeModule *module, const gchar *name)
+ * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
* }
*/
- public static FunctionDescriptor g_type_module_set_name$descriptor() {
- return g_type_module_set_name.DESC;
+ public static FunctionDescriptor vips_source_new_from_memory$descriptor() {
+ return vips_source_new_from_memory.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_module_set_name(GTypeModule *module, const gchar *name)
+ * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
* }
*/
- public static MethodHandle g_type_module_set_name$handle() {
- return g_type_module_set_name.HANDLE;
+ public static MethodHandle vips_source_new_from_memory$handle() {
+ return vips_source_new_from_memory.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_module_set_name(GTypeModule *module, const gchar *name)
+ * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
* }
*/
- public static MemorySegment g_type_module_set_name$address() {
- return g_type_module_set_name.ADDR;
+ public static MemorySegment vips_source_new_from_memory$address() {
+ return vips_source_new_from_memory.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_module_set_name(GTypeModule *module, const gchar *name)
+ * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
* }
*/
- public static void g_type_module_set_name(MemorySegment module, MemorySegment name) {
- var mh$ = g_type_module_set_name.HANDLE;
+ public static MemorySegment vips_source_new_from_memory(MemorySegment data, long size) {
+ var mh$ = vips_source_new_from_memory.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_set_name", module, name);
+ traceDowncall("vips_source_new_from_memory", data, size);
}
- mh$.invokeExact(module, name);
+ return (MemorySegment)mh$.invokeExact(data, size);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_register_type {
+ private static class vips_source_new_from_options {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
+ VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_register_type");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_options");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5747,59 +5540,55 @@ private static class g_type_module_register_type {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_module_register_type(GTypeModule *module, GType parent_type, const gchar *type_name, const GTypeInfo *type_info, GTypeFlags flags)
+ * extern VipsSource *vips_source_new_from_options(const char *options)
* }
*/
- public static FunctionDescriptor g_type_module_register_type$descriptor() {
- return g_type_module_register_type.DESC;
- }
+ public static FunctionDescriptor vips_source_new_from_options$descriptor() {
+ return vips_source_new_from_options.DESC;
+ }
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_module_register_type(GTypeModule *module, GType parent_type, const gchar *type_name, const GTypeInfo *type_info, GTypeFlags flags)
+ * extern VipsSource *vips_source_new_from_options(const char *options)
* }
*/
- public static MethodHandle g_type_module_register_type$handle() {
- return g_type_module_register_type.HANDLE;
+ public static MethodHandle vips_source_new_from_options$handle() {
+ return vips_source_new_from_options.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_module_register_type(GTypeModule *module, GType parent_type, const gchar *type_name, const GTypeInfo *type_info, GTypeFlags flags)
+ * extern VipsSource *vips_source_new_from_options(const char *options)
* }
*/
- public static MemorySegment g_type_module_register_type$address() {
- return g_type_module_register_type.ADDR;
+ public static MemorySegment vips_source_new_from_options$address() {
+ return vips_source_new_from_options.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_module_register_type(GTypeModule *module, GType parent_type, const gchar *type_name, const GTypeInfo *type_info, GTypeFlags flags)
+ * extern VipsSource *vips_source_new_from_options(const char *options)
* }
*/
- public static long g_type_module_register_type(MemorySegment module, long parent_type, MemorySegment type_name, MemorySegment type_info, int flags) {
- var mh$ = g_type_module_register_type.HANDLE;
+ public static MemorySegment vips_source_new_from_options(MemorySegment options) {
+ var mh$ = vips_source_new_from_options.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_register_type", module, parent_type, type_name, type_info, flags);
+ traceDowncall("vips_source_new_from_options", options);
}
- return (long)mh$.invokeExact(module, parent_type, type_name, type_info, flags);
+ return (MemorySegment)mh$.invokeExact(options);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_add_interface {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
+ private static class vips_source_custom_new {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_add_interface");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_custom_new");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5807,59 +5596,55 @@ private static class g_type_module_add_interface {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_module_add_interface(GTypeModule *module, GType instance_type, GType interface_type, const GInterfaceInfo *interface_info)
+ * extern VipsSourceCustom *vips_source_custom_new()
* }
*/
- public static FunctionDescriptor g_type_module_add_interface$descriptor() {
- return g_type_module_add_interface.DESC;
+ public static FunctionDescriptor vips_source_custom_new$descriptor() {
+ return vips_source_custom_new.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_module_add_interface(GTypeModule *module, GType instance_type, GType interface_type, const GInterfaceInfo *interface_info)
+ * extern VipsSourceCustom *vips_source_custom_new()
* }
*/
- public static MethodHandle g_type_module_add_interface$handle() {
- return g_type_module_add_interface.HANDLE;
+ public static MethodHandle vips_source_custom_new$handle() {
+ return vips_source_custom_new.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_module_add_interface(GTypeModule *module, GType instance_type, GType interface_type, const GInterfaceInfo *interface_info)
+ * extern VipsSourceCustom *vips_source_custom_new()
* }
*/
- public static MemorySegment g_type_module_add_interface$address() {
- return g_type_module_add_interface.ADDR;
+ public static MemorySegment vips_source_custom_new$address() {
+ return vips_source_custom_new.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_module_add_interface(GTypeModule *module, GType instance_type, GType interface_type, const GInterfaceInfo *interface_info)
+ * extern VipsSourceCustom *vips_source_custom_new()
* }
*/
- public static void g_type_module_add_interface(MemorySegment module, long instance_type, long interface_type, MemorySegment interface_info) {
- var mh$ = g_type_module_add_interface.HANDLE;
+ public static MemorySegment vips_source_custom_new() {
+ var mh$ = vips_source_custom_new.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_add_interface", module, instance_type, interface_type, interface_info);
+ traceDowncall("vips_source_custom_new");
}
- mh$.invokeExact(module, instance_type, interface_type, interface_info);
+ return (MemorySegment)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_register_enum {
+ private static class vips_target_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_register_enum");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5867,59 +5652,57 @@ private static class g_type_module_register_enum {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_module_register_enum(GTypeModule *module, const gchar *name, const GEnumValue *const_static_values)
+ * extern GType vips_target_get_type()
* }
*/
- public static FunctionDescriptor g_type_module_register_enum$descriptor() {
- return g_type_module_register_enum.DESC;
+ public static FunctionDescriptor vips_target_get_type$descriptor() {
+ return vips_target_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_module_register_enum(GTypeModule *module, const gchar *name, const GEnumValue *const_static_values)
+ * extern GType vips_target_get_type()
* }
*/
- public static MethodHandle g_type_module_register_enum$handle() {
- return g_type_module_register_enum.HANDLE;
+ public static MethodHandle vips_target_get_type$handle() {
+ return vips_target_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_module_register_enum(GTypeModule *module, const gchar *name, const GEnumValue *const_static_values)
+ * extern GType vips_target_get_type()
* }
*/
- public static MemorySegment g_type_module_register_enum$address() {
- return g_type_module_register_enum.ADDR;
+ public static MemorySegment vips_target_get_type$address() {
+ return vips_target_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_module_register_enum(GTypeModule *module, const gchar *name, const GEnumValue *const_static_values)
+ * extern GType vips_target_get_type()
* }
*/
- public static long g_type_module_register_enum(MemorySegment module, MemorySegment name, MemorySegment const_static_values) {
- var mh$ = g_type_module_register_enum.HANDLE;
+ public static long vips_target_get_type() {
+ var mh$ = vips_target_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_register_enum", module, name, const_static_values);
+ traceDowncall("vips_target_get_type");
}
- return (long)mh$.invokeExact(module, name, const_static_values);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_module_register_flags {
+ private static class vips_target_new_to_descriptor {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
+ VipsRaw.C_INT
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_module_register_flags");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_descriptor");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5927,55 +5710,57 @@ private static class g_type_module_register_flags {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_module_register_flags(GTypeModule *module, const gchar *name, const GFlagsValue *const_static_values)
+ * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
* }
*/
- public static FunctionDescriptor g_type_module_register_flags$descriptor() {
- return g_type_module_register_flags.DESC;
+ public static FunctionDescriptor vips_target_new_to_descriptor$descriptor() {
+ return vips_target_new_to_descriptor.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_module_register_flags(GTypeModule *module, const gchar *name, const GFlagsValue *const_static_values)
+ * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
* }
*/
- public static MethodHandle g_type_module_register_flags$handle() {
- return g_type_module_register_flags.HANDLE;
+ public static MethodHandle vips_target_new_to_descriptor$handle() {
+ return vips_target_new_to_descriptor.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_module_register_flags(GTypeModule *module, const gchar *name, const GFlagsValue *const_static_values)
+ * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
* }
*/
- public static MemorySegment g_type_module_register_flags$address() {
- return g_type_module_register_flags.ADDR;
+ public static MemorySegment vips_target_new_to_descriptor$address() {
+ return vips_target_new_to_descriptor.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_module_register_flags(GTypeModule *module, const gchar *name, const GFlagsValue *const_static_values)
+ * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
* }
*/
- public static long g_type_module_register_flags(MemorySegment module, MemorySegment name, MemorySegment const_static_values) {
- var mh$ = g_type_module_register_flags.HANDLE;
+ public static MemorySegment vips_target_new_to_descriptor(int descriptor) {
+ var mh$ = vips_target_new_to_descriptor.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_module_register_flags", module, name, const_static_values);
+ traceDowncall("vips_target_new_to_descriptor", descriptor);
}
- return (long)mh$.invokeExact(module, name, const_static_values);
+ return (MemorySegment)mh$.invokeExact(descriptor);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_plugin_get_type {
+ private static class vips_target_new_to_file {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_plugin_get_type");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_file");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -5983,56 +5768,55 @@ private static class g_type_plugin_get_type {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern GType g_type_plugin_get_type()
+ * extern VipsTarget *vips_target_new_to_file(const char *filename)
* }
*/
- public static FunctionDescriptor g_type_plugin_get_type$descriptor() {
- return g_type_plugin_get_type.DESC;
+ public static FunctionDescriptor vips_target_new_to_file$descriptor() {
+ return vips_target_new_to_file.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern GType g_type_plugin_get_type()
+ * extern VipsTarget *vips_target_new_to_file(const char *filename)
* }
*/
- public static MethodHandle g_type_plugin_get_type$handle() {
- return g_type_plugin_get_type.HANDLE;
+ public static MethodHandle vips_target_new_to_file$handle() {
+ return vips_target_new_to_file.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern GType g_type_plugin_get_type()
+ * extern VipsTarget *vips_target_new_to_file(const char *filename)
* }
*/
- public static MemorySegment g_type_plugin_get_type$address() {
- return g_type_plugin_get_type.ADDR;
+ public static MemorySegment vips_target_new_to_file$address() {
+ return vips_target_new_to_file.ADDR;
}
/**
* {@snippet lang=c :
- * extern GType g_type_plugin_get_type()
+ * extern VipsTarget *vips_target_new_to_file(const char *filename)
* }
*/
- public static long g_type_plugin_get_type() {
- var mh$ = g_type_plugin_get_type.HANDLE;
+ public static MemorySegment vips_target_new_to_file(MemorySegment filename) {
+ var mh$ = vips_target_new_to_file.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_plugin_get_type");
+ traceDowncall("vips_target_new_to_file", filename);
}
- return (long)mh$.invokeExact();
+ return (MemorySegment)mh$.invokeExact(filename);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_plugin_use {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
+ private static class vips_target_new_to_memory {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_plugin_use");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_memory");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -6040,56 +5824,57 @@ private static class g_type_plugin_use {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_plugin_use(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_to_memory()
* }
*/
- public static FunctionDescriptor g_type_plugin_use$descriptor() {
- return g_type_plugin_use.DESC;
+ public static FunctionDescriptor vips_target_new_to_memory$descriptor() {
+ return vips_target_new_to_memory.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_plugin_use(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_to_memory()
* }
*/
- public static MethodHandle g_type_plugin_use$handle() {
- return g_type_plugin_use.HANDLE;
+ public static MethodHandle vips_target_new_to_memory$handle() {
+ return vips_target_new_to_memory.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_plugin_use(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_to_memory()
* }
*/
- public static MemorySegment g_type_plugin_use$address() {
- return g_type_plugin_use.ADDR;
+ public static MemorySegment vips_target_new_to_memory$address() {
+ return vips_target_new_to_memory.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_plugin_use(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_to_memory()
* }
*/
- public static void g_type_plugin_use(MemorySegment plugin) {
- var mh$ = g_type_plugin_use.HANDLE;
+ public static MemorySegment vips_target_new_to_memory() {
+ var mh$ = vips_target_new_to_memory.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_plugin_use", plugin);
+ traceDowncall("vips_target_new_to_memory");
}
- mh$.invokeExact(plugin);
+ return (MemorySegment)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_plugin_unuse {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
+ private static class vips_target_new_temp {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_plugin_unuse");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_temp");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -6097,59 +5882,55 @@ private static class g_type_plugin_unuse {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_plugin_unuse(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
* }
*/
- public static FunctionDescriptor g_type_plugin_unuse$descriptor() {
- return g_type_plugin_unuse.DESC;
+ public static FunctionDescriptor vips_target_new_temp$descriptor() {
+ return vips_target_new_temp.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_plugin_unuse(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
* }
*/
- public static MethodHandle g_type_plugin_unuse$handle() {
- return g_type_plugin_unuse.HANDLE;
+ public static MethodHandle vips_target_new_temp$handle() {
+ return vips_target_new_temp.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_plugin_unuse(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
* }
*/
- public static MemorySegment g_type_plugin_unuse$address() {
- return g_type_plugin_unuse.ADDR;
+ public static MemorySegment vips_target_new_temp$address() {
+ return vips_target_new_temp.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_plugin_unuse(GTypePlugin *plugin)
+ * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
* }
*/
- public static void g_type_plugin_unuse(MemorySegment plugin) {
- var mh$ = g_type_plugin_unuse.HANDLE;
+ public static MemorySegment vips_target_new_temp(MemorySegment target) {
+ var mh$ = vips_target_new_temp.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_plugin_unuse", plugin);
+ traceDowncall("vips_target_new_temp", target);
}
- mh$.invokeExact(plugin);
+ return (MemorySegment)mh$.invokeExact(target);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class g_type_plugin_complete_type_info {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
+ private static class vips_target_custom_new {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_plugin_complete_type_info");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_custom_new");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -6157,6592 +5938,667 @@ private static class g_type_plugin_complete_type_info {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_type_info(GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table)
+ * extern VipsTargetCustom *vips_target_custom_new()
* }
*/
- public static FunctionDescriptor g_type_plugin_complete_type_info$descriptor() {
- return g_type_plugin_complete_type_info.DESC;
+ public static FunctionDescriptor vips_target_custom_new$descriptor() {
+ return vips_target_custom_new.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_type_info(GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table)
+ * extern VipsTargetCustom *vips_target_custom_new()
* }
*/
- public static MethodHandle g_type_plugin_complete_type_info$handle() {
- return g_type_plugin_complete_type_info.HANDLE;
+ public static MethodHandle vips_target_custom_new$handle() {
+ return vips_target_custom_new.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_type_info(GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table)
+ * extern VipsTargetCustom *vips_target_custom_new()
* }
*/
- public static MemorySegment g_type_plugin_complete_type_info$address() {
- return g_type_plugin_complete_type_info.ADDR;
+ public static MemorySegment vips_target_custom_new$address() {
+ return vips_target_custom_new.ADDR;
}
/**
* {@snippet lang=c :
- * extern void g_type_plugin_complete_type_info(GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table)
+ * extern VipsTargetCustom *vips_target_custom_new()
* }
*/
- public static void g_type_plugin_complete_type_info(MemorySegment plugin, long g_type, MemorySegment info, MemorySegment value_table) {
- var mh$ = g_type_plugin_complete_type_info.HANDLE;
+ public static MemorySegment vips_target_custom_new() {
+ var mh$ = vips_target_custom_new.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_plugin_complete_type_info", plugin, g_type, info, value_table);
+ traceDowncall("vips_target_custom_new");
}
- mh$.invokeExact(plugin, g_type, info, value_table);
+ return (MemorySegment)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
-
- private static class g_type_plugin_complete_interface_info {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_type_plugin_complete_interface_info");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
+ private static final int VIPS_REGION_NONE = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_interface_info(GTypePlugin *plugin, GType instance_type, GType interface_type, GInterfaceInfo *info)
+ * enum _RegionType.VIPS_REGION_NONE = 0
* }
*/
- public static FunctionDescriptor g_type_plugin_complete_interface_info$descriptor() {
- return g_type_plugin_complete_interface_info.DESC;
+ public static int VIPS_REGION_NONE() {
+ return VIPS_REGION_NONE;
}
-
+ private static final int VIPS_REGION_BUFFER = (int)1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_interface_info(GTypePlugin *plugin, GType instance_type, GType interface_type, GInterfaceInfo *info)
+ * enum _RegionType.VIPS_REGION_BUFFER = 1
* }
*/
- public static MethodHandle g_type_plugin_complete_interface_info$handle() {
- return g_type_plugin_complete_interface_info.HANDLE;
+ public static int VIPS_REGION_BUFFER() {
+ return VIPS_REGION_BUFFER;
}
-
+ private static final int VIPS_REGION_OTHER_REGION = (int)2L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_type_plugin_complete_interface_info(GTypePlugin *plugin, GType instance_type, GType interface_type, GInterfaceInfo *info)
+ * enum _RegionType.VIPS_REGION_OTHER_REGION = 2
* }
*/
- public static MemorySegment g_type_plugin_complete_interface_info$address() {
- return g_type_plugin_complete_interface_info.ADDR;
+ public static int VIPS_REGION_OTHER_REGION() {
+ return VIPS_REGION_OTHER_REGION;
}
-
+ private static final int VIPS_REGION_OTHER_IMAGE = (int)3L;
/**
* {@snippet lang=c :
- * extern void g_type_plugin_complete_interface_info(GTypePlugin *plugin, GType instance_type, GType interface_type, GInterfaceInfo *info)
+ * enum _RegionType.VIPS_REGION_OTHER_IMAGE = 3
* }
*/
- public static void g_type_plugin_complete_interface_info(MemorySegment plugin, long instance_type, long interface_type, MemorySegment info) {
- var mh$ = g_type_plugin_complete_interface_info.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_type_plugin_complete_interface_info", plugin, instance_type, interface_type, info);
- }
- mh$.invokeExact(plugin, instance_type, interface_type, info);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_REGION_OTHER_IMAGE() {
+ return VIPS_REGION_OTHER_IMAGE;
}
-
- private static class g_value_set_boolean {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_boolean");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static final int VIPS_REGION_WINDOW = (int)4L;
+ /**
+ * {@snippet lang=c :
+ * enum _RegionType.VIPS_REGION_WINDOW = 4
+ * }
+ */
+ public static int VIPS_REGION_WINDOW() {
+ return VIPS_REGION_WINDOW;
}
-
+ private static final int VIPS_REGION_SHRINK_MEAN = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
+ * enum .VIPS_REGION_SHRINK_MEAN = 0
* }
*/
- public static FunctionDescriptor g_value_set_boolean$descriptor() {
- return g_value_set_boolean.DESC;
+ public static int VIPS_REGION_SHRINK_MEAN() {
+ return VIPS_REGION_SHRINK_MEAN;
}
-
+ private static final int VIPS_REGION_SHRINK_MEDIAN = (int)1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
+ * enum .VIPS_REGION_SHRINK_MEDIAN = 1
* }
*/
- public static MethodHandle g_value_set_boolean$handle() {
- return g_value_set_boolean.HANDLE;
+ public static int VIPS_REGION_SHRINK_MEDIAN() {
+ return VIPS_REGION_SHRINK_MEDIAN;
}
-
+ private static final int VIPS_REGION_SHRINK_MODE = (int)2L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
+ * enum .VIPS_REGION_SHRINK_MODE = 2
* }
*/
- public static MemorySegment g_value_set_boolean$address() {
- return g_value_set_boolean.ADDR;
+ public static int VIPS_REGION_SHRINK_MODE() {
+ return VIPS_REGION_SHRINK_MODE;
}
-
+ private static final int VIPS_REGION_SHRINK_MAX = (int)3L;
/**
* {@snippet lang=c :
- * extern void g_value_set_boolean(GValue *value, gboolean v_boolean)
+ * enum .VIPS_REGION_SHRINK_MAX = 3
* }
*/
- public static void g_value_set_boolean(MemorySegment value, int v_boolean) {
- var mh$ = g_value_set_boolean.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_boolean", value, v_boolean);
- }
- mh$.invokeExact(value, v_boolean);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_boolean {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_boolean");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_REGION_SHRINK_MAX() {
+ return VIPS_REGION_SHRINK_MAX;
}
-
+ private static final int VIPS_REGION_SHRINK_MIN = (int)4L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern gboolean g_value_get_boolean(const GValue *value)
+ * enum .VIPS_REGION_SHRINK_MIN = 4
* }
*/
- public static FunctionDescriptor g_value_get_boolean$descriptor() {
- return g_value_get_boolean.DESC;
+ public static int VIPS_REGION_SHRINK_MIN() {
+ return VIPS_REGION_SHRINK_MIN;
}
-
+ private static final int VIPS_REGION_SHRINK_NEAREST = (int)5L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean g_value_get_boolean(const GValue *value)
+ * enum .VIPS_REGION_SHRINK_NEAREST = 5
* }
*/
- public static MethodHandle g_value_get_boolean$handle() {
- return g_value_get_boolean.HANDLE;
+ public static int VIPS_REGION_SHRINK_NEAREST() {
+ return VIPS_REGION_SHRINK_NEAREST;
}
-
+ private static final int VIPS_REGION_SHRINK_LAST = (int)6L;
/**
- * Address for:
* {@snippet lang=c :
- * extern gboolean g_value_get_boolean(const GValue *value)
+ * enum .VIPS_REGION_SHRINK_LAST = 6
* }
*/
- public static MemorySegment g_value_get_boolean$address() {
- return g_value_get_boolean.ADDR;
+ public static int VIPS_REGION_SHRINK_LAST() {
+ return VIPS_REGION_SHRINK_LAST;
}
-
+ private static final int VIPS_DEMAND_STYLE_ERROR = (int)-1L;
/**
* {@snippet lang=c :
- * extern gboolean g_value_get_boolean(const GValue *value)
+ * enum .VIPS_DEMAND_STYLE_ERROR = -1
* }
*/
- public static int g_value_get_boolean(MemorySegment value) {
- var mh$ = g_value_get_boolean.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_boolean", value);
- }
- return (int)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_int {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_int");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_DEMAND_STYLE_ERROR() {
+ return VIPS_DEMAND_STYLE_ERROR;
}
-
+ private static final int VIPS_DEMAND_STYLE_SMALLTILE = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_int(GValue *value, gint v_int)
+ * enum .VIPS_DEMAND_STYLE_SMALLTILE = 0
* }
*/
- public static FunctionDescriptor g_value_set_int$descriptor() {
- return g_value_set_int.DESC;
+ public static int VIPS_DEMAND_STYLE_SMALLTILE() {
+ return VIPS_DEMAND_STYLE_SMALLTILE;
}
-
+ private static final int VIPS_DEMAND_STYLE_FATSTRIP = (int)1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_int(GValue *value, gint v_int)
+ * enum .VIPS_DEMAND_STYLE_FATSTRIP = 1
* }
*/
- public static MethodHandle g_value_set_int$handle() {
- return g_value_set_int.HANDLE;
+ public static int VIPS_DEMAND_STYLE_FATSTRIP() {
+ return VIPS_DEMAND_STYLE_FATSTRIP;
}
-
+ private static final int VIPS_DEMAND_STYLE_THINSTRIP = (int)2L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_int(GValue *value, gint v_int)
+ * enum .VIPS_DEMAND_STYLE_THINSTRIP = 2
* }
*/
- public static MemorySegment g_value_set_int$address() {
- return g_value_set_int.ADDR;
+ public static int VIPS_DEMAND_STYLE_THINSTRIP() {
+ return VIPS_DEMAND_STYLE_THINSTRIP;
}
-
+ private static final int VIPS_DEMAND_STYLE_ANY = (int)3L;
/**
* {@snippet lang=c :
- * extern void g_value_set_int(GValue *value, gint v_int)
+ * enum .VIPS_DEMAND_STYLE_ANY = 3
* }
*/
- public static void g_value_set_int(MemorySegment value, int v_int) {
- var mh$ = g_value_set_int.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_int", value, v_int);
- }
- mh$.invokeExact(value, v_int);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_int {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_int");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_DEMAND_STYLE_ANY() {
+ return VIPS_DEMAND_STYLE_ANY;
}
-
+ private static final int VIPS_IMAGE_ERROR = (int)-1L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern gint g_value_get_int(const GValue *value)
+ * enum .VIPS_IMAGE_ERROR = -1
* }
*/
- public static FunctionDescriptor g_value_get_int$descriptor() {
- return g_value_get_int.DESC;
+ public static int VIPS_IMAGE_ERROR() {
+ return VIPS_IMAGE_ERROR;
}
-
+ private static final int VIPS_IMAGE_NONE = (int)0L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern gint g_value_get_int(const GValue *value)
+ * enum .VIPS_IMAGE_NONE = 0
* }
*/
- public static MethodHandle g_value_get_int$handle() {
- return g_value_get_int.HANDLE;
+ public static int VIPS_IMAGE_NONE() {
+ return VIPS_IMAGE_NONE;
}
-
+ private static final int VIPS_IMAGE_SETBUF = (int)1L;
/**
- * Address for:
* {@snippet lang=c :
- * extern gint g_value_get_int(const GValue *value)
+ * enum .VIPS_IMAGE_SETBUF = 1
* }
*/
- public static MemorySegment g_value_get_int$address() {
- return g_value_get_int.ADDR;
+ public static int VIPS_IMAGE_SETBUF() {
+ return VIPS_IMAGE_SETBUF;
}
-
+ private static final int VIPS_IMAGE_SETBUF_FOREIGN = (int)2L;
/**
* {@snippet lang=c :
- * extern gint g_value_get_int(const GValue *value)
+ * enum .VIPS_IMAGE_SETBUF_FOREIGN = 2
* }
*/
- public static int g_value_get_int(MemorySegment value) {
- var mh$ = g_value_get_int.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_int", value);
- }
- return (int)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_long {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_long");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_IMAGE_SETBUF_FOREIGN() {
+ return VIPS_IMAGE_SETBUF_FOREIGN;
}
-
+ private static final int VIPS_IMAGE_OPENIN = (int)3L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_long(GValue *value, glong v_long)
+ * enum .VIPS_IMAGE_OPENIN = 3
* }
*/
- public static FunctionDescriptor g_value_set_long$descriptor() {
- return g_value_set_long.DESC;
+ public static int VIPS_IMAGE_OPENIN() {
+ return VIPS_IMAGE_OPENIN;
}
-
+ private static final int VIPS_IMAGE_MMAPIN = (int)4L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_long(GValue *value, glong v_long)
+ * enum .VIPS_IMAGE_MMAPIN = 4
* }
*/
- public static MethodHandle g_value_set_long$handle() {
- return g_value_set_long.HANDLE;
+ public static int VIPS_IMAGE_MMAPIN() {
+ return VIPS_IMAGE_MMAPIN;
}
-
+ private static final int VIPS_IMAGE_MMAPINRW = (int)5L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_long(GValue *value, glong v_long)
+ * enum .VIPS_IMAGE_MMAPINRW = 5
* }
*/
- public static MemorySegment g_value_set_long$address() {
- return g_value_set_long.ADDR;
+ public static int VIPS_IMAGE_MMAPINRW() {
+ return VIPS_IMAGE_MMAPINRW;
}
-
+ private static final int VIPS_IMAGE_OPENOUT = (int)6L;
/**
* {@snippet lang=c :
- * extern void g_value_set_long(GValue *value, glong v_long)
+ * enum .VIPS_IMAGE_OPENOUT = 6
* }
*/
- public static void g_value_set_long(MemorySegment value, long v_long) {
- var mh$ = g_value_set_long.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_long", value, v_long);
- }
- mh$.invokeExact(value, v_long);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_long {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_long");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_IMAGE_OPENOUT() {
+ return VIPS_IMAGE_OPENOUT;
}
-
+ private static final int VIPS_IMAGE_PARTIAL = (int)7L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern glong g_value_get_long(const GValue *value)
+ * enum .VIPS_IMAGE_PARTIAL = 7
* }
*/
- public static FunctionDescriptor g_value_get_long$descriptor() {
- return g_value_get_long.DESC;
+ public static int VIPS_IMAGE_PARTIAL() {
+ return VIPS_IMAGE_PARTIAL;
}
-
+ private static final int VIPS_INTERPRETATION_ERROR = (int)-1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern glong g_value_get_long(const GValue *value)
+ * enum .VIPS_INTERPRETATION_ERROR = -1
* }
*/
- public static MethodHandle g_value_get_long$handle() {
- return g_value_get_long.HANDLE;
+ public static int VIPS_INTERPRETATION_ERROR() {
+ return VIPS_INTERPRETATION_ERROR;
}
-
+ private static final int VIPS_INTERPRETATION_MULTIBAND = (int)0L;
/**
- * Address for:
* {@snippet lang=c :
- * extern glong g_value_get_long(const GValue *value)
+ * enum .VIPS_INTERPRETATION_MULTIBAND = 0
* }
*/
- public static MemorySegment g_value_get_long$address() {
- return g_value_get_long.ADDR;
+ public static int VIPS_INTERPRETATION_MULTIBAND() {
+ return VIPS_INTERPRETATION_MULTIBAND;
}
-
+ private static final int VIPS_INTERPRETATION_B_W = (int)1L;
/**
* {@snippet lang=c :
- * extern glong g_value_get_long(const GValue *value)
+ * enum .VIPS_INTERPRETATION_B_W = 1
* }
*/
- public static long g_value_get_long(MemorySegment value) {
- var mh$ = g_value_get_long.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_long", value);
- }
- return (long)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_int64 {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_int64");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_INTERPRETATION_B_W() {
+ return VIPS_INTERPRETATION_B_W;
}
-
+ private static final int VIPS_INTERPRETATION_HISTOGRAM = (int)10L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_int64(GValue *value, gint64 v_int64)
+ * enum .VIPS_INTERPRETATION_HISTOGRAM = 10
* }
*/
- public static FunctionDescriptor g_value_set_int64$descriptor() {
- return g_value_set_int64.DESC;
+ public static int VIPS_INTERPRETATION_HISTOGRAM() {
+ return VIPS_INTERPRETATION_HISTOGRAM;
}
-
+ private static final int VIPS_INTERPRETATION_XYZ = (int)12L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_int64(GValue *value, gint64 v_int64)
+ * enum .VIPS_INTERPRETATION_XYZ = 12
* }
*/
- public static MethodHandle g_value_set_int64$handle() {
- return g_value_set_int64.HANDLE;
+ public static int VIPS_INTERPRETATION_XYZ() {
+ return VIPS_INTERPRETATION_XYZ;
}
-
+ private static final int VIPS_INTERPRETATION_LAB = (int)13L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_int64(GValue *value, gint64 v_int64)
+ * enum .VIPS_INTERPRETATION_LAB = 13
* }
*/
- public static MemorySegment g_value_set_int64$address() {
- return g_value_set_int64.ADDR;
+ public static int VIPS_INTERPRETATION_LAB() {
+ return VIPS_INTERPRETATION_LAB;
}
-
+ private static final int VIPS_INTERPRETATION_CMYK = (int)15L;
/**
* {@snippet lang=c :
- * extern void g_value_set_int64(GValue *value, gint64 v_int64)
+ * enum .VIPS_INTERPRETATION_CMYK = 15
* }
*/
- public static void g_value_set_int64(MemorySegment value, long v_int64) {
- var mh$ = g_value_set_int64.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_int64", value, v_int64);
- }
- mh$.invokeExact(value, v_int64);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_int64 {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_int64");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_INTERPRETATION_CMYK() {
+ return VIPS_INTERPRETATION_CMYK;
}
-
+ private static final int VIPS_INTERPRETATION_LABQ = (int)16L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern gint64 g_value_get_int64(const GValue *value)
+ * enum .VIPS_INTERPRETATION_LABQ = 16
* }
*/
- public static FunctionDescriptor g_value_get_int64$descriptor() {
- return g_value_get_int64.DESC;
+ public static int VIPS_INTERPRETATION_LABQ() {
+ return VIPS_INTERPRETATION_LABQ;
}
-
+ private static final int VIPS_INTERPRETATION_RGB = (int)17L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern gint64 g_value_get_int64(const GValue *value)
+ * enum .VIPS_INTERPRETATION_RGB = 17
* }
*/
- public static MethodHandle g_value_get_int64$handle() {
- return g_value_get_int64.HANDLE;
+ public static int VIPS_INTERPRETATION_RGB() {
+ return VIPS_INTERPRETATION_RGB;
}
-
+ private static final int VIPS_INTERPRETATION_CMC = (int)18L;
/**
- * Address for:
* {@snippet lang=c :
- * extern gint64 g_value_get_int64(const GValue *value)
+ * enum .VIPS_INTERPRETATION_CMC = 18
* }
*/
- public static MemorySegment g_value_get_int64$address() {
- return g_value_get_int64.ADDR;
+ public static int VIPS_INTERPRETATION_CMC() {
+ return VIPS_INTERPRETATION_CMC;
}
-
+ private static final int VIPS_INTERPRETATION_LCH = (int)19L;
/**
* {@snippet lang=c :
- * extern gint64 g_value_get_int64(const GValue *value)
+ * enum .VIPS_INTERPRETATION_LCH = 19
* }
*/
- public static long g_value_get_int64(MemorySegment value) {
- var mh$ = g_value_get_int64.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_int64", value);
- }
- return (long)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_double {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_DOUBLE
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_double");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_INTERPRETATION_LCH() {
+ return VIPS_INTERPRETATION_LCH;
}
-
+ private static final int VIPS_INTERPRETATION_LABS = (int)21L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_double(GValue *value, gdouble v_double)
+ * enum .VIPS_INTERPRETATION_LABS = 21
* }
*/
- public static FunctionDescriptor g_value_set_double$descriptor() {
- return g_value_set_double.DESC;
+ public static int VIPS_INTERPRETATION_LABS() {
+ return VIPS_INTERPRETATION_LABS;
}
-
+ private static final int VIPS_INTERPRETATION_sRGB = (int)22L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_double(GValue *value, gdouble v_double)
+ * enum .VIPS_INTERPRETATION_sRGB = 22
* }
*/
- public static MethodHandle g_value_set_double$handle() {
- return g_value_set_double.HANDLE;
+ public static int VIPS_INTERPRETATION_sRGB() {
+ return VIPS_INTERPRETATION_sRGB;
}
-
+ private static final int VIPS_INTERPRETATION_YXY = (int)23L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_double(GValue *value, gdouble v_double)
+ * enum .VIPS_INTERPRETATION_YXY = 23
* }
*/
- public static MemorySegment g_value_set_double$address() {
- return g_value_set_double.ADDR;
+ public static int VIPS_INTERPRETATION_YXY() {
+ return VIPS_INTERPRETATION_YXY;
}
-
+ private static final int VIPS_INTERPRETATION_FOURIER = (int)24L;
/**
* {@snippet lang=c :
- * extern void g_value_set_double(GValue *value, gdouble v_double)
+ * enum .VIPS_INTERPRETATION_FOURIER = 24
* }
*/
- public static void g_value_set_double(MemorySegment value, double v_double) {
- var mh$ = g_value_set_double.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_double", value, v_double);
- }
- mh$.invokeExact(value, v_double);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_double {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_DOUBLE,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_double");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_INTERPRETATION_FOURIER() {
+ return VIPS_INTERPRETATION_FOURIER;
}
-
+ private static final int VIPS_INTERPRETATION_RGB16 = (int)25L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern gdouble g_value_get_double(const GValue *value)
+ * enum .VIPS_INTERPRETATION_RGB16 = 25
* }
*/
- public static FunctionDescriptor g_value_get_double$descriptor() {
- return g_value_get_double.DESC;
+ public static int VIPS_INTERPRETATION_RGB16() {
+ return VIPS_INTERPRETATION_RGB16;
}
-
+ private static final int VIPS_INTERPRETATION_GREY16 = (int)26L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern gdouble g_value_get_double(const GValue *value)
+ * enum .VIPS_INTERPRETATION_GREY16 = 26
* }
*/
- public static MethodHandle g_value_get_double$handle() {
- return g_value_get_double.HANDLE;
+ public static int VIPS_INTERPRETATION_GREY16() {
+ return VIPS_INTERPRETATION_GREY16;
}
-
+ private static final int VIPS_INTERPRETATION_MATRIX = (int)27L;
/**
- * Address for:
* {@snippet lang=c :
- * extern gdouble g_value_get_double(const GValue *value)
+ * enum .VIPS_INTERPRETATION_MATRIX = 27
* }
*/
- public static MemorySegment g_value_get_double$address() {
- return g_value_get_double.ADDR;
+ public static int VIPS_INTERPRETATION_MATRIX() {
+ return VIPS_INTERPRETATION_MATRIX;
}
-
+ private static final int VIPS_INTERPRETATION_scRGB = (int)28L;
/**
* {@snippet lang=c :
- * extern gdouble g_value_get_double(const GValue *value)
+ * enum .VIPS_INTERPRETATION_scRGB = 28
* }
*/
- public static double g_value_get_double(MemorySegment value) {
- var mh$ = g_value_get_double.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_double", value);
- }
- return (double)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_INTERPRETATION_scRGB() {
+ return VIPS_INTERPRETATION_scRGB;
}
-
- private static class g_value_set_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ private static final int VIPS_INTERPRETATION_HSV = (int)29L;
+ /**
+ * {@snippet lang=c :
+ * enum .VIPS_INTERPRETATION_HSV = 29
+ * }
+ */
+ public static int VIPS_INTERPRETATION_HSV() {
+ return VIPS_INTERPRETATION_HSV;
}
-
+ private static final int VIPS_INTERPRETATION_LAST = (int)30L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern void g_value_set_string(GValue *value, const gchar *v_string)
+ * enum .VIPS_INTERPRETATION_LAST = 30
* }
*/
- public static FunctionDescriptor g_value_set_string$descriptor() {
- return g_value_set_string.DESC;
+ public static int VIPS_INTERPRETATION_LAST() {
+ return VIPS_INTERPRETATION_LAST;
}
-
+ private static final int VIPS_FORMAT_NOTSET = (int)-1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern void g_value_set_string(GValue *value, const gchar *v_string)
+ * enum .VIPS_FORMAT_NOTSET = -1
* }
*/
- public static MethodHandle g_value_set_string$handle() {
- return g_value_set_string.HANDLE;
+ public static int VIPS_FORMAT_NOTSET() {
+ return VIPS_FORMAT_NOTSET;
}
-
+ private static final int VIPS_FORMAT_UCHAR = (int)0L;
/**
- * Address for:
* {@snippet lang=c :
- * extern void g_value_set_string(GValue *value, const gchar *v_string)
+ * enum .VIPS_FORMAT_UCHAR = 0
* }
*/
- public static MemorySegment g_value_set_string$address() {
- return g_value_set_string.ADDR;
+ public static int VIPS_FORMAT_UCHAR() {
+ return VIPS_FORMAT_UCHAR;
}
-
+ private static final int VIPS_FORMAT_CHAR = (int)1L;
/**
* {@snippet lang=c :
- * extern void g_value_set_string(GValue *value, const gchar *v_string)
+ * enum .VIPS_FORMAT_CHAR = 1
* }
*/
- public static void g_value_set_string(MemorySegment value, MemorySegment v_string) {
- var mh$ = g_value_set_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_string", value, v_string);
- }
- mh$.invokeExact(value, v_string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_interned_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_interned_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void g_value_set_interned_string(GValue *value, const gchar *v_string)
- * }
- */
- public static FunctionDescriptor g_value_set_interned_string$descriptor() {
- return g_value_set_interned_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void g_value_set_interned_string(GValue *value, const gchar *v_string)
- * }
- */
- public static MethodHandle g_value_set_interned_string$handle() {
- return g_value_set_interned_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void g_value_set_interned_string(GValue *value, const gchar *v_string)
- * }
- */
- public static MemorySegment g_value_set_interned_string$address() {
- return g_value_set_interned_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void g_value_set_interned_string(GValue *value, const gchar *v_string)
- * }
- */
- public static void g_value_set_interned_string(MemorySegment value, MemorySegment v_string) {
- var mh$ = g_value_set_interned_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_interned_string", value, v_string);
- }
- mh$.invokeExact(value, v_string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_get_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_get_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const gchar *g_value_get_string(const GValue *value)
- * }
- */
- public static FunctionDescriptor g_value_get_string$descriptor() {
- return g_value_get_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const gchar *g_value_get_string(const GValue *value)
- * }
- */
- public static MethodHandle g_value_get_string$handle() {
- return g_value_get_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const gchar *g_value_get_string(const GValue *value)
- * }
- */
- public static MemorySegment g_value_get_string$address() {
- return g_value_get_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const gchar *g_value_get_string(const GValue *value)
- * }
- */
- public static MemorySegment g_value_get_string(MemorySegment value) {
- var mh$ = g_value_get_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_get_string", value);
- }
- return (MemorySegment)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class g_value_set_string_take_ownership {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("g_value_set_string_take_ownership");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void g_value_set_string_take_ownership(GValue *value, gchar *v_string)
- * }
- */
- public static FunctionDescriptor g_value_set_string_take_ownership$descriptor() {
- return g_value_set_string_take_ownership.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void g_value_set_string_take_ownership(GValue *value, gchar *v_string)
- * }
- */
- public static MethodHandle g_value_set_string_take_ownership$handle() {
- return g_value_set_string_take_ownership.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void g_value_set_string_take_ownership(GValue *value, gchar *v_string)
- * }
- */
- public static MemorySegment g_value_set_string_take_ownership$address() {
- return g_value_set_string_take_ownership.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void g_value_set_string_take_ownership(GValue *value, gchar *v_string)
- * }
- */
- public static void g_value_set_string_take_ownership(MemorySegment value, MemorySegment v_string) {
- var mh$ = g_value_set_string_take_ownership.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("g_value_set_string_take_ownership", value, v_string);
- }
- mh$.invokeExact(value, v_string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- /**
- * {@snippet lang=c :
- * typedef GEnumClass *GEnumClass_autoptr
- * }
- */
- public static final AddressLayout GEnumClass_autoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GList *GEnumClass_listautoptr
- * }
- */
- public static final AddressLayout GEnumClass_listautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GSList *GEnumClass_slistautoptr
- * }
- */
- public static final AddressLayout GEnumClass_slistautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GQueue *GEnumClass_queueautoptr
- * }
- */
- public static final AddressLayout GEnumClass_queueautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GObject *GObject_autoptr
- * }
- */
- public static final AddressLayout GObject_autoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GList *GObject_listautoptr
- * }
- */
- public static final AddressLayout GObject_listautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GSList *GObject_slistautoptr
- * }
- */
- public static final AddressLayout GObject_slistautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GQueue *GObject_queueautoptr
- * }
- */
- public static final AddressLayout GObject_queueautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GParamSpec *GParamSpec_autoptr
- * }
- */
- public static final AddressLayout GParamSpec_autoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GList *GParamSpec_listautoptr
- * }
- */
- public static final AddressLayout GParamSpec_listautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GSList *GParamSpec_slistautoptr
- * }
- */
- public static final AddressLayout GParamSpec_slistautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GQueue *GParamSpec_queueautoptr
- * }
- */
- public static final AddressLayout GParamSpec_queueautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GTypeClass *GTypeClass_autoptr
- * }
- */
- public static final AddressLayout GTypeClass_autoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GList *GTypeClass_listautoptr
- * }
- */
- public static final AddressLayout GTypeClass_listautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GSList *GTypeClass_slistautoptr
- * }
- */
- public static final AddressLayout GTypeClass_slistautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GQueue *GTypeClass_queueautoptr
- * }
- */
- public static final AddressLayout GTypeClass_queueautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GInputStream *GInputStream_autoptr
- * }
- */
- public static final AddressLayout GInputStream_autoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GList *GInputStream_listautoptr
- * }
- */
- public static final AddressLayout GInputStream_listautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GSList *GInputStream_slistautoptr
- * }
- */
- public static final AddressLayout GInputStream_slistautoptr = VipsRaw.C_POINTER;
- /**
- * {@snippet lang=c :
- * typedef GQueue *GInputStream_queueautoptr
- * }
- */
- public static final AddressLayout GInputStream_queueautoptr = VipsRaw.C_POINTER;
- private static final int VIPS_PRECISION_INTEGER = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_PRECISION_INTEGER = 0
- * }
- */
- public static int VIPS_PRECISION_INTEGER() {
- return VIPS_PRECISION_INTEGER;
- }
- private static final int VIPS_PRECISION_FLOAT = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_PRECISION_FLOAT = 1
- * }
- */
- public static int VIPS_PRECISION_FLOAT() {
- return VIPS_PRECISION_FLOAT;
- }
- private static final int VIPS_PRECISION_APPROXIMATE = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_PRECISION_APPROXIMATE = 2
- * }
- */
- public static int VIPS_PRECISION_APPROXIMATE() {
- return VIPS_PRECISION_APPROXIMATE;
- }
- private static final int VIPS_PRECISION_LAST = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_PRECISION_LAST = 3
- * }
- */
- public static int VIPS_PRECISION_LAST() {
- return VIPS_PRECISION_LAST;
- }
-
- private static class vips_enum_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_enum_string(GType enm, int value)
- * }
- */
- public static FunctionDescriptor vips_enum_string$descriptor() {
- return vips_enum_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_enum_string(GType enm, int value)
- * }
- */
- public static MethodHandle vips_enum_string$handle() {
- return vips_enum_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_enum_string(GType enm, int value)
- * }
- */
- public static MemorySegment vips_enum_string$address() {
- return vips_enum_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_enum_string(GType enm, int value)
- * }
- */
- public static MemorySegment vips_enum_string(long enm, int value) {
- var mh$ = vips_enum_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_enum_string", enm, value);
- }
- return (MemorySegment)mh$.invokeExact(enm, value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_enum_nick {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_nick");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_enum_nick(GType enm, int value)
- * }
- */
- public static FunctionDescriptor vips_enum_nick$descriptor() {
- return vips_enum_nick.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_enum_nick(GType enm, int value)
- * }
- */
- public static MethodHandle vips_enum_nick$handle() {
- return vips_enum_nick.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_enum_nick(GType enm, int value)
- * }
- */
- public static MemorySegment vips_enum_nick$address() {
- return vips_enum_nick.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_enum_nick(GType enm, int value)
- * }
- */
- public static MemorySegment vips_enum_nick(long enm, int value) {
- var mh$ = vips_enum_nick.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_enum_nick", enm, value);
- }
- return (MemorySegment)mh$.invokeExact(enm, value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_enum_from_nick {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_enum_from_nick");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
- * }
- */
- public static FunctionDescriptor vips_enum_from_nick$descriptor() {
- return vips_enum_from_nick.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
- * }
- */
- public static MethodHandle vips_enum_from_nick$handle() {
- return vips_enum_from_nick.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
- * }
- */
- public static MemorySegment vips_enum_from_nick$address() {
- return vips_enum_from_nick.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_enum_from_nick(const char *domain, GType type, const char *str)
- * }
- */
- public static int vips_enum_from_nick(MemorySegment domain, long type, MemorySegment str) {
- var mh$ = vips_enum_from_nick.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_enum_from_nick", domain, type, str);
- }
- return (int)mh$.invokeExact(domain, type, str);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_filename_suffix_match {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_suffix_match");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
- * }
- */
- public static FunctionDescriptor vips_filename_suffix_match$descriptor() {
- return vips_filename_suffix_match.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
- * }
- */
- public static MethodHandle vips_filename_suffix_match$handle() {
- return vips_filename_suffix_match.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
- * }
- */
- public static MemorySegment vips_filename_suffix_match$address() {
- return vips_filename_suffix_match.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_filename_suffix_match(const char *path, const char *suffixes[])
- * }
- */
- public static int vips_filename_suffix_match(MemorySegment path, MemorySegment suffixes) {
- var mh$ = vips_filename_suffix_match.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_filename_suffix_match", path, suffixes);
- }
- return (int)mh$.invokeExact(path, suffixes);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- private static final int VIPS_TOKEN_LEFT = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_TOKEN_LEFT = 1
- * }
- */
- public static int VIPS_TOKEN_LEFT() {
- return VIPS_TOKEN_LEFT;
- }
- private static final int VIPS_TOKEN_RIGHT = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_TOKEN_RIGHT = 2
- * }
- */
- public static int VIPS_TOKEN_RIGHT() {
- return VIPS_TOKEN_RIGHT;
- }
- private static final int VIPS_TOKEN_STRING = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_TOKEN_STRING = 3
- * }
- */
- public static int VIPS_TOKEN_STRING() {
- return VIPS_TOKEN_STRING;
- }
- private static final int VIPS_TOKEN_EQUALS = (int)4L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_TOKEN_EQUALS = 4
- * }
- */
- public static int VIPS_TOKEN_EQUALS() {
- return VIPS_TOKEN_EQUALS;
- }
- private static final int VIPS_TOKEN_COMMA = (int)5L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_TOKEN_COMMA = 5
- * }
- */
- public static int VIPS_TOKEN_COMMA() {
- return VIPS_TOKEN_COMMA;
- }
- private static final int VIPS_ARGUMENT_NONE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_NONE = 0
- * }
- */
- public static int VIPS_ARGUMENT_NONE() {
- return VIPS_ARGUMENT_NONE;
- }
- private static final int VIPS_ARGUMENT_REQUIRED = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_REQUIRED = 1
- * }
- */
- public static int VIPS_ARGUMENT_REQUIRED() {
- return VIPS_ARGUMENT_REQUIRED;
- }
- private static final int VIPS_ARGUMENT_CONSTRUCT = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_CONSTRUCT = 2
- * }
- */
- public static int VIPS_ARGUMENT_CONSTRUCT() {
- return VIPS_ARGUMENT_CONSTRUCT;
- }
- private static final int VIPS_ARGUMENT_SET_ONCE = (int)4L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_SET_ONCE = 4
- * }
- */
- public static int VIPS_ARGUMENT_SET_ONCE() {
- return VIPS_ARGUMENT_SET_ONCE;
- }
- private static final int VIPS_ARGUMENT_SET_ALWAYS = (int)8L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_SET_ALWAYS = 8
- * }
- */
- public static int VIPS_ARGUMENT_SET_ALWAYS() {
- return VIPS_ARGUMENT_SET_ALWAYS;
- }
- private static final int VIPS_ARGUMENT_INPUT = (int)16L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_INPUT = 16
- * }
- */
- public static int VIPS_ARGUMENT_INPUT() {
- return VIPS_ARGUMENT_INPUT;
- }
- private static final int VIPS_ARGUMENT_OUTPUT = (int)32L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_OUTPUT = 32
- * }
- */
- public static int VIPS_ARGUMENT_OUTPUT() {
- return VIPS_ARGUMENT_OUTPUT;
- }
- private static final int VIPS_ARGUMENT_DEPRECATED = (int)64L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_DEPRECATED = 64
- * }
- */
- public static int VIPS_ARGUMENT_DEPRECATED() {
- return VIPS_ARGUMENT_DEPRECATED;
- }
- private static final int VIPS_ARGUMENT_MODIFY = (int)128L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_MODIFY = 128
- * }
- */
- public static int VIPS_ARGUMENT_MODIFY() {
- return VIPS_ARGUMENT_MODIFY;
- }
- private static final int VIPS_ARGUMENT_NON_HASHABLE = (int)256L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ARGUMENT_NON_HASHABLE = 256
- * }
- */
- public static int VIPS_ARGUMENT_NON_HASHABLE() {
- return VIPS_ARGUMENT_NON_HASHABLE;
- }
-
- private static class vips_object_get_args {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_args");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
- * }
- */
- public static FunctionDescriptor vips_object_get_args$descriptor() {
- return vips_object_get_args.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
- * }
- */
- public static MethodHandle vips_object_get_args$handle() {
- return vips_object_get_args.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
- * }
- */
- public static MemorySegment vips_object_get_args$address() {
- return vips_object_get_args.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_object_get_args(VipsObject *object, const char ***names, int **flags, int *n_args)
- * }
- */
- public static int vips_object_get_args(MemorySegment object, MemorySegment names, MemorySegment flags, MemorySegment n_args) {
- var mh$ = vips_object_get_args.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_args", object, names, flags, n_args);
- }
- return (int)mh$.invokeExact(object, names, flags, n_args);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_get_argument {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
- * }
- */
- public static FunctionDescriptor vips_object_get_argument$descriptor() {
- return vips_object_get_argument.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
- * }
- */
- public static MethodHandle vips_object_get_argument$handle() {
- return vips_object_get_argument.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
- * }
- */
- public static MemorySegment vips_object_get_argument$address() {
- return vips_object_get_argument.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_object_get_argument(VipsObject *object, const char *name, GParamSpec **pspec, VipsArgumentClass **argument_class, VipsArgumentInstance **argument_instance)
- * }
- */
- public static int vips_object_get_argument(MemorySegment object, MemorySegment name, MemorySegment pspec, MemorySegment argument_class, MemorySegment argument_instance) {
- var mh$ = vips_object_get_argument.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_argument", object, name, pspec, argument_class, argument_instance);
- }
- return (int)mh$.invokeExact(object, name, pspec, argument_class, argument_instance);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_get_argument_flags {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_flags");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
- * }
- */
- public static FunctionDescriptor vips_object_get_argument_flags$descriptor() {
- return vips_object_get_argument_flags.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
- * }
- */
- public static MethodHandle vips_object_get_argument_flags$handle() {
- return vips_object_get_argument_flags.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
- * }
- */
- public static MemorySegment vips_object_get_argument_flags$address() {
- return vips_object_get_argument_flags.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsArgumentFlags vips_object_get_argument_flags(VipsObject *object, const char *name)
- * }
- */
- public static int vips_object_get_argument_flags(MemorySegment object, MemorySegment name) {
- var mh$ = vips_object_get_argument_flags.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_argument_flags", object, name);
- }
- return (int)mh$.invokeExact(object, name);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_get_argument_priority {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_priority");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
- * }
- */
- public static FunctionDescriptor vips_object_get_argument_priority$descriptor() {
- return vips_object_get_argument_priority.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
- * }
- */
- public static MethodHandle vips_object_get_argument_priority$handle() {
- return vips_object_get_argument_priority.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
- * }
- */
- public static MemorySegment vips_object_get_argument_priority$address() {
- return vips_object_get_argument_priority.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_object_get_argument_priority(VipsObject *object, const char *name)
- * }
- */
- public static int vips_object_get_argument_priority(MemorySegment object, MemorySegment name) {
- var mh$ = vips_object_get_argument_priority.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_argument_priority", object, name);
- }
- return (int)mh$.invokeExact(object, name);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_is_null {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_is_null");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
- * }
- */
- public static FunctionDescriptor vips_value_is_null$descriptor() {
- return vips_value_is_null.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
- * }
- */
- public static MethodHandle vips_value_is_null$handle() {
- return vips_value_is_null.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
- * }
- */
- public static MemorySegment vips_value_is_null$address() {
- return vips_value_is_null.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern gboolean vips_value_is_null(GParamSpec *psoec, const GValue *value)
- * }
- */
- public static int vips_value_is_null(MemorySegment psoec, MemorySegment value) {
- var mh$ = vips_value_is_null.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_is_null", psoec, value);
- }
- return (int)mh$.invokeExact(psoec, value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_get_argument_to_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_argument_to_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
- * }
- */
- public static FunctionDescriptor vips_object_get_argument_to_string$descriptor() {
- return vips_object_get_argument_to_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
- * }
- */
- public static MethodHandle vips_object_get_argument_to_string$handle() {
- return vips_object_get_argument_to_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
- * }
- */
- public static MemorySegment vips_object_get_argument_to_string$address() {
- return vips_object_get_argument_to_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_object_get_argument_to_string(VipsObject *object, const char *name, const char *arg)
- * }
- */
- public static int vips_object_get_argument_to_string(MemorySegment object, MemorySegment name, MemorySegment arg) {
- var mh$ = vips_object_get_argument_to_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_argument_to_string", object, name, arg);
- }
- return (int)mh$.invokeExact(object, name, arg);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_set_from_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_set_from_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_object_set_from_string(VipsObject *object, const char *string)
- * }
- */
- public static FunctionDescriptor vips_object_set_from_string$descriptor() {
- return vips_object_set_from_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_object_set_from_string(VipsObject *object, const char *string)
- * }
- */
- public static MethodHandle vips_object_set_from_string$handle() {
- return vips_object_set_from_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_object_set_from_string(VipsObject *object, const char *string)
- * }
- */
- public static MemorySegment vips_object_set_from_string$address() {
- return vips_object_set_from_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_object_set_from_string(VipsObject *object, const char *string)
- * }
- */
- public static int vips_object_set_from_string(MemorySegment object, MemorySegment string) {
- var mh$ = vips_object_set_from_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_set_from_string", object, string);
- }
- return (int)mh$.invokeExact(object, string);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_type_map {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_map");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
- * }
- */
- public static FunctionDescriptor vips_type_map$descriptor() {
- return vips_type_map.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
- * }
- */
- public static MethodHandle vips_type_map$handle() {
- return vips_type_map.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
- * }
- */
- public static MemorySegment vips_type_map$address() {
- return vips_type_map.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_type_map(GType base, VipsTypeMap2Fn fn, void *a, void *b)
- * }
- */
- public static MemorySegment vips_type_map(long base, MemorySegment fn, MemorySegment a, MemorySegment b) {
- var mh$ = vips_type_map.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_type_map", base, fn, a, b);
- }
- return (MemorySegment)mh$.invokeExact(base, fn, a, b);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_type_map_all {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_map_all");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
- * }
- */
- public static FunctionDescriptor vips_type_map_all$descriptor() {
- return vips_type_map_all.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
- * }
- */
- public static MethodHandle vips_type_map_all$handle() {
- return vips_type_map_all.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
- * }
- */
- public static MemorySegment vips_type_map_all$address() {
- return vips_type_map_all.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_type_map_all(GType base, VipsTypeMapFn fn, void *a)
- * }
- */
- public static MemorySegment vips_type_map_all(long base, MemorySegment fn, MemorySegment a) {
- var mh$ = vips_type_map_all.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_type_map_all", base, fn, a);
- }
- return (MemorySegment)mh$.invokeExact(base, fn, a);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_type_depth {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_depth");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int vips_type_depth(GType type)
- * }
- */
- public static FunctionDescriptor vips_type_depth$descriptor() {
- return vips_type_depth.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int vips_type_depth(GType type)
- * }
- */
- public static MethodHandle vips_type_depth$handle() {
- return vips_type_depth.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int vips_type_depth(GType type)
- * }
- */
- public static MemorySegment vips_type_depth$address() {
- return vips_type_depth.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int vips_type_depth(GType type)
- * }
- */
- public static int vips_type_depth(long type) {
- var mh$ = vips_type_depth.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_type_depth", type);
- }
- return (int)mh$.invokeExact(type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_type_find {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_type_find");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_type_find(const char *basename, const char *nickname)
- * }
- */
- public static FunctionDescriptor vips_type_find$descriptor() {
- return vips_type_find.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_type_find(const char *basename, const char *nickname)
- * }
- */
- public static MethodHandle vips_type_find$handle() {
- return vips_type_find.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_type_find(const char *basename, const char *nickname)
- * }
- */
- public static MemorySegment vips_type_find$address() {
- return vips_type_find.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_type_find(const char *basename, const char *nickname)
- * }
- */
- public static long vips_type_find(MemorySegment basename, MemorySegment nickname) {
- var mh$ = vips_type_find.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_type_find", basename, nickname);
- }
- return (long)mh$.invokeExact(basename, nickname);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_nickname_find {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_nickname_find");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_nickname_find(GType type)
- * }
- */
- public static FunctionDescriptor vips_nickname_find$descriptor() {
- return vips_nickname_find.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_nickname_find(GType type)
- * }
- */
- public static MethodHandle vips_nickname_find$handle() {
- return vips_nickname_find.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_nickname_find(GType type)
- * }
- */
- public static MemorySegment vips_nickname_find$address() {
- return vips_nickname_find.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_nickname_find(GType type)
- * }
- */
- public static MemorySegment vips_nickname_find(long type) {
- var mh$ = vips_nickname_find.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_nickname_find", type);
- }
- return (MemorySegment)mh$.invokeExact(type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_unref_outputs {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_unref_outputs");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_object_unref_outputs(VipsObject *object)
- * }
- */
- public static FunctionDescriptor vips_object_unref_outputs$descriptor() {
- return vips_object_unref_outputs.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_object_unref_outputs(VipsObject *object)
- * }
- */
- public static MethodHandle vips_object_unref_outputs$handle() {
- return vips_object_unref_outputs.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_object_unref_outputs(VipsObject *object)
- * }
- */
- public static MemorySegment vips_object_unref_outputs$address() {
- return vips_object_unref_outputs.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_object_unref_outputs(VipsObject *object)
- * }
- */
- public static void vips_object_unref_outputs(MemorySegment object) {
- var mh$ = vips_object_unref_outputs.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_unref_outputs", object);
- }
- mh$.invokeExact(object);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_object_get_description {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_object_get_description");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_object_get_description(VipsObject *object)
- * }
- */
- public static FunctionDescriptor vips_object_get_description$descriptor() {
- return vips_object_get_description.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_object_get_description(VipsObject *object)
- * }
- */
- public static MethodHandle vips_object_get_description$handle() {
- return vips_object_get_description.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_object_get_description(VipsObject *object)
- * }
- */
- public static MemorySegment vips_object_get_description$address() {
- return vips_object_get_description.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_object_get_description(VipsObject *object)
- * }
- */
- public static MemorySegment vips_object_get_description(MemorySegment object) {
- var mh$ = vips_object_get_description.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_object_get_description", object);
- }
- return (MemorySegment)mh$.invokeExact(object);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_area_copy {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_copy");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsArea *vips_area_copy(VipsArea *area)
- * }
- */
- public static FunctionDescriptor vips_area_copy$descriptor() {
- return vips_area_copy.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsArea *vips_area_copy(VipsArea *area)
- * }
- */
- public static MethodHandle vips_area_copy$handle() {
- return vips_area_copy.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsArea *vips_area_copy(VipsArea *area)
- * }
- */
- public static MemorySegment vips_area_copy$address() {
- return vips_area_copy.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsArea *vips_area_copy(VipsArea *area)
- * }
- */
- public static MemorySegment vips_area_copy(MemorySegment area) {
- var mh$ = vips_area_copy.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_area_copy", area);
- }
- return (MemorySegment)mh$.invokeExact(area);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_area_unref {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_unref");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_area_unref(VipsArea *area)
- * }
- */
- public static FunctionDescriptor vips_area_unref$descriptor() {
- return vips_area_unref.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_area_unref(VipsArea *area)
- * }
- */
- public static MethodHandle vips_area_unref$handle() {
- return vips_area_unref.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_area_unref(VipsArea *area)
- * }
- */
- public static MemorySegment vips_area_unref$address() {
- return vips_area_unref.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_area_unref(VipsArea *area)
- * }
- */
- public static void vips_area_unref(MemorySegment area) {
- var mh$ = vips_area_unref.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_area_unref", area);
- }
- mh$.invokeExact(area);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_area_get_data {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_get_data");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static FunctionDescriptor vips_area_get_data$descriptor() {
- return vips_area_get_data.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MethodHandle vips_area_get_data$handle() {
- return vips_area_get_data.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MemorySegment vips_area_get_data$address() {
- return vips_area_get_data.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_area_get_data(VipsArea *area, size_t *length, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MemorySegment vips_area_get_data(MemorySegment area, MemorySegment length, MemorySegment n, MemorySegment type, MemorySegment sizeof_type) {
- var mh$ = vips_area_get_data.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_area_get_data", area, length, n, type, sizeof_type);
- }
- return (MemorySegment)mh$.invokeExact(area, length, n, type, sizeof_type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_area_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_area_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_area_get_type()
- * }
- */
- public static FunctionDescriptor vips_area_get_type$descriptor() {
- return vips_area_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_area_get_type()
- * }
- */
- public static MethodHandle vips_area_get_type$handle() {
- return vips_area_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_area_get_type()
- * }
- */
- public static MemorySegment vips_area_get_type$address() {
- return vips_area_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_area_get_type()
- * }
- */
- public static long vips_area_get_type() {
- var mh$ = vips_area_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_area_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_blob_new {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_new");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static FunctionDescriptor vips_blob_new$descriptor() {
- return vips_blob_new.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MethodHandle vips_blob_new$handle() {
- return vips_blob_new.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_blob_new$address() {
- return vips_blob_new.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_new(VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_blob_new(MemorySegment free_fn, MemorySegment data, long length) {
- var mh$ = vips_blob_new.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_blob_new", free_fn, data, length);
- }
- return (MemorySegment)mh$.invokeExact(free_fn, data, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_blob_copy {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_copy");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
- * }
- */
- public static FunctionDescriptor vips_blob_copy$descriptor() {
- return vips_blob_copy.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
- * }
- */
- public static MethodHandle vips_blob_copy$handle() {
- return vips_blob_copy.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_blob_copy$address() {
- return vips_blob_copy.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsBlob *vips_blob_copy(const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_blob_copy(MemorySegment data, long length) {
- var mh$ = vips_blob_copy.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_blob_copy", data, length);
- }
- return (MemorySegment)mh$.invokeExact(data, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_blob_get {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_get");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
- * }
- */
- public static FunctionDescriptor vips_blob_get$descriptor() {
- return vips_blob_get.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
- * }
- */
- public static MethodHandle vips_blob_get$handle() {
- return vips_blob_get.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
- * }
- */
- public static MemorySegment vips_blob_get$address() {
- return vips_blob_get.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const void *vips_blob_get(VipsBlob *blob, size_t *length)
- * }
- */
- public static MemorySegment vips_blob_get(MemorySegment blob, MemorySegment length) {
- var mh$ = vips_blob_get.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_blob_get", blob, length);
- }
- return (MemorySegment)mh$.invokeExact(blob, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_blob_set {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_set");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static FunctionDescriptor vips_blob_set$descriptor() {
- return vips_blob_set.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MethodHandle vips_blob_set$handle() {
- return vips_blob_set.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_blob_set$address() {
- return vips_blob_set.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_blob_set(VipsBlob *blob, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static void vips_blob_set(MemorySegment blob, MemorySegment free_fn, MemorySegment data, long length) {
- var mh$ = vips_blob_set.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_blob_set", blob, free_fn, data, length);
- }
- mh$.invokeExact(blob, free_fn, data, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_blob_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_blob_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_blob_get_type()
- * }
- */
- public static FunctionDescriptor vips_blob_get_type$descriptor() {
- return vips_blob_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_blob_get_type()
- * }
- */
- public static MethodHandle vips_blob_get_type$handle() {
- return vips_blob_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_blob_get_type()
- * }
- */
- public static MemorySegment vips_blob_get_type$address() {
- return vips_blob_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_blob_get_type()
- * }
- */
- public static long vips_blob_get_type() {
- var mh$ = vips_blob_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_blob_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_array_double_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_double_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_array_double_get_type()
- * }
- */
- public static FunctionDescriptor vips_array_double_get_type$descriptor() {
- return vips_array_double_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_array_double_get_type()
- * }
- */
- public static MethodHandle vips_array_double_get_type$handle() {
- return vips_array_double_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_array_double_get_type()
- * }
- */
- public static MemorySegment vips_array_double_get_type$address() {
- return vips_array_double_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_array_double_get_type()
- * }
- */
- public static long vips_array_double_get_type() {
- var mh$ = vips_array_double_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_array_double_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_array_int_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_int_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_array_int_get_type()
- * }
- */
- public static FunctionDescriptor vips_array_int_get_type$descriptor() {
- return vips_array_int_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_array_int_get_type()
- * }
- */
- public static MethodHandle vips_array_int_get_type$handle() {
- return vips_array_int_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_array_int_get_type()
- * }
- */
- public static MemorySegment vips_array_int_get_type$address() {
- return vips_array_int_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_array_int_get_type()
- * }
- */
- public static long vips_array_int_get_type() {
- var mh$ = vips_array_int_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_array_int_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_array_image_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_array_image_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_array_image_get_type()
- * }
- */
- public static FunctionDescriptor vips_array_image_get_type$descriptor() {
- return vips_array_image_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_array_image_get_type()
- * }
- */
- public static MethodHandle vips_array_image_get_type$handle() {
- return vips_array_image_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_array_image_get_type()
- * }
- */
- public static MemorySegment vips_array_image_get_type$address() {
- return vips_array_image_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_array_image_get_type()
- * }
- */
- public static long vips_array_image_get_type() {
- var mh$ = vips_array_image_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_array_image_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_area {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_area");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
- * }
- */
- public static FunctionDescriptor vips_value_set_area$descriptor() {
- return vips_value_set_area.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
- * }
- */
- public static MethodHandle vips_value_set_area$handle() {
- return vips_value_set_area.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
- * }
- */
- public static MemorySegment vips_value_set_area$address() {
- return vips_value_set_area.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data)
- * }
- */
- public static void vips_value_set_area(MemorySegment value, MemorySegment free_fn, MemorySegment data) {
- var mh$ = vips_value_set_area.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_area", value, free_fn, data);
- }
- mh$.invokeExact(value, free_fn, data);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_area {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_area");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_value_get_area(const GValue *value, size_t *length)
- * }
- */
- public static FunctionDescriptor vips_value_get_area$descriptor() {
- return vips_value_get_area.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_value_get_area(const GValue *value, size_t *length)
- * }
- */
- public static MethodHandle vips_value_get_area$handle() {
- return vips_value_get_area.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_value_get_area(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_area$address() {
- return vips_value_get_area.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_value_get_area(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_area(MemorySegment value, MemorySegment length) {
- var mh$ = vips_value_get_area.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_area", value, length);
- }
- return (MemorySegment)mh$.invokeExact(value, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_save_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_save_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_save_string(const GValue *value)
- * }
- */
- public static FunctionDescriptor vips_value_get_save_string$descriptor() {
- return vips_value_get_save_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_save_string(const GValue *value)
- * }
- */
- public static MethodHandle vips_value_get_save_string$handle() {
- return vips_value_get_save_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_save_string(const GValue *value)
- * }
- */
- public static MemorySegment vips_value_get_save_string$address() {
- return vips_value_get_save_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_value_get_save_string(const GValue *value)
- * }
- */
- public static MemorySegment vips_value_get_save_string(MemorySegment value) {
- var mh$ = vips_value_get_save_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_save_string", value);
- }
- return (MemorySegment)mh$.invokeExact(value);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_save_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_save_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_save_string(GValue *value, const char *str)
- * }
- */
- public static FunctionDescriptor vips_value_set_save_string$descriptor() {
- return vips_value_set_save_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_save_string(GValue *value, const char *str)
- * }
- */
- public static MethodHandle vips_value_set_save_string$handle() {
- return vips_value_set_save_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_save_string(GValue *value, const char *str)
- * }
- */
- public static MemorySegment vips_value_set_save_string$address() {
- return vips_value_set_save_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_save_string(GValue *value, const char *str)
- * }
- */
- public static void vips_value_set_save_string(MemorySegment value, MemorySegment str) {
- var mh$ = vips_value_set_save_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_save_string", value, str);
- }
- mh$.invokeExact(value, str);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- /**
- * Variadic invoker class for:
- * {@snippet lang=c :
- * extern void vips_value_set_save_stringf(GValue *value, const char *fmt, ...)
- * }
- */
- public static class vips_value_set_save_stringf {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_save_stringf");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_value_set_save_stringf(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern void vips_value_set_save_stringf(GValue *value, const char *fmt, ...)
- * }
- */
- public static vips_value_set_save_stringf makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_value_set_save_stringf(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
-
- public void apply(MemorySegment value, MemorySegment fmt, Object... x2) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_save_stringf", value, fmt, x2);
- }
- spreader.invokeExact(value, fmt, x2);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static class vips_value_get_ref_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_ref_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
- * }
- */
- public static FunctionDescriptor vips_value_get_ref_string$descriptor() {
- return vips_value_get_ref_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
- * }
- */
- public static MethodHandle vips_value_get_ref_string$handle() {
- return vips_value_get_ref_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_ref_string$address() {
- return vips_value_get_ref_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern const char *vips_value_get_ref_string(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_ref_string(MemorySegment value, MemorySegment length) {
- var mh$ = vips_value_get_ref_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_ref_string", value, length);
- }
- return (MemorySegment)mh$.invokeExact(value, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_ref_string {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_ref_string");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_ref_string(GValue *value, const char *str)
- * }
- */
- public static FunctionDescriptor vips_value_set_ref_string$descriptor() {
- return vips_value_set_ref_string.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_ref_string(GValue *value, const char *str)
- * }
- */
- public static MethodHandle vips_value_set_ref_string$handle() {
- return vips_value_set_ref_string.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_ref_string(GValue *value, const char *str)
- * }
- */
- public static MemorySegment vips_value_set_ref_string$address() {
- return vips_value_set_ref_string.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_ref_string(GValue *value, const char *str)
- * }
- */
- public static void vips_value_set_ref_string(MemorySegment value, MemorySegment str) {
- var mh$ = vips_value_set_ref_string.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_ref_string", value, str);
- }
- mh$.invokeExact(value, str);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_blob {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_blob");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_value_get_blob(const GValue *value, size_t *length)
- * }
- */
- public static FunctionDescriptor vips_value_get_blob$descriptor() {
- return vips_value_get_blob.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_value_get_blob(const GValue *value, size_t *length)
- * }
- */
- public static MethodHandle vips_value_get_blob$handle() {
- return vips_value_get_blob.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_value_get_blob(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_blob$address() {
- return vips_value_get_blob.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_value_get_blob(const GValue *value, size_t *length)
- * }
- */
- public static MemorySegment vips_value_get_blob(MemorySegment value, MemorySegment length) {
- var mh$ = vips_value_get_blob.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_blob", value, length);
- }
- return (MemorySegment)mh$.invokeExact(value, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_blob {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_blob");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static FunctionDescriptor vips_value_set_blob$descriptor() {
- return vips_value_set_blob.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MethodHandle vips_value_set_blob$handle() {
- return vips_value_set_blob.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static MemorySegment vips_value_set_blob$address() {
- return vips_value_set_blob.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_blob(GValue *value, VipsCallbackFn free_fn, const void *data, size_t length)
- * }
- */
- public static void vips_value_set_blob(MemorySegment value, MemorySegment free_fn, MemorySegment data, long length) {
- var mh$ = vips_value_set_blob.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_blob", value, free_fn, data, length);
- }
- mh$.invokeExact(value, free_fn, data, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_blob_free {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_blob_free");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
- * }
- */
- public static FunctionDescriptor vips_value_set_blob_free$descriptor() {
- return vips_value_set_blob_free.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
- * }
- */
- public static MethodHandle vips_value_set_blob_free$handle() {
- return vips_value_set_blob_free.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
- * }
- */
- public static MemorySegment vips_value_set_blob_free$address() {
- return vips_value_set_blob_free.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_blob_free(GValue *value, void *data, size_t length)
- * }
- */
- public static void vips_value_set_blob_free(MemorySegment value, MemorySegment data, long length) {
- var mh$ = vips_value_set_blob_free.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_blob_free", value, data, length);
- }
- mh$.invokeExact(value, data, length);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_array {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_LONG,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
- * }
- */
- public static FunctionDescriptor vips_value_set_array$descriptor() {
- return vips_value_set_array.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
- * }
- */
- public static MethodHandle vips_value_set_array$handle() {
- return vips_value_set_array.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
- * }
- */
- public static MemorySegment vips_value_set_array$address() {
- return vips_value_set_array.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_array(GValue *value, int n, GType type, size_t sizeof_type)
- * }
- */
- public static void vips_value_set_array(MemorySegment value, int n, long type, long sizeof_type) {
- var mh$ = vips_value_set_array.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_array", value, n, type, sizeof_type);
- }
- mh$.invokeExact(value, n, type, sizeof_type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_array {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static FunctionDescriptor vips_value_get_array$descriptor() {
- return vips_value_get_array.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MethodHandle vips_value_get_array$handle() {
- return vips_value_get_array.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MemorySegment vips_value_get_array$address() {
- return vips_value_get_array.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void *vips_value_get_array(const GValue *value, int *n, GType *type, size_t *sizeof_type)
- * }
- */
- public static MemorySegment vips_value_get_array(MemorySegment value, MemorySegment n, MemorySegment type, MemorySegment sizeof_type) {
- var mh$ = vips_value_get_array.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_array", value, n, type, sizeof_type);
- }
- return (MemorySegment)mh$.invokeExact(value, n, type, sizeof_type);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_array_double {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_double");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern double *vips_value_get_array_double(const GValue *value, int *n)
- * }
- */
- public static FunctionDescriptor vips_value_get_array_double$descriptor() {
- return vips_value_get_array_double.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern double *vips_value_get_array_double(const GValue *value, int *n)
- * }
- */
- public static MethodHandle vips_value_get_array_double$handle() {
- return vips_value_get_array_double.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern double *vips_value_get_array_double(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_double$address() {
- return vips_value_get_array_double.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern double *vips_value_get_array_double(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_double(MemorySegment value, MemorySegment n) {
- var mh$ = vips_value_get_array_double.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_array_double", value, n);
- }
- return (MemorySegment)mh$.invokeExact(value, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_array_double {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_double");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
- * }
- */
- public static FunctionDescriptor vips_value_set_array_double$descriptor() {
- return vips_value_set_array_double.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
- * }
- */
- public static MethodHandle vips_value_set_array_double$handle() {
- return vips_value_set_array_double.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
- * }
- */
- public static MemorySegment vips_value_set_array_double$address() {
- return vips_value_set_array_double.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_array_double(GValue *value, const double *array, int n)
- * }
- */
- public static void vips_value_set_array_double(MemorySegment value, MemorySegment array, int n) {
- var mh$ = vips_value_set_array_double.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_array_double", value, array, n);
- }
- mh$.invokeExact(value, array, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_array_int {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_int");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern int *vips_value_get_array_int(const GValue *value, int *n)
- * }
- */
- public static FunctionDescriptor vips_value_get_array_int$descriptor() {
- return vips_value_get_array_int.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern int *vips_value_get_array_int(const GValue *value, int *n)
- * }
- */
- public static MethodHandle vips_value_get_array_int$handle() {
- return vips_value_get_array_int.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern int *vips_value_get_array_int(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_int$address() {
- return vips_value_get_array_int.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern int *vips_value_get_array_int(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_int(MemorySegment value, MemorySegment n) {
- var mh$ = vips_value_get_array_int.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_array_int", value, n);
- }
- return (MemorySegment)mh$.invokeExact(value, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_array_int {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_int");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
- * }
- */
- public static FunctionDescriptor vips_value_set_array_int$descriptor() {
- return vips_value_set_array_int.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
- * }
- */
- public static MethodHandle vips_value_set_array_int$handle() {
- return vips_value_set_array_int.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
- * }
- */
- public static MemorySegment vips_value_set_array_int$address() {
- return vips_value_set_array_int.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_array_int(GValue *value, const int *array, int n)
- * }
- */
- public static void vips_value_set_array_int(MemorySegment value, MemorySegment array, int n) {
- var mh$ = vips_value_set_array_int.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_array_int", value, array, n);
- }
- mh$.invokeExact(value, array, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_get_array_object {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_get_array_object");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
- * }
- */
- public static FunctionDescriptor vips_value_get_array_object$descriptor() {
- return vips_value_get_array_object.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
- * }
- */
- public static MethodHandle vips_value_get_array_object$handle() {
- return vips_value_get_array_object.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_object$address() {
- return vips_value_get_array_object.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GObject **vips_value_get_array_object(const GValue *value, int *n)
- * }
- */
- public static MemorySegment vips_value_get_array_object(MemorySegment value, MemorySegment n) {
- var mh$ = vips_value_get_array_object.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_get_array_object", value, n);
- }
- return (MemorySegment)mh$.invokeExact(value, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_value_set_array_object {
- public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_value_set_array_object");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_object(GValue *value, int n)
- * }
- */
- public static FunctionDescriptor vips_value_set_array_object$descriptor() {
- return vips_value_set_array_object.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_object(GValue *value, int n)
- * }
- */
- public static MethodHandle vips_value_set_array_object$handle() {
- return vips_value_set_array_object.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern void vips_value_set_array_object(GValue *value, int n)
- * }
- */
- public static MemorySegment vips_value_set_array_object$address() {
- return vips_value_set_array_object.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern void vips_value_set_array_object(GValue *value, int n)
- * }
- */
- public static void vips_value_set_array_object(MemorySegment value, int n) {
- var mh$ = vips_value_set_array_object.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_value_set_array_object", value, n);
- }
- mh$.invokeExact(value, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_source_get_type()
- * }
- */
- public static FunctionDescriptor vips_source_get_type$descriptor() {
- return vips_source_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_source_get_type()
- * }
- */
- public static MethodHandle vips_source_get_type$handle() {
- return vips_source_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_source_get_type()
- * }
- */
- public static MemorySegment vips_source_get_type$address() {
- return vips_source_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_source_get_type()
- * }
- */
- public static long vips_source_get_type() {
- var mh$ = vips_source_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_descriptor {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_descriptor");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_descriptor$descriptor() {
- return vips_source_new_from_descriptor.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
- * }
- */
- public static MethodHandle vips_source_new_from_descriptor$handle() {
- return vips_source_new_from_descriptor.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
- * }
- */
- public static MemorySegment vips_source_new_from_descriptor$address() {
- return vips_source_new_from_descriptor.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_descriptor(int descriptor)
- * }
- */
- public static MemorySegment vips_source_new_from_descriptor(int descriptor) {
- var mh$ = vips_source_new_from_descriptor.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_descriptor", descriptor);
- }
- return (MemorySegment)mh$.invokeExact(descriptor);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_file {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_file");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_file(const char *filename)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_file$descriptor() {
- return vips_source_new_from_file.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_file(const char *filename)
- * }
- */
- public static MethodHandle vips_source_new_from_file$handle() {
- return vips_source_new_from_file.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_file(const char *filename)
- * }
- */
- public static MemorySegment vips_source_new_from_file$address() {
- return vips_source_new_from_file.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_file(const char *filename)
- * }
- */
- public static MemorySegment vips_source_new_from_file(MemorySegment filename) {
- var mh$ = vips_source_new_from_file.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_file", filename);
- }
- return (MemorySegment)mh$.invokeExact(filename);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_blob {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_blob");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_blob$descriptor() {
- return vips_source_new_from_blob.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
- * }
- */
- public static MethodHandle vips_source_new_from_blob$handle() {
- return vips_source_new_from_blob.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
- * }
- */
- public static MemorySegment vips_source_new_from_blob$address() {
- return vips_source_new_from_blob.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_blob(VipsBlob *blob)
- * }
- */
- public static MemorySegment vips_source_new_from_blob(MemorySegment blob) {
- var mh$ = vips_source_new_from_blob.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_blob", blob);
- }
- return (MemorySegment)mh$.invokeExact(blob);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_target {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_target");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_target$descriptor() {
- return vips_source_new_from_target.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
- * }
- */
- public static MethodHandle vips_source_new_from_target$handle() {
- return vips_source_new_from_target.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
- * }
- */
- public static MemorySegment vips_source_new_from_target$address() {
- return vips_source_new_from_target.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_target(VipsTarget *target)
- * }
- */
- public static MemorySegment vips_source_new_from_target(MemorySegment target) {
- var mh$ = vips_source_new_from_target.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_target", target);
- }
- return (MemorySegment)mh$.invokeExact(target);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_memory {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_memory");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_memory$descriptor() {
- return vips_source_new_from_memory.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
- * }
- */
- public static MethodHandle vips_source_new_from_memory$handle() {
- return vips_source_new_from_memory.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
- * }
- */
- public static MemorySegment vips_source_new_from_memory$address() {
- return vips_source_new_from_memory.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_memory(const void *data, size_t size)
- * }
- */
- public static MemorySegment vips_source_new_from_memory(MemorySegment data, long size) {
- var mh$ = vips_source_new_from_memory.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_memory", data, size);
- }
- return (MemorySegment)mh$.invokeExact(data, size);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_new_from_options {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_new_from_options");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_options(const char *options)
- * }
- */
- public static FunctionDescriptor vips_source_new_from_options$descriptor() {
- return vips_source_new_from_options.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_options(const char *options)
- * }
- */
- public static MethodHandle vips_source_new_from_options$handle() {
- return vips_source_new_from_options.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_options(const char *options)
- * }
- */
- public static MemorySegment vips_source_new_from_options$address() {
- return vips_source_new_from_options.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSource *vips_source_new_from_options(const char *options)
- * }
- */
- public static MemorySegment vips_source_new_from_options(MemorySegment options) {
- var mh$ = vips_source_new_from_options.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_new_from_options", options);
- }
- return (MemorySegment)mh$.invokeExact(options);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_source_custom_new {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_source_custom_new");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsSourceCustom *vips_source_custom_new()
- * }
- */
- public static FunctionDescriptor vips_source_custom_new$descriptor() {
- return vips_source_custom_new.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsSourceCustom *vips_source_custom_new()
- * }
- */
- public static MethodHandle vips_source_custom_new$handle() {
- return vips_source_custom_new.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsSourceCustom *vips_source_custom_new()
- * }
- */
- public static MemorySegment vips_source_custom_new$address() {
- return vips_source_custom_new.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsSourceCustom *vips_source_custom_new()
- * }
- */
- public static MemorySegment vips_source_custom_new() {
- var mh$ = vips_source_custom_new.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_source_custom_new");
- }
- return (MemorySegment)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_target_get_type()
- * }
- */
- public static FunctionDescriptor vips_target_get_type$descriptor() {
- return vips_target_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_target_get_type()
- * }
- */
- public static MethodHandle vips_target_get_type$handle() {
- return vips_target_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_target_get_type()
- * }
- */
- public static MemorySegment vips_target_get_type$address() {
- return vips_target_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_target_get_type()
- * }
- */
- public static long vips_target_get_type() {
- var mh$ = vips_target_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_new_to_descriptor {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_descriptor");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
- * }
- */
- public static FunctionDescriptor vips_target_new_to_descriptor$descriptor() {
- return vips_target_new_to_descriptor.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
- * }
- */
- public static MethodHandle vips_target_new_to_descriptor$handle() {
- return vips_target_new_to_descriptor.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
- * }
- */
- public static MemorySegment vips_target_new_to_descriptor$address() {
- return vips_target_new_to_descriptor.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_descriptor(int descriptor)
- * }
- */
- public static MemorySegment vips_target_new_to_descriptor(int descriptor) {
- var mh$ = vips_target_new_to_descriptor.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_new_to_descriptor", descriptor);
- }
- return (MemorySegment)mh$.invokeExact(descriptor);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_new_to_file {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_file");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_file(const char *filename)
- * }
- */
- public static FunctionDescriptor vips_target_new_to_file$descriptor() {
- return vips_target_new_to_file.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_file(const char *filename)
- * }
- */
- public static MethodHandle vips_target_new_to_file$handle() {
- return vips_target_new_to_file.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_file(const char *filename)
- * }
- */
- public static MemorySegment vips_target_new_to_file$address() {
- return vips_target_new_to_file.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_file(const char *filename)
- * }
- */
- public static MemorySegment vips_target_new_to_file(MemorySegment filename) {
- var mh$ = vips_target_new_to_file.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_new_to_file", filename);
- }
- return (MemorySegment)mh$.invokeExact(filename);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_new_to_memory {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_to_memory");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_memory()
- * }
- */
- public static FunctionDescriptor vips_target_new_to_memory$descriptor() {
- return vips_target_new_to_memory.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_memory()
- * }
- */
- public static MethodHandle vips_target_new_to_memory$handle() {
- return vips_target_new_to_memory.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_memory()
- * }
- */
- public static MemorySegment vips_target_new_to_memory$address() {
- return vips_target_new_to_memory.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_to_memory()
- * }
- */
- public static MemorySegment vips_target_new_to_memory() {
- var mh$ = vips_target_new_to_memory.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_new_to_memory");
- }
- return (MemorySegment)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_new_temp {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_new_temp");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
- * }
- */
- public static FunctionDescriptor vips_target_new_temp$descriptor() {
- return vips_target_new_temp.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
- * }
- */
- public static MethodHandle vips_target_new_temp$handle() {
- return vips_target_new_temp.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
- * }
- */
- public static MemorySegment vips_target_new_temp$address() {
- return vips_target_new_temp.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsTarget *vips_target_new_temp(VipsTarget *target)
- * }
- */
- public static MemorySegment vips_target_new_temp(MemorySegment target) {
- var mh$ = vips_target_new_temp.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_new_temp", target);
- }
- return (MemorySegment)mh$.invokeExact(target);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_target_custom_new {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_target_custom_new");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsTargetCustom *vips_target_custom_new()
- * }
- */
- public static FunctionDescriptor vips_target_custom_new$descriptor() {
- return vips_target_custom_new.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsTargetCustom *vips_target_custom_new()
- * }
- */
- public static MethodHandle vips_target_custom_new$handle() {
- return vips_target_custom_new.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsTargetCustom *vips_target_custom_new()
- * }
- */
- public static MemorySegment vips_target_custom_new$address() {
- return vips_target_custom_new.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsTargetCustom *vips_target_custom_new()
- * }
- */
- public static MemorySegment vips_target_custom_new() {
- var mh$ = vips_target_custom_new.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_target_custom_new");
- }
- return (MemorySegment)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- private static final int VIPS_REGION_NONE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum _RegionType.VIPS_REGION_NONE = 0
- * }
- */
- public static int VIPS_REGION_NONE() {
- return VIPS_REGION_NONE;
- }
- private static final int VIPS_REGION_BUFFER = (int)1L;
- /**
- * {@snippet lang=c :
- * enum _RegionType.VIPS_REGION_BUFFER = 1
- * }
- */
- public static int VIPS_REGION_BUFFER() {
- return VIPS_REGION_BUFFER;
- }
- private static final int VIPS_REGION_OTHER_REGION = (int)2L;
- /**
- * {@snippet lang=c :
- * enum _RegionType.VIPS_REGION_OTHER_REGION = 2
- * }
- */
- public static int VIPS_REGION_OTHER_REGION() {
- return VIPS_REGION_OTHER_REGION;
- }
- private static final int VIPS_REGION_OTHER_IMAGE = (int)3L;
- /**
- * {@snippet lang=c :
- * enum _RegionType.VIPS_REGION_OTHER_IMAGE = 3
- * }
- */
- public static int VIPS_REGION_OTHER_IMAGE() {
- return VIPS_REGION_OTHER_IMAGE;
- }
- private static final int VIPS_REGION_WINDOW = (int)4L;
- /**
- * {@snippet lang=c :
- * enum _RegionType.VIPS_REGION_WINDOW = 4
- * }
- */
- public static int VIPS_REGION_WINDOW() {
- return VIPS_REGION_WINDOW;
- }
- private static final int VIPS_REGION_SHRINK_MEAN = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_MEAN = 0
- * }
- */
- public static int VIPS_REGION_SHRINK_MEAN() {
- return VIPS_REGION_SHRINK_MEAN;
- }
- private static final int VIPS_REGION_SHRINK_MEDIAN = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_MEDIAN = 1
- * }
- */
- public static int VIPS_REGION_SHRINK_MEDIAN() {
- return VIPS_REGION_SHRINK_MEDIAN;
- }
- private static final int VIPS_REGION_SHRINK_MODE = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_MODE = 2
- * }
- */
- public static int VIPS_REGION_SHRINK_MODE() {
- return VIPS_REGION_SHRINK_MODE;
- }
- private static final int VIPS_REGION_SHRINK_MAX = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_MAX = 3
- * }
- */
- public static int VIPS_REGION_SHRINK_MAX() {
- return VIPS_REGION_SHRINK_MAX;
- }
- private static final int VIPS_REGION_SHRINK_MIN = (int)4L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_MIN = 4
- * }
- */
- public static int VIPS_REGION_SHRINK_MIN() {
- return VIPS_REGION_SHRINK_MIN;
- }
- private static final int VIPS_REGION_SHRINK_NEAREST = (int)5L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_NEAREST = 5
- * }
- */
- public static int VIPS_REGION_SHRINK_NEAREST() {
- return VIPS_REGION_SHRINK_NEAREST;
- }
- private static final int VIPS_REGION_SHRINK_LAST = (int)6L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_REGION_SHRINK_LAST = 6
- * }
- */
- public static int VIPS_REGION_SHRINK_LAST() {
- return VIPS_REGION_SHRINK_LAST;
- }
- private static final int VIPS_DEMAND_STYLE_ERROR = (int)-1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_DEMAND_STYLE_ERROR = -1
- * }
- */
- public static int VIPS_DEMAND_STYLE_ERROR() {
- return VIPS_DEMAND_STYLE_ERROR;
- }
- private static final int VIPS_DEMAND_STYLE_SMALLTILE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_DEMAND_STYLE_SMALLTILE = 0
- * }
- */
- public static int VIPS_DEMAND_STYLE_SMALLTILE() {
- return VIPS_DEMAND_STYLE_SMALLTILE;
- }
- private static final int VIPS_DEMAND_STYLE_FATSTRIP = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_DEMAND_STYLE_FATSTRIP = 1
- * }
- */
- public static int VIPS_DEMAND_STYLE_FATSTRIP() {
- return VIPS_DEMAND_STYLE_FATSTRIP;
- }
- private static final int VIPS_DEMAND_STYLE_THINSTRIP = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_DEMAND_STYLE_THINSTRIP = 2
- * }
- */
- public static int VIPS_DEMAND_STYLE_THINSTRIP() {
- return VIPS_DEMAND_STYLE_THINSTRIP;
- }
- private static final int VIPS_DEMAND_STYLE_ANY = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_DEMAND_STYLE_ANY = 3
- * }
- */
- public static int VIPS_DEMAND_STYLE_ANY() {
- return VIPS_DEMAND_STYLE_ANY;
- }
- private static final int VIPS_IMAGE_ERROR = (int)-1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_ERROR = -1
- * }
- */
- public static int VIPS_IMAGE_ERROR() {
- return VIPS_IMAGE_ERROR;
- }
- private static final int VIPS_IMAGE_NONE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_NONE = 0
- * }
- */
- public static int VIPS_IMAGE_NONE() {
- return VIPS_IMAGE_NONE;
- }
- private static final int VIPS_IMAGE_SETBUF = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_SETBUF = 1
- * }
- */
- public static int VIPS_IMAGE_SETBUF() {
- return VIPS_IMAGE_SETBUF;
- }
- private static final int VIPS_IMAGE_SETBUF_FOREIGN = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_SETBUF_FOREIGN = 2
- * }
- */
- public static int VIPS_IMAGE_SETBUF_FOREIGN() {
- return VIPS_IMAGE_SETBUF_FOREIGN;
- }
- private static final int VIPS_IMAGE_OPENIN = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_OPENIN = 3
- * }
- */
- public static int VIPS_IMAGE_OPENIN() {
- return VIPS_IMAGE_OPENIN;
- }
- private static final int VIPS_IMAGE_MMAPIN = (int)4L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_MMAPIN = 4
- * }
- */
- public static int VIPS_IMAGE_MMAPIN() {
- return VIPS_IMAGE_MMAPIN;
- }
- private static final int VIPS_IMAGE_MMAPINRW = (int)5L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_MMAPINRW = 5
- * }
- */
- public static int VIPS_IMAGE_MMAPINRW() {
- return VIPS_IMAGE_MMAPINRW;
- }
- private static final int VIPS_IMAGE_OPENOUT = (int)6L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_OPENOUT = 6
- * }
- */
- public static int VIPS_IMAGE_OPENOUT() {
- return VIPS_IMAGE_OPENOUT;
- }
- private static final int VIPS_IMAGE_PARTIAL = (int)7L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_IMAGE_PARTIAL = 7
- * }
- */
- public static int VIPS_IMAGE_PARTIAL() {
- return VIPS_IMAGE_PARTIAL;
- }
- private static final int VIPS_INTERPRETATION_ERROR = (int)-1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_ERROR = -1
- * }
- */
- public static int VIPS_INTERPRETATION_ERROR() {
- return VIPS_INTERPRETATION_ERROR;
- }
- private static final int VIPS_INTERPRETATION_MULTIBAND = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_MULTIBAND = 0
- * }
- */
- public static int VIPS_INTERPRETATION_MULTIBAND() {
- return VIPS_INTERPRETATION_MULTIBAND;
- }
- private static final int VIPS_INTERPRETATION_B_W = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_B_W = 1
- * }
- */
- public static int VIPS_INTERPRETATION_B_W() {
- return VIPS_INTERPRETATION_B_W;
- }
- private static final int VIPS_INTERPRETATION_HISTOGRAM = (int)10L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_HISTOGRAM = 10
- * }
- */
- public static int VIPS_INTERPRETATION_HISTOGRAM() {
- return VIPS_INTERPRETATION_HISTOGRAM;
- }
- private static final int VIPS_INTERPRETATION_XYZ = (int)12L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_XYZ = 12
- * }
- */
- public static int VIPS_INTERPRETATION_XYZ() {
- return VIPS_INTERPRETATION_XYZ;
- }
- private static final int VIPS_INTERPRETATION_LAB = (int)13L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_LAB = 13
- * }
- */
- public static int VIPS_INTERPRETATION_LAB() {
- return VIPS_INTERPRETATION_LAB;
- }
- private static final int VIPS_INTERPRETATION_CMYK = (int)15L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_CMYK = 15
- * }
- */
- public static int VIPS_INTERPRETATION_CMYK() {
- return VIPS_INTERPRETATION_CMYK;
- }
- private static final int VIPS_INTERPRETATION_LABQ = (int)16L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_LABQ = 16
- * }
- */
- public static int VIPS_INTERPRETATION_LABQ() {
- return VIPS_INTERPRETATION_LABQ;
- }
- private static final int VIPS_INTERPRETATION_RGB = (int)17L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_RGB = 17
- * }
- */
- public static int VIPS_INTERPRETATION_RGB() {
- return VIPS_INTERPRETATION_RGB;
- }
- private static final int VIPS_INTERPRETATION_CMC = (int)18L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_CMC = 18
- * }
- */
- public static int VIPS_INTERPRETATION_CMC() {
- return VIPS_INTERPRETATION_CMC;
- }
- private static final int VIPS_INTERPRETATION_LCH = (int)19L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_LCH = 19
- * }
- */
- public static int VIPS_INTERPRETATION_LCH() {
- return VIPS_INTERPRETATION_LCH;
- }
- private static final int VIPS_INTERPRETATION_LABS = (int)21L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_LABS = 21
- * }
- */
- public static int VIPS_INTERPRETATION_LABS() {
- return VIPS_INTERPRETATION_LABS;
- }
- private static final int VIPS_INTERPRETATION_sRGB = (int)22L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_sRGB = 22
- * }
- */
- public static int VIPS_INTERPRETATION_sRGB() {
- return VIPS_INTERPRETATION_sRGB;
- }
- private static final int VIPS_INTERPRETATION_YXY = (int)23L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_YXY = 23
- * }
- */
- public static int VIPS_INTERPRETATION_YXY() {
- return VIPS_INTERPRETATION_YXY;
- }
- private static final int VIPS_INTERPRETATION_FOURIER = (int)24L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_FOURIER = 24
- * }
- */
- public static int VIPS_INTERPRETATION_FOURIER() {
- return VIPS_INTERPRETATION_FOURIER;
- }
- private static final int VIPS_INTERPRETATION_RGB16 = (int)25L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_RGB16 = 25
- * }
- */
- public static int VIPS_INTERPRETATION_RGB16() {
- return VIPS_INTERPRETATION_RGB16;
- }
- private static final int VIPS_INTERPRETATION_GREY16 = (int)26L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_GREY16 = 26
- * }
- */
- public static int VIPS_INTERPRETATION_GREY16() {
- return VIPS_INTERPRETATION_GREY16;
- }
- private static final int VIPS_INTERPRETATION_MATRIX = (int)27L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_MATRIX = 27
- * }
- */
- public static int VIPS_INTERPRETATION_MATRIX() {
- return VIPS_INTERPRETATION_MATRIX;
- }
- private static final int VIPS_INTERPRETATION_scRGB = (int)28L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_scRGB = 28
- * }
- */
- public static int VIPS_INTERPRETATION_scRGB() {
- return VIPS_INTERPRETATION_scRGB;
- }
- private static final int VIPS_INTERPRETATION_HSV = (int)29L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_HSV = 29
- * }
- */
- public static int VIPS_INTERPRETATION_HSV() {
- return VIPS_INTERPRETATION_HSV;
- }
- private static final int VIPS_INTERPRETATION_LAST = (int)30L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_INTERPRETATION_LAST = 30
- * }
- */
- public static int VIPS_INTERPRETATION_LAST() {
- return VIPS_INTERPRETATION_LAST;
- }
- private static final int VIPS_FORMAT_NOTSET = (int)-1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_NOTSET = -1
- * }
- */
- public static int VIPS_FORMAT_NOTSET() {
- return VIPS_FORMAT_NOTSET;
- }
- private static final int VIPS_FORMAT_UCHAR = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_UCHAR = 0
- * }
- */
- public static int VIPS_FORMAT_UCHAR() {
- return VIPS_FORMAT_UCHAR;
- }
- private static final int VIPS_FORMAT_CHAR = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_CHAR = 1
- * }
- */
- public static int VIPS_FORMAT_CHAR() {
- return VIPS_FORMAT_CHAR;
- }
- private static final int VIPS_FORMAT_USHORT = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_USHORT = 2
- * }
- */
- public static int VIPS_FORMAT_USHORT() {
- return VIPS_FORMAT_USHORT;
- }
- private static final int VIPS_FORMAT_SHORT = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_SHORT = 3
- * }
- */
- public static int VIPS_FORMAT_SHORT() {
- return VIPS_FORMAT_SHORT;
- }
- private static final int VIPS_FORMAT_UINT = (int)4L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_UINT = 4
- * }
- */
- public static int VIPS_FORMAT_UINT() {
- return VIPS_FORMAT_UINT;
- }
- private static final int VIPS_FORMAT_INT = (int)5L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_INT = 5
- * }
- */
- public static int VIPS_FORMAT_INT() {
- return VIPS_FORMAT_INT;
- }
- private static final int VIPS_FORMAT_FLOAT = (int)6L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_FLOAT = 6
- * }
- */
- public static int VIPS_FORMAT_FLOAT() {
- return VIPS_FORMAT_FLOAT;
- }
- private static final int VIPS_FORMAT_COMPLEX = (int)7L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_COMPLEX = 7
- * }
- */
- public static int VIPS_FORMAT_COMPLEX() {
- return VIPS_FORMAT_COMPLEX;
- }
- private static final int VIPS_FORMAT_DOUBLE = (int)8L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_DOUBLE = 8
- * }
- */
- public static int VIPS_FORMAT_DOUBLE() {
- return VIPS_FORMAT_DOUBLE;
- }
- private static final int VIPS_FORMAT_DPCOMPLEX = (int)9L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_DPCOMPLEX = 9
- * }
- */
- public static int VIPS_FORMAT_DPCOMPLEX() {
- return VIPS_FORMAT_DPCOMPLEX;
- }
- private static final int VIPS_FORMAT_LAST = (int)10L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_FORMAT_LAST = 10
- * }
- */
- public static int VIPS_FORMAT_LAST() {
- return VIPS_FORMAT_LAST;
- }
- private static final int VIPS_CODING_ERROR = (int)-1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_CODING_ERROR = -1
- * }
- */
- public static int VIPS_CODING_ERROR() {
- return VIPS_CODING_ERROR;
- }
- private static final int VIPS_CODING_NONE = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_CODING_NONE = 0
- * }
- */
- public static int VIPS_CODING_NONE() {
- return VIPS_CODING_NONE;
- }
- private static final int VIPS_CODING_LABQ = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_CODING_LABQ = 2
- * }
- */
- public static int VIPS_CODING_LABQ() {
- return VIPS_CODING_LABQ;
- }
- private static final int VIPS_CODING_RAD = (int)6L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_CODING_RAD = 6
- * }
- */
- public static int VIPS_CODING_RAD() {
- return VIPS_CODING_RAD;
- }
- private static final int VIPS_CODING_LAST = (int)7L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_CODING_LAST = 7
- * }
- */
- public static int VIPS_CODING_LAST() {
- return VIPS_CODING_LAST;
- }
- private static final int VIPS_ACCESS_RANDOM = (int)0L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ACCESS_RANDOM = 0
- * }
- */
- public static int VIPS_ACCESS_RANDOM() {
- return VIPS_ACCESS_RANDOM;
- }
- private static final int VIPS_ACCESS_SEQUENTIAL = (int)1L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ACCESS_SEQUENTIAL = 1
- * }
- */
- public static int VIPS_ACCESS_SEQUENTIAL() {
- return VIPS_ACCESS_SEQUENTIAL;
- }
- private static final int VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = (int)2L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = 2
- * }
- */
- public static int VIPS_ACCESS_SEQUENTIAL_UNBUFFERED() {
- return VIPS_ACCESS_SEQUENTIAL_UNBUFFERED;
- }
- private static final int VIPS_ACCESS_LAST = (int)3L;
- /**
- * {@snippet lang=c :
- * enum .VIPS_ACCESS_LAST = 3
- * }
- */
- public static int VIPS_ACCESS_LAST() {
- return VIPS_ACCESS_LAST;
- }
-
- private static class vips_image_get_type {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_get_type");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern GType vips_image_get_type()
- * }
- */
- public static FunctionDescriptor vips_image_get_type$descriptor() {
- return vips_image_get_type.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern GType vips_image_get_type()
- * }
- */
- public static MethodHandle vips_image_get_type$handle() {
- return vips_image_get_type.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern GType vips_image_get_type()
- * }
- */
- public static MemorySegment vips_image_get_type$address() {
- return vips_image_get_type.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern GType vips_image_get_type()
- * }
- */
- public static long vips_image_get_type() {
- var mh$ = vips_image_get_type.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_get_type");
- }
- return (long)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_filename_get_filename {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_get_filename");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_filename(const char *vips_filename)
- * }
- */
- public static FunctionDescriptor vips_filename_get_filename$descriptor() {
- return vips_filename_get_filename.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_filename(const char *vips_filename)
- * }
- */
- public static MethodHandle vips_filename_get_filename$handle() {
- return vips_filename_get_filename.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_filename(const char *vips_filename)
- * }
- */
- public static MemorySegment vips_filename_get_filename$address() {
- return vips_filename_get_filename.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern char *vips_filename_get_filename(const char *vips_filename)
- * }
- */
- public static MemorySegment vips_filename_get_filename(MemorySegment vips_filename) {
- var mh$ = vips_filename_get_filename.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_filename_get_filename", vips_filename);
- }
- return (MemorySegment)mh$.invokeExact(vips_filename);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_filename_get_options {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_get_options");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_options(const char *vips_filename)
- * }
- */
- public static FunctionDescriptor vips_filename_get_options$descriptor() {
- return vips_filename_get_options.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_options(const char *vips_filename)
- * }
- */
- public static MethodHandle vips_filename_get_options$handle() {
- return vips_filename_get_options.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern char *vips_filename_get_options(const char *vips_filename)
- * }
- */
- public static MemorySegment vips_filename_get_options$address() {
- return vips_filename_get_options.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern char *vips_filename_get_options(const char *vips_filename)
- * }
- */
- public static MemorySegment vips_filename_get_options(MemorySegment vips_filename) {
- var mh$ = vips_filename_get_options.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_filename_get_options", vips_filename);
- }
- return (MemorySegment)mh$.invokeExact(vips_filename);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new()
- * }
- */
- public static FunctionDescriptor vips_image_new$descriptor() {
- return vips_image_new.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new()
- * }
- */
- public static MethodHandle vips_image_new$handle() {
- return vips_image_new.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new()
- * }
- */
- public static MemorySegment vips_image_new$address() {
- return vips_image_new.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new()
- * }
- */
- public static MemorySegment vips_image_new() {
- var mh$ = vips_image_new.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new");
- }
- return (MemorySegment)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_memory {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_memory");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_memory()
- * }
- */
- public static FunctionDescriptor vips_image_new_memory$descriptor() {
- return vips_image_new_memory.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_memory()
- * }
- */
- public static MethodHandle vips_image_new_memory$handle() {
- return vips_image_new_memory.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_memory()
- * }
- */
- public static MemorySegment vips_image_new_memory$address() {
- return vips_image_new_memory.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_memory()
- * }
- */
- public static MemorySegment vips_image_new_memory() {
- var mh$ = vips_image_new_memory.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_memory");
- }
- return (MemorySegment)mh$.invokeExact();
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- /**
- * Variadic invoker class for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file(const char *name, ...)
- * }
- */
- public static class vips_image_new_from_file {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_file");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_new_from_file(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file(const char *name, ...)
- * }
- */
- public static vips_image_new_from_file makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_new_from_file(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
-
- public MemorySegment apply(MemorySegment name, Object... x1) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_file", name, x1);
- }
- return (MemorySegment)spreader.invokeExact(name, x1);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static class vips_image_new_from_file_RW {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_file_RW");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_RW(const char *filename)
- * }
- */
- public static FunctionDescriptor vips_image_new_from_file_RW$descriptor() {
- return vips_image_new_from_file_RW.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_RW(const char *filename)
- * }
- */
- public static MethodHandle vips_image_new_from_file_RW$handle() {
- return vips_image_new_from_file_RW.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_RW(const char *filename)
- * }
- */
- public static MemorySegment vips_image_new_from_file_RW$address() {
- return vips_image_new_from_file_RW.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_RW(const char *filename)
- * }
- */
- public static MemorySegment vips_image_new_from_file_RW(MemorySegment filename) {
- var mh$ = vips_image_new_from_file_RW.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_file_RW", filename);
- }
- return (MemorySegment)mh$.invokeExact(filename);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_from_file_raw {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_LONG_LONG
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_file_raw");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_raw(const char *filename, int xsize, int ysize, int bands, guint64 offset)
- * }
- */
- public static FunctionDescriptor vips_image_new_from_file_raw$descriptor() {
- return vips_image_new_from_file_raw.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_raw(const char *filename, int xsize, int ysize, int bands, guint64 offset)
- * }
- */
- public static MethodHandle vips_image_new_from_file_raw$handle() {
- return vips_image_new_from_file_raw.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_raw(const char *filename, int xsize, int ysize, int bands, guint64 offset)
- * }
- */
- public static MemorySegment vips_image_new_from_file_raw$address() {
- return vips_image_new_from_file_raw.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_file_raw(const char *filename, int xsize, int ysize, int bands, guint64 offset)
- * }
- */
- public static MemorySegment vips_image_new_from_file_raw(MemorySegment filename, int xsize, int ysize, int bands, long offset) {
- var mh$ = vips_image_new_from_file_raw.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_file_raw", filename, xsize, ysize, bands, offset);
- }
- return (MemorySegment)mh$.invokeExact(filename, xsize, ysize, bands, offset);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_from_memory {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_memory");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static FunctionDescriptor vips_image_new_from_memory$descriptor() {
- return vips_image_new_from_memory.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MethodHandle vips_image_new_from_memory$handle() {
- return vips_image_new_from_memory.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment vips_image_new_from_memory$address() {
- return vips_image_new_from_memory.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment vips_image_new_from_memory(MemorySegment data, long size, int width, int height, int bands, int format) {
- var mh$ = vips_image_new_from_memory.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_memory", data, size, width, height, bands, format);
- }
- return (MemorySegment)mh$.invokeExact(data, size, width, height, bands, format);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_from_memory_copy {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_memory_copy");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static FunctionDescriptor vips_image_new_from_memory_copy$descriptor() {
- return vips_image_new_from_memory_copy.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MethodHandle vips_image_new_from_memory_copy$handle() {
- return vips_image_new_from_memory_copy.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment vips_image_new_from_memory_copy$address() {
- return vips_image_new_from_memory_copy.ADDR;
- }
-
- /**
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_memory_copy(const void *data, size_t size, int width, int height, int bands, VipsBandFormat format)
- * }
- */
- public static MemorySegment vips_image_new_from_memory_copy(MemorySegment data, long size, int width, int height, int bands, int format) {
- var mh$ = vips_image_new_from_memory_copy.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_memory_copy", data, size, width, height, bands, format);
- }
- return (MemorySegment)mh$.invokeExact(data, size, width, height, bands, format);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- /**
- * Variadic invoker class for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_buffer(const void *buf, size_t len, const char *option_string, ...)
- * }
- */
- public static class vips_image_new_from_buffer {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_buffer");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_new_from_buffer(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_buffer(const void *buf, size_t len, const char *option_string, ...)
- * }
- */
- public static vips_image_new_from_buffer makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_new_from_buffer(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
-
- public MemorySegment apply(MemorySegment buf, long len, MemorySegment option_string, Object... x3) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_buffer", buf, len, option_string, x3);
- }
- return (MemorySegment)spreader.invokeExact(buf, len, option_string, x3);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- /**
- * Variadic invoker class for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_source(VipsSource *source, const char *option_string, ...)
- * }
- */
- public static class vips_image_new_from_source {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_source");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_new_from_source(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_source(VipsSource *source, const char *option_string, ...)
- * }
- */
- public static vips_image_new_from_source makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_new_from_source(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
-
- public MemorySegment apply(MemorySegment source, MemorySegment option_string, Object... x2) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_source", source, option_string, x2);
- }
- return (MemorySegment)spreader.invokeExact(source, option_string, x2);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static class vips_image_new_matrix {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_matrix");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
- }
-
- /**
- * Function descriptor for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix(int width, int height)
- * }
- */
- public static FunctionDescriptor vips_image_new_matrix$descriptor() {
- return vips_image_new_matrix.DESC;
- }
-
- /**
- * Downcall method handle for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix(int width, int height)
- * }
- */
- public static MethodHandle vips_image_new_matrix$handle() {
- return vips_image_new_matrix.HANDLE;
- }
-
- /**
- * Address for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix(int width, int height)
- * }
- */
- public static MemorySegment vips_image_new_matrix$address() {
- return vips_image_new_matrix.ADDR;
+ public static int VIPS_FORMAT_CHAR() {
+ return VIPS_FORMAT_CHAR;
}
-
+ private static final int VIPS_FORMAT_USHORT = (int)2L;
/**
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix(int width, int height)
+ * enum .VIPS_FORMAT_USHORT = 2
* }
*/
- public static MemorySegment vips_image_new_matrix(int width, int height) {
- var mh$ = vips_image_new_matrix.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_matrix", width, height);
- }
- return (MemorySegment)mh$.invokeExact(width, height);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_FORMAT_USHORT() {
+ return VIPS_FORMAT_USHORT;
}
-
+ private static final int VIPS_FORMAT_SHORT = (int)3L;
/**
- * Variadic invoker class for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrixv(int width, int height, ...)
+ * enum .VIPS_FORMAT_SHORT = 3
* }
*/
- public static class vips_image_new_matrixv {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_INT
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_matrixv");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_new_matrixv(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrixv(int width, int height, ...)
- * }
- */
- public static vips_image_new_matrixv makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_new_matrixv(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
-
- public MemorySegment apply(int width, int height, Object... x2) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_matrixv", width, height, x2);
- }
- return (MemorySegment)spreader.invokeExact(width, height, x2);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static class vips_image_new_matrix_from_array {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_INT,
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_matrix_from_array");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_FORMAT_SHORT() {
+ return VIPS_FORMAT_SHORT;
}
-
+ private static final int VIPS_FORMAT_UINT = (int)4L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix_from_array(int width, int height, const double *array, int size)
+ * enum .VIPS_FORMAT_UINT = 4
* }
*/
- public static FunctionDescriptor vips_image_new_matrix_from_array$descriptor() {
- return vips_image_new_matrix_from_array.DESC;
+ public static int VIPS_FORMAT_UINT() {
+ return VIPS_FORMAT_UINT;
}
-
+ private static final int VIPS_FORMAT_INT = (int)5L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix_from_array(int width, int height, const double *array, int size)
+ * enum .VIPS_FORMAT_INT = 5
* }
*/
- public static MethodHandle vips_image_new_matrix_from_array$handle() {
- return vips_image_new_matrix_from_array.HANDLE;
+ public static int VIPS_FORMAT_INT() {
+ return VIPS_FORMAT_INT;
}
-
+ private static final int VIPS_FORMAT_FLOAT = (int)6L;
/**
- * Address for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix_from_array(int width, int height, const double *array, int size)
+ * enum .VIPS_FORMAT_FLOAT = 6
* }
*/
- public static MemorySegment vips_image_new_matrix_from_array$address() {
- return vips_image_new_matrix_from_array.ADDR;
+ public static int VIPS_FORMAT_FLOAT() {
+ return VIPS_FORMAT_FLOAT;
}
-
+ private static final int VIPS_FORMAT_COMPLEX = (int)7L;
/**
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_matrix_from_array(int width, int height, const double *array, int size)
+ * enum .VIPS_FORMAT_COMPLEX = 7
* }
*/
- public static MemorySegment vips_image_new_matrix_from_array(int width, int height, MemorySegment array, int size) {
- var mh$ = vips_image_new_matrix_from_array.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_matrix_from_array", width, height, array, size);
- }
- return (MemorySegment)mh$.invokeExact(width, height, array, size);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_from_image {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_INT
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_image");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_FORMAT_COMPLEX() {
+ return VIPS_FORMAT_COMPLEX;
}
-
+ private static final int VIPS_FORMAT_DOUBLE = (int)8L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image(VipsImage *image, const double *c, int n)
+ * enum .VIPS_FORMAT_DOUBLE = 8
* }
*/
- public static FunctionDescriptor vips_image_new_from_image$descriptor() {
- return vips_image_new_from_image.DESC;
+ public static int VIPS_FORMAT_DOUBLE() {
+ return VIPS_FORMAT_DOUBLE;
}
-
+ private static final int VIPS_FORMAT_DPCOMPLEX = (int)9L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image(VipsImage *image, const double *c, int n)
+ * enum .VIPS_FORMAT_DPCOMPLEX = 9
* }
*/
- public static MethodHandle vips_image_new_from_image$handle() {
- return vips_image_new_from_image.HANDLE;
+ public static int VIPS_FORMAT_DPCOMPLEX() {
+ return VIPS_FORMAT_DPCOMPLEX;
}
-
+ private static final int VIPS_FORMAT_LAST = (int)10L;
/**
- * Address for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image(VipsImage *image, const double *c, int n)
+ * enum .VIPS_FORMAT_LAST = 10
* }
*/
- public static MemorySegment vips_image_new_from_image$address() {
- return vips_image_new_from_image.ADDR;
+ public static int VIPS_FORMAT_LAST() {
+ return VIPS_FORMAT_LAST;
}
-
+ private static final int VIPS_CODING_ERROR = (int)-1L;
/**
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image(VipsImage *image, const double *c, int n)
+ * enum .VIPS_CODING_ERROR = -1
* }
*/
- public static MemorySegment vips_image_new_from_image(MemorySegment image, MemorySegment c, int n) {
- var mh$ = vips_image_new_from_image.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_image", image, c, n);
- }
- return (MemorySegment)mh$.invokeExact(image, c, n);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_from_image1 {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_DOUBLE
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_from_image1");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_CODING_ERROR() {
+ return VIPS_CODING_ERROR;
}
-
+ private static final int VIPS_CODING_NONE = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image1(VipsImage *image, double c)
+ * enum .VIPS_CODING_NONE = 0
* }
*/
- public static FunctionDescriptor vips_image_new_from_image1$descriptor() {
- return vips_image_new_from_image1.DESC;
+ public static int VIPS_CODING_NONE() {
+ return VIPS_CODING_NONE;
}
-
+ private static final int VIPS_CODING_LABQ = (int)2L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image1(VipsImage *image, double c)
+ * enum .VIPS_CODING_LABQ = 2
* }
*/
- public static MethodHandle vips_image_new_from_image1$handle() {
- return vips_image_new_from_image1.HANDLE;
+ public static int VIPS_CODING_LABQ() {
+ return VIPS_CODING_LABQ;
}
-
+ private static final int VIPS_CODING_RAD = (int)6L;
/**
- * Address for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image1(VipsImage *image, double c)
+ * enum .VIPS_CODING_RAD = 6
* }
*/
- public static MemorySegment vips_image_new_from_image1$address() {
- return vips_image_new_from_image1.ADDR;
+ public static int VIPS_CODING_RAD() {
+ return VIPS_CODING_RAD;
}
-
+ private static final int VIPS_CODING_LAST = (int)7L;
/**
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_from_image1(VipsImage *image, double c)
+ * enum .VIPS_CODING_LAST = 7
* }
*/
- public static MemorySegment vips_image_new_from_image1(MemorySegment image, double c) {
- var mh$ = vips_image_new_from_image1.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_from_image1", image, c);
- }
- return (MemorySegment)mh$.invokeExact(image, c);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
-
- private static class vips_image_new_temp_file {
- public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new_temp_file");
-
- public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ public static int VIPS_CODING_LAST() {
+ return VIPS_CODING_LAST;
}
-
+ private static final int VIPS_ACCESS_RANDOM = (int)0L;
/**
- * Function descriptor for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_temp_file(const char *format)
+ * enum .VIPS_ACCESS_RANDOM = 0
* }
*/
- public static FunctionDescriptor vips_image_new_temp_file$descriptor() {
- return vips_image_new_temp_file.DESC;
+ public static int VIPS_ACCESS_RANDOM() {
+ return VIPS_ACCESS_RANDOM;
}
-
+ private static final int VIPS_ACCESS_SEQUENTIAL = (int)1L;
/**
- * Downcall method handle for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_temp_file(const char *format)
+ * enum .VIPS_ACCESS_SEQUENTIAL = 1
* }
*/
- public static MethodHandle vips_image_new_temp_file$handle() {
- return vips_image_new_temp_file.HANDLE;
+ public static int VIPS_ACCESS_SEQUENTIAL() {
+ return VIPS_ACCESS_SEQUENTIAL;
}
-
+ private static final int VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = (int)2L;
/**
- * Address for:
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_temp_file(const char *format)
+ * enum .VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = 2
* }
*/
- public static MemorySegment vips_image_new_temp_file$address() {
- return vips_image_new_temp_file.ADDR;
+ public static int VIPS_ACCESS_SEQUENTIAL_UNBUFFERED() {
+ return VIPS_ACCESS_SEQUENTIAL_UNBUFFERED;
}
-
+ private static final int VIPS_ACCESS_LAST = (int)3L;
/**
* {@snippet lang=c :
- * extern VipsImage *vips_image_new_temp_file(const char *format)
+ * enum .VIPS_ACCESS_LAST = 3
* }
*/
- public static MemorySegment vips_image_new_temp_file(MemorySegment format) {
- var mh$ = vips_image_new_temp_file.HANDLE;
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_new_temp_file", format);
- }
- return (MemorySegment)mh$.invokeExact(format);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
+ public static int VIPS_ACCESS_LAST() {
+ return VIPS_ACCESS_LAST;
}
- private static class vips_image_write {
+ private static class vips_image_get_type {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
+ VipsRaw.C_LONG );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_get_type");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -12750,280 +6606,115 @@ private static class vips_image_write {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern int vips_image_write(VipsImage *image, VipsImage *out)
+ * extern GType vips_image_get_type()
* }
*/
- public static FunctionDescriptor vips_image_write$descriptor() {
- return vips_image_write.DESC;
+ public static FunctionDescriptor vips_image_get_type$descriptor() {
+ return vips_image_get_type.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern int vips_image_write(VipsImage *image, VipsImage *out)
+ * extern GType vips_image_get_type()
* }
*/
- public static MethodHandle vips_image_write$handle() {
- return vips_image_write.HANDLE;
+ public static MethodHandle vips_image_get_type$handle() {
+ return vips_image_get_type.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern int vips_image_write(VipsImage *image, VipsImage *out)
+ * extern GType vips_image_get_type()
* }
*/
- public static MemorySegment vips_image_write$address() {
- return vips_image_write.ADDR;
+ public static MemorySegment vips_image_get_type$address() {
+ return vips_image_get_type.ADDR;
}
/**
* {@snippet lang=c :
- * extern int vips_image_write(VipsImage *image, VipsImage *out)
+ * extern GType vips_image_get_type()
* }
*/
- public static int vips_image_write(MemorySegment image, MemorySegment out) {
- var mh$ = vips_image_write.HANDLE;
+ public static long vips_image_get_type() {
+ var mh$ = vips_image_get_type.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write", image, out);
+ traceDowncall("vips_image_get_type");
}
- return (int)mh$.invokeExact(image, out);
+ return (long)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- /**
- * Variadic invoker class for:
- * {@snippet lang=c :
- * extern int vips_image_write_to_file(VipsImage *image, const char *name, ...)
- * }
- */
- public static class vips_image_write_to_file {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_to_file");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_write_to_file(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern int vips_image_write_to_file(VipsImage *image, const char *name, ...)
- * }
- */
- public static vips_image_write_to_file makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_write_to_file(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
+ private static class vips_filename_get_filename {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_get_filename");
- public int apply(MemorySegment image, MemorySegment name, Object... x2) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_to_file", image, name, x2);
- }
- return (int)spreader.invokeExact(image, name, x2);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
+ public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
/**
- * Variadic invoker class for:
+ * Function descriptor for:
* {@snippet lang=c :
- * extern int vips_image_write_to_buffer(VipsImage *in, const char *suffix, void **buf, size_t *size, ...)
+ * extern char *vips_filename_get_filename(const char *vips_filename)
* }
*/
- public static class vips_image_write_to_buffer {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_to_buffer");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_write_to_buffer(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern int vips_image_write_to_buffer(VipsImage *in, const char *suffix, void **buf, size_t *size, ...)
- * }
- */
- public static vips_image_write_to_buffer makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_write_to_buffer(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
+ public static FunctionDescriptor vips_filename_get_filename$descriptor() {
+ return vips_filename_get_filename.DESC;
+ }
- public int apply(MemorySegment in, MemorySegment suffix, MemorySegment buf, MemorySegment size, Object... x4) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_to_buffer", in, suffix, buf, size, x4);
- }
- return (int)spreader.invokeExact(in, suffix, buf, size, x4);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
+ /**
+ * Downcall method handle for:
+ * {@snippet lang=c :
+ * extern char *vips_filename_get_filename(const char *vips_filename)
+ * }
+ */
+ public static MethodHandle vips_filename_get_filename$handle() {
+ return vips_filename_get_filename.HANDLE;
}
/**
- * Variadic invoker class for:
+ * Address for:
* {@snippet lang=c :
- * extern int vips_image_write_to_target(VipsImage *in, const char *suffix, VipsTarget *target, ...)
+ * extern char *vips_filename_get_filename(const char *vips_filename)
* }
*/
- public static class vips_image_write_to_target {
- private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
- private static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_to_target");
-
- private final MethodHandle handle;
- private final FunctionDescriptor descriptor;
- private final MethodHandle spreader;
-
- private vips_image_write_to_target(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) {
- this.handle = handle;
- this.descriptor = descriptor;
- this.spreader = spreader;
- }
-
- /**
- * Variadic invoker factory for:
- * {@snippet lang=c :
- * extern int vips_image_write_to_target(VipsImage *in, const char *suffix, VipsTarget *target, ...)
- * }
- */
- public static vips_image_write_to_target makeInvoker(MemoryLayout... layouts) {
- FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts);
- Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size());
- var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$);
- var spreader$ = mh$.asSpreader(Object[].class, layouts.length);
- return new vips_image_write_to_target(mh$, desc$, spreader$);
- }
-
- /**
- * {@return the address}
- */
- public static MemorySegment address() {
- return ADDR;
- }
-
- /**
- * {@return the specialized method handle}
- */
- public MethodHandle handle() {
- return handle;
- }
-
- /**
- * {@return the specialized descriptor}
- */
- public FunctionDescriptor descriptor() {
- return descriptor;
- }
+ public static MemorySegment vips_filename_get_filename$address() {
+ return vips_filename_get_filename.ADDR;
+ }
- public int apply(MemorySegment in, MemorySegment suffix, MemorySegment target, Object... x3) {
- try {
- if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_to_target", in, suffix, target, x3);
- }
- return (int)spreader.invokeExact(in, suffix, target, x3);
- } catch(IllegalArgumentException | ClassCastException ex$) {
- throw ex$; // rethrow IAE from passing wrong number/type of args
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
+ /**
+ * {@snippet lang=c :
+ * extern char *vips_filename_get_filename(const char *vips_filename)
+ * }
+ */
+ public static MemorySegment vips_filename_get_filename(MemorySegment vips_filename) {
+ var mh$ = vips_filename_get_filename.HANDLE;
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("vips_filename_get_filename", vips_filename);
}
+ return (MemorySegment)mh$.invokeExact(vips_filename);
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
}
}
- private static class vips_image_write_to_memory {
+ private static class vips_filename_get_options {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_to_memory");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_filename_get_options");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -13031,57 +6722,55 @@ private static class vips_image_write_to_memory {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern void *vips_image_write_to_memory(VipsImage *in, size_t *size)
+ * extern char *vips_filename_get_options(const char *vips_filename)
* }
*/
- public static FunctionDescriptor vips_image_write_to_memory$descriptor() {
- return vips_image_write_to_memory.DESC;
+ public static FunctionDescriptor vips_filename_get_options$descriptor() {
+ return vips_filename_get_options.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern void *vips_image_write_to_memory(VipsImage *in, size_t *size)
+ * extern char *vips_filename_get_options(const char *vips_filename)
* }
*/
- public static MethodHandle vips_image_write_to_memory$handle() {
- return vips_image_write_to_memory.HANDLE;
+ public static MethodHandle vips_filename_get_options$handle() {
+ return vips_filename_get_options.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern void *vips_image_write_to_memory(VipsImage *in, size_t *size)
+ * extern char *vips_filename_get_options(const char *vips_filename)
* }
*/
- public static MemorySegment vips_image_write_to_memory$address() {
- return vips_image_write_to_memory.ADDR;
+ public static MemorySegment vips_filename_get_options$address() {
+ return vips_filename_get_options.ADDR;
}
/**
* {@snippet lang=c :
- * extern void *vips_image_write_to_memory(VipsImage *in, size_t *size)
+ * extern char *vips_filename_get_options(const char *vips_filename)
* }
*/
- public static MemorySegment vips_image_write_to_memory(MemorySegment in, MemorySegment size) {
- var mh$ = vips_image_write_to_memory.HANDLE;
+ public static MemorySegment vips_filename_get_options(MemorySegment vips_filename) {
+ var mh$ = vips_filename_get_options.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_to_memory", in, size);
+ traceDowncall("vips_filename_get_options", vips_filename);
}
- return (MemorySegment)mh$.invokeExact(in, size);
+ return (MemorySegment)mh$.invokeExact(vips_filename);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class vips_image_hasalpha {
+ private static class vips_image_new {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
+ VipsRaw.C_POINTER );
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_hasalpha");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_new");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -13089,57 +6778,58 @@ private static class vips_image_hasalpha {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern gboolean vips_image_hasalpha(VipsImage *image)
+ * extern VipsImage *vips_image_new()
* }
*/
- public static FunctionDescriptor vips_image_hasalpha$descriptor() {
- return vips_image_hasalpha.DESC;
+ public static FunctionDescriptor vips_image_new$descriptor() {
+ return vips_image_new.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern gboolean vips_image_hasalpha(VipsImage *image)
+ * extern VipsImage *vips_image_new()
* }
*/
- public static MethodHandle vips_image_hasalpha$handle() {
- return vips_image_hasalpha.HANDLE;
+ public static MethodHandle vips_image_new$handle() {
+ return vips_image_new.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern gboolean vips_image_hasalpha(VipsImage *image)
+ * extern VipsImage *vips_image_new()
* }
*/
- public static MemorySegment vips_image_hasalpha$address() {
- return vips_image_hasalpha.ADDR;
+ public static MemorySegment vips_image_new$address() {
+ return vips_image_new.ADDR;
}
/**
* {@snippet lang=c :
- * extern gboolean vips_image_hasalpha(VipsImage *image)
+ * extern VipsImage *vips_image_new()
* }
*/
- public static int vips_image_hasalpha(MemorySegment image) {
- var mh$ = vips_image_hasalpha.HANDLE;
+ public static MemorySegment vips_image_new() {
+ var mh$ = vips_image_new.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_hasalpha", image);
+ traceDowncall("vips_image_new");
}
- return (int)mh$.invokeExact(image);
+ return (MemorySegment)mh$.invokeExact();
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class vips_image_write_prepare {
+ private static class vips_image_write {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_prepare");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -13147,59 +6837,57 @@ private static class vips_image_write_prepare {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern int vips_image_write_prepare(VipsImage *image)
+ * extern int vips_image_write(VipsImage *image, VipsImage *out)
* }
*/
- public static FunctionDescriptor vips_image_write_prepare$descriptor() {
- return vips_image_write_prepare.DESC;
+ public static FunctionDescriptor vips_image_write$descriptor() {
+ return vips_image_write.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern int vips_image_write_prepare(VipsImage *image)
+ * extern int vips_image_write(VipsImage *image, VipsImage *out)
* }
*/
- public static MethodHandle vips_image_write_prepare$handle() {
- return vips_image_write_prepare.HANDLE;
+ public static MethodHandle vips_image_write$handle() {
+ return vips_image_write.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern int vips_image_write_prepare(VipsImage *image)
+ * extern int vips_image_write(VipsImage *image, VipsImage *out)
* }
*/
- public static MemorySegment vips_image_write_prepare$address() {
- return vips_image_write_prepare.ADDR;
+ public static MemorySegment vips_image_write$address() {
+ return vips_image_write.ADDR;
}
/**
* {@snippet lang=c :
- * extern int vips_image_write_prepare(VipsImage *image)
+ * extern int vips_image_write(VipsImage *image, VipsImage *out)
* }
*/
- public static int vips_image_write_prepare(MemorySegment image) {
- var mh$ = vips_image_write_prepare.HANDLE;
+ public static int vips_image_write(MemorySegment image, MemorySegment out) {
+ var mh$ = vips_image_write.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_prepare", image);
+ traceDowncall("vips_image_write", image, out);
}
- return (int)mh$.invokeExact(image);
+ return (int)mh$.invokeExact(image, out);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
}
- private static class vips_image_write_line {
+ private static class vips_image_hasalpha {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
VipsRaw.C_INT,
VipsRaw.C_POINTER
);
- public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_write_line");
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_hasalpha");
public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
}
@@ -13207,45 +6895,45 @@ private static class vips_image_write_line {
/**
* Function descriptor for:
* {@snippet lang=c :
- * extern int vips_image_write_line(VipsImage *image, int ypos, VipsPel *linebuffer)
+ * extern gboolean vips_image_hasalpha(VipsImage *image)
* }
*/
- public static FunctionDescriptor vips_image_write_line$descriptor() {
- return vips_image_write_line.DESC;
+ public static FunctionDescriptor vips_image_hasalpha$descriptor() {
+ return vips_image_hasalpha.DESC;
}
/**
* Downcall method handle for:
* {@snippet lang=c :
- * extern int vips_image_write_line(VipsImage *image, int ypos, VipsPel *linebuffer)
+ * extern gboolean vips_image_hasalpha(VipsImage *image)
* }
*/
- public static MethodHandle vips_image_write_line$handle() {
- return vips_image_write_line.HANDLE;
+ public static MethodHandle vips_image_hasalpha$handle() {
+ return vips_image_hasalpha.HANDLE;
}
/**
* Address for:
* {@snippet lang=c :
- * extern int vips_image_write_line(VipsImage *image, int ypos, VipsPel *linebuffer)
+ * extern gboolean vips_image_hasalpha(VipsImage *image)
* }
*/
- public static MemorySegment vips_image_write_line$address() {
- return vips_image_write_line.ADDR;
+ public static MemorySegment vips_image_hasalpha$address() {
+ return vips_image_hasalpha.ADDR;
}
/**
* {@snippet lang=c :
- * extern int vips_image_write_line(VipsImage *image, int ypos, VipsPel *linebuffer)
+ * extern gboolean vips_image_hasalpha(VipsImage *image)
* }
*/
- public static int vips_image_write_line(MemorySegment image, int ypos, MemorySegment linebuffer) {
- var mh$ = vips_image_write_line.HANDLE;
+ public static int vips_image_hasalpha(MemorySegment image) {
+ var mh$ = vips_image_hasalpha.HANDLE;
try {
if (TRACE_DOWNCALLS) {
- traceDowncall("vips_image_write_line", image, ypos, linebuffer);
+ traceDowncall("vips_image_hasalpha", image);
}
- return (int)mh$.invokeExact(image, ypos, linebuffer);
+ return (int)mh$.invokeExact(image);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
@@ -14522,6 +8210,64 @@ public static int vips_image_get_height(MemorySegment image) {
}
}
+ private static class vips_image_get_bands {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER
+ );
+
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_get_bands");
+
+ public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ }
+
+ /**
+ * Function descriptor for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_bands(const VipsImage *image)
+ * }
+ */
+ public static FunctionDescriptor vips_image_get_bands$descriptor() {
+ return vips_image_get_bands.DESC;
+ }
+
+ /**
+ * Downcall method handle for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_bands(const VipsImage *image)
+ * }
+ */
+ public static MethodHandle vips_image_get_bands$handle() {
+ return vips_image_get_bands.HANDLE;
+ }
+
+ /**
+ * Address for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_bands(const VipsImage *image)
+ * }
+ */
+ public static MemorySegment vips_image_get_bands$address() {
+ return vips_image_get_bands.ADDR;
+ }
+
+ /**
+ * {@snippet lang=c :
+ * extern int vips_image_get_bands(const VipsImage *image)
+ * }
+ */
+ public static int vips_image_get_bands(MemorySegment image) {
+ var mh$ = vips_image_get_bands.HANDLE;
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("vips_image_get_bands", image);
+ }
+ return (int)mh$.invokeExact(image);
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
+ }
+ }
+
private static class vips_image_get_typeof {
public static final FunctionDescriptor DESC = FunctionDescriptor.of(
VipsRaw.C_LONG,
@@ -14580,6 +8326,67 @@ public static long vips_image_get_typeof(MemorySegment image, MemorySegment name
throw new AssertionError("should not reach here", ex$);
}
}
+
+ private static class vips_image_get_blob {
+ public static final FunctionDescriptor DESC = FunctionDescriptor.of(
+ VipsRaw.C_INT,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER,
+ VipsRaw.C_POINTER
+ );
+
+ public static final MemorySegment ADDR = VipsRaw.findOrThrow("vips_image_get_blob");
+
+ public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC);
+ }
+
+ /**
+ * Function descriptor for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_blob(const VipsImage *image, const char *name, const void **data, size_t *length)
+ * }
+ */
+ public static FunctionDescriptor vips_image_get_blob$descriptor() {
+ return vips_image_get_blob.DESC;
+ }
+
+ /**
+ * Downcall method handle for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_blob(const VipsImage *image, const char *name, const void **data, size_t *length)
+ * }
+ */
+ public static MethodHandle vips_image_get_blob$handle() {
+ return vips_image_get_blob.HANDLE;
+ }
+
+ /**
+ * Address for:
+ * {@snippet lang=c :
+ * extern int vips_image_get_blob(const VipsImage *image, const char *name, const void **data, size_t *length)
+ * }
+ */
+ public static MemorySegment vips_image_get_blob$address() {
+ return vips_image_get_blob.ADDR;
+ }
+
+ /**
+ * {@snippet lang=c :
+ * extern int vips_image_get_blob(const VipsImage *image, const char *name, const void **data, size_t *length)
+ * }
+ */
+ public static int vips_image_get_blob(MemorySegment image, MemorySegment name, MemorySegment data, MemorySegment length) {
+ var mh$ = vips_image_get_blob.HANDLE;
+ try {
+ if (TRACE_DOWNCALLS) {
+ traceDowncall("vips_image_get_blob", image, name, data, length);
+ }
+ return (int)mh$.invokeExact(image, name, data, length);
+ } catch (Throwable ex$) {
+ throw new AssertionError("should not reach here", ex$);
+ }
+ }
private static final int VIPS_OPERATION_NONE = (int)0L;
/**
* {@snippet lang=c :
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetClass.java
deleted file mode 100644
index e2a2571..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetClass.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _VipsTargetClass {
- * VipsConnectionClass parent_class;
- * gint64 (*write)(VipsTarget *, const void *, size_t);
- * void (*finish)(VipsTarget *);
- * gint64 (*read)(VipsTarget *, void *, size_t);
- * gint64 (*seek)(VipsTarget *, gint64, int);
- * int (*end)(VipsTarget *);
- * } VipsTargetClass
- * }
- */
-public class VipsTargetClass extends _VipsTargetClass {
-
- VipsTargetClass() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustom.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustom.java
deleted file mode 100644
index 31e11cf..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustom.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _VipsTargetCustom {
- * VipsTarget parent_object;
- * } VipsTargetCustom
- * }
- */
-public class VipsTargetCustom extends _VipsTargetCustom {
-
- VipsTargetCustom() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustomClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustomClass.java
deleted file mode 100644
index ee2ba77..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/VipsTargetCustomClass.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * typedef struct _VipsTargetCustomClass {
- * VipsTargetClass parent_class;
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64);
- * void (*finish)(VipsTargetCustom *);
- * gint64 (*read)(VipsTargetCustom *, void *, gint64);
- * gint64 (*seek)(VipsTargetCustom *, gint64, int);
- * int (*end)(VipsTargetCustom *);
- * } VipsTargetCustomClass
- * }
- */
-public class VipsTargetCustomClass extends _VipsTargetCustomClass {
-
- VipsTargetCustomClass() {
- // Should not be called directly
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GObjectConstructParam.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GObjectConstructParam.java
deleted file mode 100644
index 2847833..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GObjectConstructParam.java
+++ /dev/null
@@ -1,173 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GObjectConstructParam {
- * GParamSpec *pspec;
- * GValue *value;
- * }
- * }
- */
-public class _GObjectConstructParam {
-
- _GObjectConstructParam() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- VipsRaw.C_POINTER.withName("pspec"),
- VipsRaw.C_POINTER.withName("value")
- ).withName("_GObjectConstructParam");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final AddressLayout pspec$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("pspec"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec *pspec
- * }
- */
- public static final AddressLayout pspec$layout() {
- return pspec$LAYOUT;
- }
-
- private static final long pspec$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec *pspec
- * }
- */
- public static final long pspec$offset() {
- return pspec$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec *pspec
- * }
- */
- public static MemorySegment pspec(MemorySegment struct) {
- return struct.get(pspec$LAYOUT, pspec$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec *pspec
- * }
- */
- public static void pspec(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(pspec$LAYOUT, pspec$OFFSET, fieldValue);
- }
-
- private static final AddressLayout value$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GValue *value
- * }
- */
- public static final AddressLayout value$layout() {
- return value$LAYOUT;
- }
-
- private static final long value$OFFSET = 8;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GValue *value
- * }
- */
- public static final long value$offset() {
- return value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GValue *value
- * }
- */
- public static MemorySegment value(MemorySegment struct) {
- return struct.get(value$LAYOUT, value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GValue *value
- * }
- */
- public static void value(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value$LAYOUT, value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoolean.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoolean.java
deleted file mode 100644
index 85dc685..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoolean.java
+++ /dev/null
@@ -1,174 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecBoolean {
- * GParamSpec parent_instance;
- * gboolean default_value;
- * }
- * }
- */
-public class _GParamSpecBoolean {
-
- _GParamSpecBoolean() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecBoolean");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoxed.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoxed.java
deleted file mode 100644
index 1e71f42..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecBoxed.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecBoxed {
- * GParamSpec parent_instance;
- * }
- * }
- */
-public class _GParamSpecBoxed {
-
- _GParamSpecBoxed() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance")
- ).withName("_GParamSpecBoxed");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecChar.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecChar.java
deleted file mode 100644
index d53a3d0..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecChar.java
+++ /dev/null
@@ -1,266 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecChar {
- * GParamSpec parent_instance;
- * gint8 minimum;
- * gint8 maximum;
- * gint8 default_value;
- * }
- * }
- */
-public class _GParamSpecChar {
-
- _GParamSpecChar() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_CHAR.withName("minimum"),
- VipsRaw.C_CHAR.withName("maximum"),
- VipsRaw.C_CHAR.withName("default_value"),
- MemoryLayout.paddingLayout(5)
- ).withName("_GParamSpecChar");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfByte minimum$LAYOUT = (OfByte)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint8 minimum
- * }
- */
- public static final OfByte minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint8 minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint8 minimum
- * }
- */
- public static byte minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint8 minimum
- * }
- */
- public static void minimum(MemorySegment struct, byte fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfByte maximum$LAYOUT = (OfByte)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint8 maximum
- * }
- */
- public static final OfByte maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 73;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint8 maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint8 maximum
- * }
- */
- public static byte maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint8 maximum
- * }
- */
- public static void maximum(MemorySegment struct, byte fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfByte default_value$LAYOUT = (OfByte)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint8 default_value
- * }
- */
- public static final OfByte default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 74;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint8 default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint8 default_value
- * }
- */
- public static byte default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint8 default_value
- * }
- */
- public static void default_value(MemorySegment struct, byte fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecClass.java
deleted file mode 100644
index 4a13a9d..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecClass.java
+++ /dev/null
@@ -1,755 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecClass {
- * GTypeClass g_type_class;
- * GType value_type;
- * void (*finalize)(GParamSpec *);
- * void (*value_set_default)(GParamSpec *, GValue *);
- * gboolean (*value_validate)(GParamSpec *, GValue *);
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *);
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *);
- * gpointer dummy[3];
- * }
- * }
- */
-public class _GParamSpecClass {
-
- _GParamSpecClass() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GTypeClass.layout().withName("g_type_class"),
- VipsRaw.C_LONG.withName("value_type"),
- VipsRaw.C_POINTER.withName("finalize"),
- VipsRaw.C_POINTER.withName("value_set_default"),
- VipsRaw.C_POINTER.withName("value_validate"),
- VipsRaw.C_POINTER.withName("values_cmp"),
- VipsRaw.C_POINTER.withName("value_is_valid"),
- MemoryLayout.sequenceLayout(3, VipsRaw.C_POINTER).withName("dummy")
- ).withName("_GParamSpecClass");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout g_type_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("g_type_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GTypeClass g_type_class
- * }
- */
- public static final GroupLayout g_type_class$layout() {
- return g_type_class$LAYOUT;
- }
-
- private static final long g_type_class$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GTypeClass g_type_class
- * }
- */
- public static final long g_type_class$offset() {
- return g_type_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GTypeClass g_type_class
- * }
- */
- public static MemorySegment g_type_class(MemorySegment struct) {
- return struct.asSlice(g_type_class$OFFSET, g_type_class$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GTypeClass g_type_class
- * }
- */
- public static void g_type_class(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, g_type_class$OFFSET, g_type_class$LAYOUT.byteSize());
- }
-
- private static final OfLong value_type$LAYOUT = (OfLong)$LAYOUT.select(groupElement("value_type"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static final OfLong value_type$layout() {
- return value_type$LAYOUT;
- }
-
- private static final long value_type$OFFSET = 8;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static final long value_type$offset() {
- return value_type$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static long value_type(MemorySegment struct) {
- return struct.get(value_type$LAYOUT, value_type$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static void value_type(MemorySegment struct, long fieldValue) {
- struct.set(value_type$LAYOUT, value_type$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static class finalize {
-
- finalize() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(finalize.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(finalize.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout finalize$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("finalize"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static final AddressLayout finalize$layout() {
- return finalize$LAYOUT;
- }
-
- private static final long finalize$OFFSET = 16;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static final long finalize$offset() {
- return finalize$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static MemorySegment finalize(MemorySegment struct) {
- return struct.get(finalize$LAYOUT, finalize$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static void finalize(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(finalize$LAYOUT, finalize$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static class value_set_default {
-
- value_set_default() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(value_set_default.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(value_set_default.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout value_set_default$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value_set_default"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static final AddressLayout value_set_default$layout() {
- return value_set_default$LAYOUT;
- }
-
- private static final long value_set_default$OFFSET = 24;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static final long value_set_default$offset() {
- return value_set_default$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static MemorySegment value_set_default(MemorySegment struct) {
- return struct.get(value_set_default$LAYOUT, value_set_default$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static void value_set_default(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value_set_default$LAYOUT, value_set_default$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static class value_validate {
-
- value_validate() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(value_validate.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(value_validate.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout value_validate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value_validate"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static final AddressLayout value_validate$layout() {
- return value_validate$LAYOUT;
- }
-
- private static final long value_validate$OFFSET = 32;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static final long value_validate$offset() {
- return value_validate$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static MemorySegment value_validate(MemorySegment struct) {
- return struct.get(value_validate$LAYOUT, value_validate$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static void value_validate(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value_validate$LAYOUT, value_validate$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static class values_cmp {
-
- values_cmp() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(values_cmp.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(values_cmp.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout values_cmp$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("values_cmp"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static final AddressLayout values_cmp$layout() {
- return values_cmp$LAYOUT;
- }
-
- private static final long values_cmp$OFFSET = 40;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static final long values_cmp$offset() {
- return values_cmp$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static MemorySegment values_cmp(MemorySegment struct) {
- return struct.get(values_cmp$LAYOUT, values_cmp$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static void values_cmp(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(values_cmp$LAYOUT, values_cmp$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *)
- * }
- */
- public static class value_is_valid {
-
- value_is_valid() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(value_is_valid.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(value_is_valid.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout value_is_valid$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value_is_valid"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *)
- * }
- */
- public static final AddressLayout value_is_valid$layout() {
- return value_is_valid$LAYOUT;
- }
-
- private static final long value_is_valid$OFFSET = 48;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *)
- * }
- */
- public static final long value_is_valid$offset() {
- return value_is_valid$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *)
- * }
- */
- public static MemorySegment value_is_valid(MemorySegment struct) {
- return struct.get(value_is_valid$LAYOUT, value_is_valid$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean (*value_is_valid)(GParamSpec *, const GValue *)
- * }
- */
- public static void value_is_valid(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value_is_valid$LAYOUT, value_is_valid$OFFSET, fieldValue);
- }
-
- private static final SequenceLayout dummy$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("dummy"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static final SequenceLayout dummy$layout() {
- return dummy$LAYOUT;
- }
-
- private static final long dummy$OFFSET = 56;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static final long dummy$offset() {
- return dummy$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static MemorySegment dummy(MemorySegment struct) {
- return struct.asSlice(dummy$OFFSET, dummy$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static void dummy(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, dummy$OFFSET, dummy$LAYOUT.byteSize());
- }
-
- private static long[] dummy$DIMS = { 3 };
-
- /**
- * Dimensions for array field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static long[] dummy$dimensions() {
- return dummy$DIMS;
- }
- private static final VarHandle dummy$ELEM_HANDLE = dummy$LAYOUT.varHandle(sequenceElement());
-
- /**
- * Indexed getter for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static MemorySegment dummy(MemorySegment struct, long index0) {
- return (MemorySegment)dummy$ELEM_HANDLE.get(struct, 0L, index0);
- }
-
- /**
- * Indexed setter for field:
- * {@snippet lang=c :
- * gpointer dummy[3]
- * }
- */
- public static void dummy(MemorySegment struct, long index0, MemorySegment fieldValue) {
- dummy$ELEM_HANDLE.set(struct, 0L, index0, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecDouble.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecDouble.java
deleted file mode 100644
index b998626..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecDouble.java
+++ /dev/null
@@ -1,311 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecDouble {
- * GParamSpec parent_instance;
- * gdouble minimum;
- * gdouble maximum;
- * gdouble default_value;
- * gdouble epsilon;
- * }
- * }
- */
-public class _GParamSpecDouble {
-
- _GParamSpecDouble() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_DOUBLE.withName("minimum"),
- VipsRaw.C_DOUBLE.withName("maximum"),
- VipsRaw.C_DOUBLE.withName("default_value"),
- VipsRaw.C_DOUBLE.withName("epsilon")
- ).withName("_GParamSpecDouble");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfDouble minimum$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gdouble minimum
- * }
- */
- public static final OfDouble minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gdouble minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gdouble minimum
- * }
- */
- public static double minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gdouble minimum
- * }
- */
- public static void minimum(MemorySegment struct, double fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfDouble maximum$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gdouble maximum
- * }
- */
- public static final OfDouble maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gdouble maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gdouble maximum
- * }
- */
- public static double maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gdouble maximum
- * }
- */
- public static void maximum(MemorySegment struct, double fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfDouble default_value$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gdouble default_value
- * }
- */
- public static final OfDouble default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gdouble default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gdouble default_value
- * }
- */
- public static double default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gdouble default_value
- * }
- */
- public static void default_value(MemorySegment struct, double fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- private static final OfDouble epsilon$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("epsilon"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gdouble epsilon
- * }
- */
- public static final OfDouble epsilon$layout() {
- return epsilon$LAYOUT;
- }
-
- private static final long epsilon$OFFSET = 96;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gdouble epsilon
- * }
- */
- public static final long epsilon$offset() {
- return epsilon$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gdouble epsilon
- * }
- */
- public static double epsilon(MemorySegment struct) {
- return struct.get(epsilon$LAYOUT, epsilon$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gdouble epsilon
- * }
- */
- public static void epsilon(MemorySegment struct, double fieldValue) {
- struct.set(epsilon$LAYOUT, epsilon$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecEnum.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecEnum.java
deleted file mode 100644
index 63f0fc3..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecEnum.java
+++ /dev/null
@@ -1,220 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecEnum {
- * GParamSpec parent_instance;
- * GEnumClass *enum_class;
- * gint default_value;
- * }
- * }
- */
-public class _GParamSpecEnum {
-
- _GParamSpecEnum() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("enum_class"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecEnum");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout enum_class$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("enum_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GEnumClass *enum_class
- * }
- */
- public static final AddressLayout enum_class$layout() {
- return enum_class$LAYOUT;
- }
-
- private static final long enum_class$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GEnumClass *enum_class
- * }
- */
- public static final long enum_class$offset() {
- return enum_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GEnumClass *enum_class
- * }
- */
- public static MemorySegment enum_class(MemorySegment struct) {
- return struct.get(enum_class$LAYOUT, enum_class$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GEnumClass *enum_class
- * }
- */
- public static void enum_class(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(enum_class$LAYOUT, enum_class$OFFSET, fieldValue);
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFlags.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFlags.java
deleted file mode 100644
index 0be360b..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFlags.java
+++ /dev/null
@@ -1,220 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecFlags {
- * GParamSpec parent_instance;
- * GFlagsClass *flags_class;
- * guint default_value;
- * }
- * }
- */
-public class _GParamSpecFlags {
-
- _GParamSpecFlags() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("flags_class"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecFlags");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout flags_class$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("flags_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GFlagsClass *flags_class
- * }
- */
- public static final AddressLayout flags_class$layout() {
- return flags_class$LAYOUT;
- }
-
- private static final long flags_class$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GFlagsClass *flags_class
- * }
- */
- public static final long flags_class$offset() {
- return flags_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GFlagsClass *flags_class
- * }
- */
- public static MemorySegment flags_class(MemorySegment struct) {
- return struct.get(flags_class$LAYOUT, flags_class$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GFlagsClass *flags_class
- * }
- */
- public static void flags_class(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(flags_class$LAYOUT, flags_class$OFFSET, fieldValue);
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFloat.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFloat.java
deleted file mode 100644
index 191dcbf..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecFloat.java
+++ /dev/null
@@ -1,311 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecFloat {
- * GParamSpec parent_instance;
- * gfloat minimum;
- * gfloat maximum;
- * gfloat default_value;
- * gfloat epsilon;
- * }
- * }
- */
-public class _GParamSpecFloat {
-
- _GParamSpecFloat() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_FLOAT.withName("minimum"),
- VipsRaw.C_FLOAT.withName("maximum"),
- VipsRaw.C_FLOAT.withName("default_value"),
- VipsRaw.C_FLOAT.withName("epsilon")
- ).withName("_GParamSpecFloat");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfFloat minimum$LAYOUT = (OfFloat)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gfloat minimum
- * }
- */
- public static final OfFloat minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gfloat minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gfloat minimum
- * }
- */
- public static float minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gfloat minimum
- * }
- */
- public static void minimum(MemorySegment struct, float fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfFloat maximum$LAYOUT = (OfFloat)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gfloat maximum
- * }
- */
- public static final OfFloat maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 76;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gfloat maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gfloat maximum
- * }
- */
- public static float maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gfloat maximum
- * }
- */
- public static void maximum(MemorySegment struct, float fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfFloat default_value$LAYOUT = (OfFloat)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gfloat default_value
- * }
- */
- public static final OfFloat default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gfloat default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gfloat default_value
- * }
- */
- public static float default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gfloat default_value
- * }
- */
- public static void default_value(MemorySegment struct, float fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- private static final OfFloat epsilon$LAYOUT = (OfFloat)$LAYOUT.select(groupElement("epsilon"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gfloat epsilon
- * }
- */
- public static final OfFloat epsilon$layout() {
- return epsilon$LAYOUT;
- }
-
- private static final long epsilon$OFFSET = 84;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gfloat epsilon
- * }
- */
- public static final long epsilon$offset() {
- return epsilon$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gfloat epsilon
- * }
- */
- public static float epsilon(MemorySegment struct) {
- return struct.get(epsilon$LAYOUT, epsilon$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gfloat epsilon
- * }
- */
- public static void epsilon(MemorySegment struct, float fieldValue) {
- struct.set(epsilon$LAYOUT, epsilon$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecGType.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecGType.java
deleted file mode 100644
index 42df358..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecGType.java
+++ /dev/null
@@ -1,173 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecGType {
- * GParamSpec parent_instance;
- * GType is_a_type;
- * }
- * }
- */
-public class _GParamSpecGType {
-
- _GParamSpecGType() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_LONG.withName("is_a_type")
- ).withName("_GParamSpecGType");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfLong is_a_type$LAYOUT = (OfLong)$LAYOUT.select(groupElement("is_a_type"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GType is_a_type
- * }
- */
- public static final OfLong is_a_type$layout() {
- return is_a_type$LAYOUT;
- }
-
- private static final long is_a_type$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GType is_a_type
- * }
- */
- public static final long is_a_type$offset() {
- return is_a_type$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GType is_a_type
- * }
- */
- public static long is_a_type(MemorySegment struct) {
- return struct.get(is_a_type$LAYOUT, is_a_type$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GType is_a_type
- * }
- */
- public static void is_a_type(MemorySegment struct, long fieldValue) {
- struct.set(is_a_type$LAYOUT, is_a_type$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt.java
deleted file mode 100644
index 452be54..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt.java
+++ /dev/null
@@ -1,266 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecInt {
- * GParamSpec parent_instance;
- * gint minimum;
- * gint maximum;
- * gint default_value;
- * }
- * }
- */
-public class _GParamSpecInt {
-
- _GParamSpecInt() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_INT.withName("minimum"),
- VipsRaw.C_INT.withName("maximum"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecInt");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfInt minimum$LAYOUT = (OfInt)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint minimum
- * }
- */
- public static final OfInt minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint minimum
- * }
- */
- public static int minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint minimum
- * }
- */
- public static void minimum(MemorySegment struct, int fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfInt maximum$LAYOUT = (OfInt)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint maximum
- * }
- */
- public static final OfInt maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 76;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint maximum
- * }
- */
- public static int maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint maximum
- * }
- */
- public static void maximum(MemorySegment struct, int fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt64.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt64.java
deleted file mode 100644
index 00c464c..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecInt64.java
+++ /dev/null
@@ -1,265 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecInt64 {
- * GParamSpec parent_instance;
- * gint64 minimum;
- * gint64 maximum;
- * gint64 default_value;
- * }
- * }
- */
-public class _GParamSpecInt64 {
-
- _GParamSpecInt64() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_LONG_LONG.withName("minimum"),
- VipsRaw.C_LONG_LONG.withName("maximum"),
- VipsRaw.C_LONG_LONG.withName("default_value")
- ).withName("_GParamSpecInt64");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfLong minimum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 minimum
- * }
- */
- public static final OfLong minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 minimum
- * }
- */
- public static long minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 minimum
- * }
- */
- public static void minimum(MemorySegment struct, long fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfLong maximum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 maximum
- * }
- */
- public static final OfLong maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 maximum
- * }
- */
- public static long maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 maximum
- * }
- */
- public static void maximum(MemorySegment struct, long fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfLong default_value$LAYOUT = (OfLong)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 default_value
- * }
- */
- public static final OfLong default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 default_value
- * }
- */
- public static long default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 default_value
- * }
- */
- public static void default_value(MemorySegment struct, long fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecLong.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecLong.java
deleted file mode 100644
index 9fc84b2..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecLong.java
+++ /dev/null
@@ -1,265 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecLong {
- * GParamSpec parent_instance;
- * glong minimum;
- * glong maximum;
- * glong default_value;
- * }
- * }
- */
-public class _GParamSpecLong {
-
- _GParamSpecLong() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_LONG.withName("minimum"),
- VipsRaw.C_LONG.withName("maximum"),
- VipsRaw.C_LONG.withName("default_value")
- ).withName("_GParamSpecLong");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfLong minimum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * glong minimum
- * }
- */
- public static final OfLong minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * glong minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * glong minimum
- * }
- */
- public static long minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * glong minimum
- * }
- */
- public static void minimum(MemorySegment struct, long fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfLong maximum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * glong maximum
- * }
- */
- public static final OfLong maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * glong maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * glong maximum
- * }
- */
- public static long maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * glong maximum
- * }
- */
- public static void maximum(MemorySegment struct, long fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfLong default_value$LAYOUT = (OfLong)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * glong default_value
- * }
- */
- public static final OfLong default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * glong default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * glong default_value
- * }
- */
- public static long default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * glong default_value
- * }
- */
- public static void default_value(MemorySegment struct, long fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecObject.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecObject.java
deleted file mode 100644
index dcf595b..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecObject.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecObject {
- * GParamSpec parent_instance;
- * }
- * }
- */
-public class _GParamSpecObject {
-
- _GParamSpecObject() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance")
- ).withName("_GParamSpecObject");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecOverride.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecOverride.java
deleted file mode 100644
index 8643f78..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecOverride.java
+++ /dev/null
@@ -1,173 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecOverride {
- * GParamSpec parent_instance;
- * GParamSpec *overridden;
- * }
- * }
- */
-public class _GParamSpecOverride {
-
- _GParamSpecOverride() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("overridden")
- ).withName("_GParamSpecOverride");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout overridden$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("overridden"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec *overridden
- * }
- */
- public static final AddressLayout overridden$layout() {
- return overridden$LAYOUT;
- }
-
- private static final long overridden$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec *overridden
- * }
- */
- public static final long overridden$offset() {
- return overridden$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec *overridden
- * }
- */
- public static MemorySegment overridden(MemorySegment struct) {
- return struct.get(overridden$LAYOUT, overridden$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec *overridden
- * }
- */
- public static void overridden(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(overridden$LAYOUT, overridden$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecParam.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecParam.java
deleted file mode 100644
index 80e0161..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecParam.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecParam {
- * GParamSpec parent_instance;
- * }
- * }
- */
-public class _GParamSpecParam {
-
- _GParamSpecParam() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance")
- ).withName("_GParamSpecParam");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecPointer.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecPointer.java
deleted file mode 100644
index d72a968..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecPointer.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecPointer {
- * GParamSpec parent_instance;
- * }
- * }
- */
-public class _GParamSpecPointer {
-
- _GParamSpecPointer() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance")
- ).withName("_GParamSpecPointer");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecString.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecString.java
deleted file mode 100644
index b091d85..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecString.java
+++ /dev/null
@@ -1,314 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecString {
- * GParamSpec parent_instance;
- * gchar *default_value;
- * gchar *cset_first;
- * gchar *cset_nth;
- * gchar substitutor;
- * guint null_fold_if_empty : 1;
- * guint ensure_non_null : 1;
- * }
- * }
- */
-public class _GParamSpecString {
-
- _GParamSpecString() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("default_value"),
- VipsRaw.C_POINTER.withName("cset_first"),
- VipsRaw.C_POINTER.withName("cset_nth"),
- VipsRaw.C_CHAR.withName("substitutor"),
- MemoryLayout.paddingLayout(7)
- ).withName("_GParamSpecString");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout default_value$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gchar *default_value
- * }
- */
- public static final AddressLayout default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gchar *default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gchar *default_value
- * }
- */
- public static MemorySegment default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gchar *default_value
- * }
- */
- public static void default_value(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- private static final AddressLayout cset_first$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("cset_first"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gchar *cset_first
- * }
- */
- public static final AddressLayout cset_first$layout() {
- return cset_first$LAYOUT;
- }
-
- private static final long cset_first$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gchar *cset_first
- * }
- */
- public static final long cset_first$offset() {
- return cset_first$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gchar *cset_first
- * }
- */
- public static MemorySegment cset_first(MemorySegment struct) {
- return struct.get(cset_first$LAYOUT, cset_first$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gchar *cset_first
- * }
- */
- public static void cset_first(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(cset_first$LAYOUT, cset_first$OFFSET, fieldValue);
- }
-
- private static final AddressLayout cset_nth$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("cset_nth"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gchar *cset_nth
- * }
- */
- public static final AddressLayout cset_nth$layout() {
- return cset_nth$LAYOUT;
- }
-
- private static final long cset_nth$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gchar *cset_nth
- * }
- */
- public static final long cset_nth$offset() {
- return cset_nth$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gchar *cset_nth
- * }
- */
- public static MemorySegment cset_nth(MemorySegment struct) {
- return struct.get(cset_nth$LAYOUT, cset_nth$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gchar *cset_nth
- * }
- */
- public static void cset_nth(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(cset_nth$LAYOUT, cset_nth$OFFSET, fieldValue);
- }
-
- private static final OfByte substitutor$LAYOUT = (OfByte)$LAYOUT.select(groupElement("substitutor"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gchar substitutor
- * }
- */
- public static final OfByte substitutor$layout() {
- return substitutor$LAYOUT;
- }
-
- private static final long substitutor$OFFSET = 96;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gchar substitutor
- * }
- */
- public static final long substitutor$offset() {
- return substitutor$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gchar substitutor
- * }
- */
- public static byte substitutor(MemorySegment struct) {
- return struct.get(substitutor$LAYOUT, substitutor$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gchar substitutor
- * }
- */
- public static void substitutor(MemorySegment struct, byte fieldValue) {
- struct.set(substitutor$LAYOUT, substitutor$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecTypeInfo.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecTypeInfo.java
deleted file mode 100644
index 128b40d..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecTypeInfo.java
+++ /dev/null
@@ -1,721 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecTypeInfo {
- * guint16 instance_size;
- * guint16 n_preallocs;
- * void (*instance_init)(GParamSpec *);
- * GType value_type;
- * void (*finalize)(GParamSpec *);
- * void (*value_set_default)(GParamSpec *, GValue *);
- * gboolean (*value_validate)(GParamSpec *, GValue *);
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *);
- * }
- * }
- */
-public class _GParamSpecTypeInfo {
-
- _GParamSpecTypeInfo() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- VipsRaw.C_SHORT.withName("instance_size"),
- VipsRaw.C_SHORT.withName("n_preallocs"),
- MemoryLayout.paddingLayout(4),
- VipsRaw.C_POINTER.withName("instance_init"),
- VipsRaw.C_LONG.withName("value_type"),
- VipsRaw.C_POINTER.withName("finalize"),
- VipsRaw.C_POINTER.withName("value_set_default"),
- VipsRaw.C_POINTER.withName("value_validate"),
- VipsRaw.C_POINTER.withName("values_cmp")
- ).withName("_GParamSpecTypeInfo");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final OfShort instance_size$LAYOUT = (OfShort)$LAYOUT.select(groupElement("instance_size"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint16 instance_size
- * }
- */
- public static final OfShort instance_size$layout() {
- return instance_size$LAYOUT;
- }
-
- private static final long instance_size$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint16 instance_size
- * }
- */
- public static final long instance_size$offset() {
- return instance_size$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint16 instance_size
- * }
- */
- public static short instance_size(MemorySegment struct) {
- return struct.get(instance_size$LAYOUT, instance_size$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint16 instance_size
- * }
- */
- public static void instance_size(MemorySegment struct, short fieldValue) {
- struct.set(instance_size$LAYOUT, instance_size$OFFSET, fieldValue);
- }
-
- private static final OfShort n_preallocs$LAYOUT = (OfShort)$LAYOUT.select(groupElement("n_preallocs"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint16 n_preallocs
- * }
- */
- public static final OfShort n_preallocs$layout() {
- return n_preallocs$LAYOUT;
- }
-
- private static final long n_preallocs$OFFSET = 2;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint16 n_preallocs
- * }
- */
- public static final long n_preallocs$offset() {
- return n_preallocs$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint16 n_preallocs
- * }
- */
- public static short n_preallocs(MemorySegment struct) {
- return struct.get(n_preallocs$LAYOUT, n_preallocs$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint16 n_preallocs
- * }
- */
- public static void n_preallocs(MemorySegment struct, short fieldValue) {
- struct.set(n_preallocs$LAYOUT, n_preallocs$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*instance_init)(GParamSpec *)
- * }
- */
- public static class instance_init {
-
- instance_init() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(instance_init.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(instance_init.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout instance_init$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("instance_init"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*instance_init)(GParamSpec *)
- * }
- */
- public static final AddressLayout instance_init$layout() {
- return instance_init$LAYOUT;
- }
-
- private static final long instance_init$OFFSET = 8;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*instance_init)(GParamSpec *)
- * }
- */
- public static final long instance_init$offset() {
- return instance_init$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*instance_init)(GParamSpec *)
- * }
- */
- public static MemorySegment instance_init(MemorySegment struct) {
- return struct.get(instance_init$LAYOUT, instance_init$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*instance_init)(GParamSpec *)
- * }
- */
- public static void instance_init(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(instance_init$LAYOUT, instance_init$OFFSET, fieldValue);
- }
-
- private static final OfLong value_type$LAYOUT = (OfLong)$LAYOUT.select(groupElement("value_type"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static final OfLong value_type$layout() {
- return value_type$LAYOUT;
- }
-
- private static final long value_type$OFFSET = 16;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static final long value_type$offset() {
- return value_type$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static long value_type(MemorySegment struct) {
- return struct.get(value_type$LAYOUT, value_type$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GType value_type
- * }
- */
- public static void value_type(MemorySegment struct, long fieldValue) {
- struct.set(value_type$LAYOUT, value_type$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static class finalize {
-
- finalize() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(finalize.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(finalize.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout finalize$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("finalize"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static final AddressLayout finalize$layout() {
- return finalize$LAYOUT;
- }
-
- private static final long finalize$OFFSET = 24;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static final long finalize$offset() {
- return finalize$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static MemorySegment finalize(MemorySegment struct) {
- return struct.get(finalize$LAYOUT, finalize$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*finalize)(GParamSpec *)
- * }
- */
- public static void finalize(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(finalize$LAYOUT, finalize$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static class value_set_default {
-
- value_set_default() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(value_set_default.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(value_set_default.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout value_set_default$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value_set_default"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static final AddressLayout value_set_default$layout() {
- return value_set_default$LAYOUT;
- }
-
- private static final long value_set_default$OFFSET = 32;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static final long value_set_default$offset() {
- return value_set_default$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static MemorySegment value_set_default(MemorySegment struct) {
- return struct.get(value_set_default$LAYOUT, value_set_default$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*value_set_default)(GParamSpec *, GValue *)
- * }
- */
- public static void value_set_default(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value_set_default$LAYOUT, value_set_default$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static class value_validate {
-
- value_validate() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(value_validate.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(value_validate.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout value_validate$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("value_validate"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static final AddressLayout value_validate$layout() {
- return value_validate$LAYOUT;
- }
-
- private static final long value_validate$OFFSET = 40;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static final long value_validate$offset() {
- return value_validate$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static MemorySegment value_validate(MemorySegment struct) {
- return struct.get(value_validate$LAYOUT, value_validate$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean (*value_validate)(GParamSpec *, GValue *)
- * }
- */
- public static void value_validate(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(value_validate$LAYOUT, value_validate$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static class values_cmp {
-
- values_cmp() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1, MemorySegment _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(values_cmp.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(values_cmp.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, MemorySegment _x2) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout values_cmp$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("values_cmp"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static final AddressLayout values_cmp$layout() {
- return values_cmp$LAYOUT;
- }
-
- private static final long values_cmp$OFFSET = 48;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static final long values_cmp$offset() {
- return values_cmp$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static MemorySegment values_cmp(MemorySegment struct) {
- return struct.get(values_cmp$LAYOUT, values_cmp$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint (*values_cmp)(GParamSpec *, const GValue *, const GValue *)
- * }
- */
- public static void values_cmp(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(values_cmp$LAYOUT, values_cmp$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUChar.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUChar.java
deleted file mode 100644
index 8c1e5de..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUChar.java
+++ /dev/null
@@ -1,266 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecUChar {
- * GParamSpec parent_instance;
- * guint8 minimum;
- * guint8 maximum;
- * guint8 default_value;
- * }
- * }
- */
-public class _GParamSpecUChar {
-
- _GParamSpecUChar() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_CHAR.withName("minimum"),
- VipsRaw.C_CHAR.withName("maximum"),
- VipsRaw.C_CHAR.withName("default_value"),
- MemoryLayout.paddingLayout(5)
- ).withName("_GParamSpecUChar");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfByte minimum$LAYOUT = (OfByte)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint8 minimum
- * }
- */
- public static final OfByte minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint8 minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint8 minimum
- * }
- */
- public static byte minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint8 minimum
- * }
- */
- public static void minimum(MemorySegment struct, byte fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfByte maximum$LAYOUT = (OfByte)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint8 maximum
- * }
- */
- public static final OfByte maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 73;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint8 maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint8 maximum
- * }
- */
- public static byte maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint8 maximum
- * }
- */
- public static void maximum(MemorySegment struct, byte fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfByte default_value$LAYOUT = (OfByte)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint8 default_value
- * }
- */
- public static final OfByte default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 74;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint8 default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint8 default_value
- * }
- */
- public static byte default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint8 default_value
- * }
- */
- public static void default_value(MemorySegment struct, byte fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt.java
deleted file mode 100644
index d1e4918..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt.java
+++ /dev/null
@@ -1,266 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecUInt {
- * GParamSpec parent_instance;
- * guint minimum;
- * guint maximum;
- * guint default_value;
- * }
- * }
- */
-public class _GParamSpecUInt {
-
- _GParamSpecUInt() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_INT.withName("minimum"),
- VipsRaw.C_INT.withName("maximum"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecUInt");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfInt minimum$LAYOUT = (OfInt)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint minimum
- * }
- */
- public static final OfInt minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint minimum
- * }
- */
- public static int minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint minimum
- * }
- */
- public static void minimum(MemorySegment struct, int fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfInt maximum$LAYOUT = (OfInt)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint maximum
- * }
- */
- public static final OfInt maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 76;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint maximum
- * }
- */
- public static int maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint maximum
- * }
- */
- public static void maximum(MemorySegment struct, int fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt64.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt64.java
deleted file mode 100644
index 1079f07..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUInt64.java
+++ /dev/null
@@ -1,265 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecUInt64 {
- * GParamSpec parent_instance;
- * guint64 minimum;
- * guint64 maximum;
- * guint64 default_value;
- * }
- * }
- */
-public class _GParamSpecUInt64 {
-
- _GParamSpecUInt64() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_LONG_LONG.withName("minimum"),
- VipsRaw.C_LONG_LONG.withName("maximum"),
- VipsRaw.C_LONG_LONG.withName("default_value")
- ).withName("_GParamSpecUInt64");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfLong minimum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint64 minimum
- * }
- */
- public static final OfLong minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint64 minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint64 minimum
- * }
- */
- public static long minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint64 minimum
- * }
- */
- public static void minimum(MemorySegment struct, long fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfLong maximum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint64 maximum
- * }
- */
- public static final OfLong maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint64 maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint64 maximum
- * }
- */
- public static long maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint64 maximum
- * }
- */
- public static void maximum(MemorySegment struct, long fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfLong default_value$LAYOUT = (OfLong)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint64 default_value
- * }
- */
- public static final OfLong default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint64 default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint64 default_value
- * }
- */
- public static long default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint64 default_value
- * }
- */
- public static void default_value(MemorySegment struct, long fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecULong.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecULong.java
deleted file mode 100644
index d74590c..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecULong.java
+++ /dev/null
@@ -1,265 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecULong {
- * GParamSpec parent_instance;
- * gulong minimum;
- * gulong maximum;
- * gulong default_value;
- * }
- * }
- */
-public class _GParamSpecULong {
-
- _GParamSpecULong() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_LONG.withName("minimum"),
- VipsRaw.C_LONG.withName("maximum"),
- VipsRaw.C_LONG.withName("default_value")
- ).withName("_GParamSpecULong");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfLong minimum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("minimum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gulong minimum
- * }
- */
- public static final OfLong minimum$layout() {
- return minimum$LAYOUT;
- }
-
- private static final long minimum$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gulong minimum
- * }
- */
- public static final long minimum$offset() {
- return minimum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gulong minimum
- * }
- */
- public static long minimum(MemorySegment struct) {
- return struct.get(minimum$LAYOUT, minimum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gulong minimum
- * }
- */
- public static void minimum(MemorySegment struct, long fieldValue) {
- struct.set(minimum$LAYOUT, minimum$OFFSET, fieldValue);
- }
-
- private static final OfLong maximum$LAYOUT = (OfLong)$LAYOUT.select(groupElement("maximum"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gulong maximum
- * }
- */
- public static final OfLong maximum$layout() {
- return maximum$LAYOUT;
- }
-
- private static final long maximum$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gulong maximum
- * }
- */
- public static final long maximum$offset() {
- return maximum$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gulong maximum
- * }
- */
- public static long maximum(MemorySegment struct) {
- return struct.get(maximum$LAYOUT, maximum$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gulong maximum
- * }
- */
- public static void maximum(MemorySegment struct, long fieldValue) {
- struct.set(maximum$LAYOUT, maximum$OFFSET, fieldValue);
- }
-
- private static final OfLong default_value$LAYOUT = (OfLong)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gulong default_value
- * }
- */
- public static final OfLong default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gulong default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gulong default_value
- * }
- */
- public static long default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gulong default_value
- * }
- */
- public static void default_value(MemorySegment struct, long fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUnichar.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUnichar.java
deleted file mode 100644
index 148983c..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecUnichar.java
+++ /dev/null
@@ -1,174 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecUnichar {
- * GParamSpec parent_instance;
- * gunichar default_value;
- * }
- * }
- */
-public class _GParamSpecUnichar {
-
- _GParamSpecUnichar() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_INT.withName("default_value"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecUnichar");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final OfInt default_value$LAYOUT = (OfInt)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gunichar default_value
- * }
- */
- public static final OfInt default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gunichar default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gunichar default_value
- * }
- */
- public static int default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gunichar default_value
- * }
- */
- public static void default_value(MemorySegment struct, int fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecValueArray.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecValueArray.java
deleted file mode 100644
index 4043f05..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecValueArray.java
+++ /dev/null
@@ -1,220 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecValueArray {
- * GParamSpec parent_instance;
- * GParamSpec *element_spec;
- * guint fixed_n_elements;
- * }
- * }
- */
-public class _GParamSpecValueArray {
-
- _GParamSpecValueArray() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("element_spec"),
- VipsRaw.C_INT.withName("fixed_n_elements"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GParamSpecValueArray");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout element_spec$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("element_spec"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec *element_spec
- * }
- */
- public static final AddressLayout element_spec$layout() {
- return element_spec$LAYOUT;
- }
-
- private static final long element_spec$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec *element_spec
- * }
- */
- public static final long element_spec$offset() {
- return element_spec$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec *element_spec
- * }
- */
- public static MemorySegment element_spec(MemorySegment struct) {
- return struct.get(element_spec$LAYOUT, element_spec$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec *element_spec
- * }
- */
- public static void element_spec(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(element_spec$LAYOUT, element_spec$OFFSET, fieldValue);
- }
-
- private static final OfInt fixed_n_elements$LAYOUT = (OfInt)$LAYOUT.select(groupElement("fixed_n_elements"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint fixed_n_elements
- * }
- */
- public static final OfInt fixed_n_elements$layout() {
- return fixed_n_elements$LAYOUT;
- }
-
- private static final long fixed_n_elements$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint fixed_n_elements
- * }
- */
- public static final long fixed_n_elements$offset() {
- return fixed_n_elements$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint fixed_n_elements
- * }
- */
- public static int fixed_n_elements(MemorySegment struct) {
- return struct.get(fixed_n_elements$LAYOUT, fixed_n_elements$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint fixed_n_elements
- * }
- */
- public static void fixed_n_elements(MemorySegment struct, int fieldValue) {
- struct.set(fixed_n_elements$LAYOUT, fixed_n_elements$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecVariant.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecVariant.java
deleted file mode 100644
index 2c10ced..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GParamSpecVariant.java
+++ /dev/null
@@ -1,298 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GParamSpecVariant {
- * GParamSpec parent_instance;
- * GVariantType *type;
- * GVariant *default_value;
- * gpointer padding[4];
- * }
- * }
- */
-public class _GParamSpecVariant {
-
- _GParamSpecVariant() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GParamSpec.layout().withName("parent_instance"),
- VipsRaw.C_POINTER.withName("type"),
- VipsRaw.C_POINTER.withName("default_value"),
- MemoryLayout.sequenceLayout(4, VipsRaw.C_POINTER).withName("padding")
- ).withName("_GParamSpecVariant");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_instance$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_instance"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final GroupLayout parent_instance$layout() {
- return parent_instance$LAYOUT;
- }
-
- private static final long parent_instance$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static final long parent_instance$offset() {
- return parent_instance$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static MemorySegment parent_instance(MemorySegment struct) {
- return struct.asSlice(parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GParamSpec parent_instance
- * }
- */
- public static void parent_instance(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_instance$OFFSET, parent_instance$LAYOUT.byteSize());
- }
-
- private static final AddressLayout type$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("type"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GVariantType *type
- * }
- */
- public static final AddressLayout type$layout() {
- return type$LAYOUT;
- }
-
- private static final long type$OFFSET = 72;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GVariantType *type
- * }
- */
- public static final long type$offset() {
- return type$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GVariantType *type
- * }
- */
- public static MemorySegment type(MemorySegment struct) {
- return struct.get(type$LAYOUT, type$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GVariantType *type
- * }
- */
- public static void type(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(type$LAYOUT, type$OFFSET, fieldValue);
- }
-
- private static final AddressLayout default_value$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("default_value"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GVariant *default_value
- * }
- */
- public static final AddressLayout default_value$layout() {
- return default_value$LAYOUT;
- }
-
- private static final long default_value$OFFSET = 80;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GVariant *default_value
- * }
- */
- public static final long default_value$offset() {
- return default_value$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GVariant *default_value
- * }
- */
- public static MemorySegment default_value(MemorySegment struct) {
- return struct.get(default_value$LAYOUT, default_value$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GVariant *default_value
- * }
- */
- public static void default_value(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(default_value$LAYOUT, default_value$OFFSET, fieldValue);
- }
-
- private static final SequenceLayout padding$LAYOUT = (SequenceLayout)$LAYOUT.select(groupElement("padding"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static final SequenceLayout padding$layout() {
- return padding$LAYOUT;
- }
-
- private static final long padding$OFFSET = 88;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static final long padding$offset() {
- return padding$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static MemorySegment padding(MemorySegment struct) {
- return struct.asSlice(padding$OFFSET, padding$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static void padding(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, padding$OFFSET, padding$LAYOUT.byteSize());
- }
-
- private static long[] padding$DIMS = { 4 };
-
- /**
- * Dimensions for array field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static long[] padding$dimensions() {
- return padding$DIMS;
- }
- private static final VarHandle padding$ELEM_HANDLE = padding$LAYOUT.varHandle(sequenceElement());
-
- /**
- * Indexed getter for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static MemorySegment padding(MemorySegment struct, long index0) {
- return (MemorySegment)padding$ELEM_HANDLE.get(struct, 0L, index0);
- }
-
- /**
- * Indexed setter for field:
- * {@snippet lang=c :
- * gpointer padding[4]
- * }
- */
- public static void padding(MemorySegment struct, long index0, MemorySegment fieldValue) {
- padding$ELEM_HANDLE.set(struct, 0L, index0, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_GValueArray.java b/core/src/main/java/app/photofox/vipsffm/jextract/_GValueArray.java
deleted file mode 100644
index cb899b7..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_GValueArray.java
+++ /dev/null
@@ -1,221 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _GValueArray {
- * guint n_values;
- * GValue *values;
- * guint n_prealloced;
- * }
- * }
- */
-public class _GValueArray {
-
- _GValueArray() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- VipsRaw.C_INT.withName("n_values"),
- MemoryLayout.paddingLayout(4),
- VipsRaw.C_POINTER.withName("values"),
- VipsRaw.C_INT.withName("n_prealloced"),
- MemoryLayout.paddingLayout(4)
- ).withName("_GValueArray");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final OfInt n_values$LAYOUT = (OfInt)$LAYOUT.select(groupElement("n_values"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint n_values
- * }
- */
- public static final OfInt n_values$layout() {
- return n_values$LAYOUT;
- }
-
- private static final long n_values$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint n_values
- * }
- */
- public static final long n_values$offset() {
- return n_values$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint n_values
- * }
- */
- public static int n_values(MemorySegment struct) {
- return struct.get(n_values$LAYOUT, n_values$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint n_values
- * }
- */
- public static void n_values(MemorySegment struct, int fieldValue) {
- struct.set(n_values$LAYOUT, n_values$OFFSET, fieldValue);
- }
-
- private static final AddressLayout values$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("values"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GValue *values
- * }
- */
- public static final AddressLayout values$layout() {
- return values$LAYOUT;
- }
-
- private static final long values$OFFSET = 8;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GValue *values
- * }
- */
- public static final long values$offset() {
- return values$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GValue *values
- * }
- */
- public static MemorySegment values(MemorySegment struct) {
- return struct.get(values$LAYOUT, values$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GValue *values
- * }
- */
- public static void values(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(values$LAYOUT, values$OFFSET, fieldValue);
- }
-
- private static final OfInt n_prealloced$LAYOUT = (OfInt)$LAYOUT.select(groupElement("n_prealloced"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * guint n_prealloced
- * }
- */
- public static final OfInt n_prealloced$layout() {
- return n_prealloced$LAYOUT;
- }
-
- private static final long n_prealloced$OFFSET = 16;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * guint n_prealloced
- * }
- */
- public static final long n_prealloced$offset() {
- return n_prealloced$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * guint n_prealloced
- * }
- */
- public static int n_prealloced(MemorySegment struct) {
- return struct.get(n_prealloced$LAYOUT, n_prealloced$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * guint n_prealloced
- * }
- */
- public static void n_prealloced(MemorySegment struct, int fieldValue) {
- struct.set(n_prealloced$LAYOUT, n_prealloced$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsConnectionClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/_VipsConnectionClass.java
deleted file mode 100644
index 1389cfa..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsConnectionClass.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _VipsConnectionClass {
- * VipsObjectClass parent_class;
- * }
- * }
- */
-public class _VipsConnectionClass {
-
- _VipsConnectionClass() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _VipsObjectClass.layout().withName("parent_class")
- ).withName("_VipsConnectionClass");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsObjectClass parent_class
- * }
- */
- public static final GroupLayout parent_class$layout() {
- return parent_class$LAYOUT;
- }
-
- private static final long parent_class$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsObjectClass parent_class
- * }
- */
- public static final long parent_class$offset() {
- return parent_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsObjectClass parent_class
- * }
- */
- public static MemorySegment parent_class(MemorySegment struct) {
- return struct.asSlice(parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsObjectClass parent_class
- * }
- */
- public static void parent_class(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsObjectClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/_VipsObjectClass.java
deleted file mode 100644
index 73f7929..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsObjectClass.java
+++ /dev/null
@@ -1,2137 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _VipsObjectClass {
- * GObjectClass parent_class;
- * int (*build)(VipsObject *);
- * int (*postbuild)(VipsObject *, void *);
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *);
- * void (*summary)(VipsObject *, VipsBuf *);
- * void (*dump)(VipsObject *, VipsBuf *);
- * void (*sanity)(VipsObject *, VipsBuf *);
- * void (*rewind)(VipsObject *);
- * void (*preclose)(VipsObject *);
- * void (*close)(VipsObject *);
- * void (*postclose)(VipsObject *);
- * VipsObject *(*new_from_string)(const char *);
- * void (*to_string)(VipsObject *, VipsBuf *);
- * gboolean output_needs_arg;
- * int (*output_to_arg)(VipsObject *, const char *);
- * const char *nickname;
- * const char *description;
- * VipsArgumentTable *argument_table;
- * GSList *argument_table_traverse;
- * GType argument_table_traverse_gtype;
- * gboolean deprecated;
- * void (*_vips_reserved1)(void);
- * void (*_vips_reserved2)(void);
- * void (*_vips_reserved3)(void);
- * void (*_vips_reserved4)(void);
- * }
- * }
- */
-public class _VipsObjectClass {
-
- _VipsObjectClass() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _GObjectClass.layout().withName("parent_class"),
- VipsRaw.C_POINTER.withName("build"),
- VipsRaw.C_POINTER.withName("postbuild"),
- VipsRaw.C_POINTER.withName("summary_class"),
- VipsRaw.C_POINTER.withName("summary"),
- VipsRaw.C_POINTER.withName("dump"),
- VipsRaw.C_POINTER.withName("sanity"),
- VipsRaw.C_POINTER.withName("rewind"),
- VipsRaw.C_POINTER.withName("preclose"),
- VipsRaw.C_POINTER.withName("close"),
- VipsRaw.C_POINTER.withName("postclose"),
- VipsRaw.C_POINTER.withName("new_from_string"),
- VipsRaw.C_POINTER.withName("to_string"),
- VipsRaw.C_INT.withName("output_needs_arg"),
- MemoryLayout.paddingLayout(4),
- VipsRaw.C_POINTER.withName("output_to_arg"),
- VipsRaw.C_POINTER.withName("nickname"),
- VipsRaw.C_POINTER.withName("description"),
- VipsRaw.C_POINTER.withName("argument_table"),
- VipsRaw.C_POINTER.withName("argument_table_traverse"),
- VipsRaw.C_LONG.withName("argument_table_traverse_gtype"),
- VipsRaw.C_INT.withName("deprecated"),
- MemoryLayout.paddingLayout(4),
- VipsRaw.C_POINTER.withName("_vips_reserved1"),
- VipsRaw.C_POINTER.withName("_vips_reserved2"),
- VipsRaw.C_POINTER.withName("_vips_reserved3"),
- VipsRaw.C_POINTER.withName("_vips_reserved4")
- ).withName("_VipsObjectClass");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GObjectClass parent_class
- * }
- */
- public static final GroupLayout parent_class$layout() {
- return parent_class$LAYOUT;
- }
-
- private static final long parent_class$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GObjectClass parent_class
- * }
- */
- public static final long parent_class$offset() {
- return parent_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GObjectClass parent_class
- * }
- */
- public static MemorySegment parent_class(MemorySegment struct) {
- return struct.asSlice(parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GObjectClass parent_class
- * }
- */
- public static void parent_class(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * {@snippet lang=c :
- * int (*build)(VipsObject *)
- * }
- */
- public static class build {
-
- build() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(build.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(build.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout build$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("build"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * int (*build)(VipsObject *)
- * }
- */
- public static final AddressLayout build$layout() {
- return build$LAYOUT;
- }
-
- private static final long build$OFFSET = 136;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * int (*build)(VipsObject *)
- * }
- */
- public static final long build$offset() {
- return build$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * int (*build)(VipsObject *)
- * }
- */
- public static MemorySegment build(MemorySegment struct) {
- return struct.get(build$LAYOUT, build$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * int (*build)(VipsObject *)
- * }
- */
- public static void build(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(build$LAYOUT, build$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * int (*postbuild)(VipsObject *, void *)
- * }
- */
- public static class postbuild {
-
- postbuild() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(postbuild.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(postbuild.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout postbuild$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("postbuild"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * int (*postbuild)(VipsObject *, void *)
- * }
- */
- public static final AddressLayout postbuild$layout() {
- return postbuild$LAYOUT;
- }
-
- private static final long postbuild$OFFSET = 144;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * int (*postbuild)(VipsObject *, void *)
- * }
- */
- public static final long postbuild$offset() {
- return postbuild$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * int (*postbuild)(VipsObject *, void *)
- * }
- */
- public static MemorySegment postbuild(MemorySegment struct) {
- return struct.get(postbuild$LAYOUT, postbuild$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * int (*postbuild)(VipsObject *, void *)
- * }
- */
- public static void postbuild(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(postbuild$LAYOUT, postbuild$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *)
- * }
- */
- public static class summary_class {
-
- summary_class() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(summary_class.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(summary_class.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout summary_class$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("summary_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *)
- * }
- */
- public static final AddressLayout summary_class$layout() {
- return summary_class$LAYOUT;
- }
-
- private static final long summary_class$OFFSET = 152;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *)
- * }
- */
- public static final long summary_class$offset() {
- return summary_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *)
- * }
- */
- public static MemorySegment summary_class(MemorySegment struct) {
- return struct.get(summary_class$LAYOUT, summary_class$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*summary_class)(struct _VipsObjectClass *, VipsBuf *)
- * }
- */
- public static void summary_class(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(summary_class$LAYOUT, summary_class$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*summary)(VipsObject *, VipsBuf *)
- * }
- */
- public static class summary {
-
- summary() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(summary.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(summary.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout summary$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("summary"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*summary)(VipsObject *, VipsBuf *)
- * }
- */
- public static final AddressLayout summary$layout() {
- return summary$LAYOUT;
- }
-
- private static final long summary$OFFSET = 160;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*summary)(VipsObject *, VipsBuf *)
- * }
- */
- public static final long summary$offset() {
- return summary$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*summary)(VipsObject *, VipsBuf *)
- * }
- */
- public static MemorySegment summary(MemorySegment struct) {
- return struct.get(summary$LAYOUT, summary$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*summary)(VipsObject *, VipsBuf *)
- * }
- */
- public static void summary(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(summary$LAYOUT, summary$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*dump)(VipsObject *, VipsBuf *)
- * }
- */
- public static class dump {
-
- dump() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(dump.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(dump.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout dump$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("dump"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*dump)(VipsObject *, VipsBuf *)
- * }
- */
- public static final AddressLayout dump$layout() {
- return dump$LAYOUT;
- }
-
- private static final long dump$OFFSET = 168;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*dump)(VipsObject *, VipsBuf *)
- * }
- */
- public static final long dump$offset() {
- return dump$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*dump)(VipsObject *, VipsBuf *)
- * }
- */
- public static MemorySegment dump(MemorySegment struct) {
- return struct.get(dump$LAYOUT, dump$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*dump)(VipsObject *, VipsBuf *)
- * }
- */
- public static void dump(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(dump$LAYOUT, dump$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*sanity)(VipsObject *, VipsBuf *)
- * }
- */
- public static class sanity {
-
- sanity() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(sanity.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(sanity.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout sanity$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("sanity"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*sanity)(VipsObject *, VipsBuf *)
- * }
- */
- public static final AddressLayout sanity$layout() {
- return sanity$LAYOUT;
- }
-
- private static final long sanity$OFFSET = 176;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*sanity)(VipsObject *, VipsBuf *)
- * }
- */
- public static final long sanity$offset() {
- return sanity$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*sanity)(VipsObject *, VipsBuf *)
- * }
- */
- public static MemorySegment sanity(MemorySegment struct) {
- return struct.get(sanity$LAYOUT, sanity$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*sanity)(VipsObject *, VipsBuf *)
- * }
- */
- public static void sanity(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(sanity$LAYOUT, sanity$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*rewind)(VipsObject *)
- * }
- */
- public static class rewind {
-
- rewind() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(rewind.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(rewind.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout rewind$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("rewind"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*rewind)(VipsObject *)
- * }
- */
- public static final AddressLayout rewind$layout() {
- return rewind$LAYOUT;
- }
-
- private static final long rewind$OFFSET = 184;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*rewind)(VipsObject *)
- * }
- */
- public static final long rewind$offset() {
- return rewind$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*rewind)(VipsObject *)
- * }
- */
- public static MemorySegment rewind(MemorySegment struct) {
- return struct.get(rewind$LAYOUT, rewind$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*rewind)(VipsObject *)
- * }
- */
- public static void rewind(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(rewind$LAYOUT, rewind$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*preclose)(VipsObject *)
- * }
- */
- public static class preclose {
-
- preclose() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(preclose.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(preclose.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout preclose$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("preclose"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*preclose)(VipsObject *)
- * }
- */
- public static final AddressLayout preclose$layout() {
- return preclose$LAYOUT;
- }
-
- private static final long preclose$OFFSET = 192;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*preclose)(VipsObject *)
- * }
- */
- public static final long preclose$offset() {
- return preclose$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*preclose)(VipsObject *)
- * }
- */
- public static MemorySegment preclose(MemorySegment struct) {
- return struct.get(preclose$LAYOUT, preclose$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*preclose)(VipsObject *)
- * }
- */
- public static void preclose(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(preclose$LAYOUT, preclose$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*close)(VipsObject *)
- * }
- */
- public static class close {
-
- close() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(close.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(close.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout close$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("close"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*close)(VipsObject *)
- * }
- */
- public static final AddressLayout close$layout() {
- return close$LAYOUT;
- }
-
- private static final long close$OFFSET = 200;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*close)(VipsObject *)
- * }
- */
- public static final long close$offset() {
- return close$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*close)(VipsObject *)
- * }
- */
- public static MemorySegment close(MemorySegment struct) {
- return struct.get(close$LAYOUT, close$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*close)(VipsObject *)
- * }
- */
- public static void close(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(close$LAYOUT, close$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*postclose)(VipsObject *)
- * }
- */
- public static class postclose {
-
- postclose() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(postclose.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(postclose.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout postclose$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("postclose"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*postclose)(VipsObject *)
- * }
- */
- public static final AddressLayout postclose$layout() {
- return postclose$LAYOUT;
- }
-
- private static final long postclose$OFFSET = 208;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*postclose)(VipsObject *)
- * }
- */
- public static final long postclose$offset() {
- return postclose$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*postclose)(VipsObject *)
- * }
- */
- public static MemorySegment postclose(MemorySegment struct) {
- return struct.get(postclose$LAYOUT, postclose$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*postclose)(VipsObject *)
- * }
- */
- public static void postclose(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(postclose$LAYOUT, postclose$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * VipsObject *(*new_from_string)(const char *)
- * }
- */
- public static class new_from_string {
-
- new_from_string() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- MemorySegment apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(new_from_string.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(new_from_string.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static MemorySegment invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- return (MemorySegment) DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout new_from_string$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("new_from_string"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsObject *(*new_from_string)(const char *)
- * }
- */
- public static final AddressLayout new_from_string$layout() {
- return new_from_string$LAYOUT;
- }
-
- private static final long new_from_string$OFFSET = 216;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsObject *(*new_from_string)(const char *)
- * }
- */
- public static final long new_from_string$offset() {
- return new_from_string$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsObject *(*new_from_string)(const char *)
- * }
- */
- public static MemorySegment new_from_string(MemorySegment struct) {
- return struct.get(new_from_string$LAYOUT, new_from_string$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsObject *(*new_from_string)(const char *)
- * }
- */
- public static void new_from_string(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(new_from_string$LAYOUT, new_from_string$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*to_string)(VipsObject *, VipsBuf *)
- * }
- */
- public static class to_string {
-
- to_string() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(to_string.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(to_string.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout to_string$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("to_string"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*to_string)(VipsObject *, VipsBuf *)
- * }
- */
- public static final AddressLayout to_string$layout() {
- return to_string$LAYOUT;
- }
-
- private static final long to_string$OFFSET = 224;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*to_string)(VipsObject *, VipsBuf *)
- * }
- */
- public static final long to_string$offset() {
- return to_string$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*to_string)(VipsObject *, VipsBuf *)
- * }
- */
- public static MemorySegment to_string(MemorySegment struct) {
- return struct.get(to_string$LAYOUT, to_string$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*to_string)(VipsObject *, VipsBuf *)
- * }
- */
- public static void to_string(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(to_string$LAYOUT, to_string$OFFSET, fieldValue);
- }
-
- private static final OfInt output_needs_arg$LAYOUT = (OfInt)$LAYOUT.select(groupElement("output_needs_arg"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean output_needs_arg
- * }
- */
- public static final OfInt output_needs_arg$layout() {
- return output_needs_arg$LAYOUT;
- }
-
- private static final long output_needs_arg$OFFSET = 232;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean output_needs_arg
- * }
- */
- public static final long output_needs_arg$offset() {
- return output_needs_arg$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean output_needs_arg
- * }
- */
- public static int output_needs_arg(MemorySegment struct) {
- return struct.get(output_needs_arg$LAYOUT, output_needs_arg$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean output_needs_arg
- * }
- */
- public static void output_needs_arg(MemorySegment struct, int fieldValue) {
- struct.set(output_needs_arg$LAYOUT, output_needs_arg$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * int (*output_to_arg)(VipsObject *, const char *)
- * }
- */
- public static class output_to_arg {
-
- output_to_arg() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0, MemorySegment _x1);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(output_to_arg.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(output_to_arg.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0, _x1);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout output_to_arg$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("output_to_arg"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * int (*output_to_arg)(VipsObject *, const char *)
- * }
- */
- public static final AddressLayout output_to_arg$layout() {
- return output_to_arg$LAYOUT;
- }
-
- private static final long output_to_arg$OFFSET = 240;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * int (*output_to_arg)(VipsObject *, const char *)
- * }
- */
- public static final long output_to_arg$offset() {
- return output_to_arg$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * int (*output_to_arg)(VipsObject *, const char *)
- * }
- */
- public static MemorySegment output_to_arg(MemorySegment struct) {
- return struct.get(output_to_arg$LAYOUT, output_to_arg$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * int (*output_to_arg)(VipsObject *, const char *)
- * }
- */
- public static void output_to_arg(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(output_to_arg$LAYOUT, output_to_arg$OFFSET, fieldValue);
- }
-
- private static final AddressLayout nickname$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("nickname"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * const char *nickname
- * }
- */
- public static final AddressLayout nickname$layout() {
- return nickname$LAYOUT;
- }
-
- private static final long nickname$OFFSET = 248;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * const char *nickname
- * }
- */
- public static final long nickname$offset() {
- return nickname$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * const char *nickname
- * }
- */
- public static MemorySegment nickname(MemorySegment struct) {
- return struct.get(nickname$LAYOUT, nickname$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * const char *nickname
- * }
- */
- public static void nickname(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(nickname$LAYOUT, nickname$OFFSET, fieldValue);
- }
-
- private static final AddressLayout description$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("description"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * const char *description
- * }
- */
- public static final AddressLayout description$layout() {
- return description$LAYOUT;
- }
-
- private static final long description$OFFSET = 256;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * const char *description
- * }
- */
- public static final long description$offset() {
- return description$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * const char *description
- * }
- */
- public static MemorySegment description(MemorySegment struct) {
- return struct.get(description$LAYOUT, description$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * const char *description
- * }
- */
- public static void description(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(description$LAYOUT, description$OFFSET, fieldValue);
- }
-
- private static final AddressLayout argument_table$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("argument_table"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsArgumentTable *argument_table
- * }
- */
- public static final AddressLayout argument_table$layout() {
- return argument_table$LAYOUT;
- }
-
- private static final long argument_table$OFFSET = 264;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsArgumentTable *argument_table
- * }
- */
- public static final long argument_table$offset() {
- return argument_table$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsArgumentTable *argument_table
- * }
- */
- public static MemorySegment argument_table(MemorySegment struct) {
- return struct.get(argument_table$LAYOUT, argument_table$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsArgumentTable *argument_table
- * }
- */
- public static void argument_table(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(argument_table$LAYOUT, argument_table$OFFSET, fieldValue);
- }
-
- private static final AddressLayout argument_table_traverse$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("argument_table_traverse"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GSList *argument_table_traverse
- * }
- */
- public static final AddressLayout argument_table_traverse$layout() {
- return argument_table_traverse$LAYOUT;
- }
-
- private static final long argument_table_traverse$OFFSET = 272;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GSList *argument_table_traverse
- * }
- */
- public static final long argument_table_traverse$offset() {
- return argument_table_traverse$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GSList *argument_table_traverse
- * }
- */
- public static MemorySegment argument_table_traverse(MemorySegment struct) {
- return struct.get(argument_table_traverse$LAYOUT, argument_table_traverse$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GSList *argument_table_traverse
- * }
- */
- public static void argument_table_traverse(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(argument_table_traverse$LAYOUT, argument_table_traverse$OFFSET, fieldValue);
- }
-
- private static final OfLong argument_table_traverse_gtype$LAYOUT = (OfLong)$LAYOUT.select(groupElement("argument_table_traverse_gtype"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * GType argument_table_traverse_gtype
- * }
- */
- public static final OfLong argument_table_traverse_gtype$layout() {
- return argument_table_traverse_gtype$LAYOUT;
- }
-
- private static final long argument_table_traverse_gtype$OFFSET = 280;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * GType argument_table_traverse_gtype
- * }
- */
- public static final long argument_table_traverse_gtype$offset() {
- return argument_table_traverse_gtype$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * GType argument_table_traverse_gtype
- * }
- */
- public static long argument_table_traverse_gtype(MemorySegment struct) {
- return struct.get(argument_table_traverse_gtype$LAYOUT, argument_table_traverse_gtype$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * GType argument_table_traverse_gtype
- * }
- */
- public static void argument_table_traverse_gtype(MemorySegment struct, long fieldValue) {
- struct.set(argument_table_traverse_gtype$LAYOUT, argument_table_traverse_gtype$OFFSET, fieldValue);
- }
-
- private static final OfInt deprecated$LAYOUT = (OfInt)$LAYOUT.select(groupElement("deprecated"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gboolean deprecated
- * }
- */
- public static final OfInt deprecated$layout() {
- return deprecated$LAYOUT;
- }
-
- private static final long deprecated$OFFSET = 288;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gboolean deprecated
- * }
- */
- public static final long deprecated$offset() {
- return deprecated$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gboolean deprecated
- * }
- */
- public static int deprecated(MemorySegment struct) {
- return struct.get(deprecated$LAYOUT, deprecated$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gboolean deprecated
- * }
- */
- public static void deprecated(MemorySegment struct, int fieldValue) {
- struct.set(deprecated$LAYOUT, deprecated$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*_vips_reserved1)(void)
- * }
- */
- public static class _vips_reserved1 {
-
- _vips_reserved1() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply();
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(_vips_reserved1.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(_vips_reserved1.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr) {
- try {
- DOWN$MH.invokeExact(funcPtr);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout _vips_reserved1$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_vips_reserved1"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*_vips_reserved1)(void)
- * }
- */
- public static final AddressLayout _vips_reserved1$layout() {
- return _vips_reserved1$LAYOUT;
- }
-
- private static final long _vips_reserved1$OFFSET = 296;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*_vips_reserved1)(void)
- * }
- */
- public static final long _vips_reserved1$offset() {
- return _vips_reserved1$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved1)(void)
- * }
- */
- public static MemorySegment _vips_reserved1(MemorySegment struct) {
- return struct.get(_vips_reserved1$LAYOUT, _vips_reserved1$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved1)(void)
- * }
- */
- public static void _vips_reserved1(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(_vips_reserved1$LAYOUT, _vips_reserved1$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*_vips_reserved2)(void)
- * }
- */
- public static class _vips_reserved2 {
-
- _vips_reserved2() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply();
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(_vips_reserved2.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(_vips_reserved2.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr) {
- try {
- DOWN$MH.invokeExact(funcPtr);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout _vips_reserved2$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_vips_reserved2"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*_vips_reserved2)(void)
- * }
- */
- public static final AddressLayout _vips_reserved2$layout() {
- return _vips_reserved2$LAYOUT;
- }
-
- private static final long _vips_reserved2$OFFSET = 304;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*_vips_reserved2)(void)
- * }
- */
- public static final long _vips_reserved2$offset() {
- return _vips_reserved2$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved2)(void)
- * }
- */
- public static MemorySegment _vips_reserved2(MemorySegment struct) {
- return struct.get(_vips_reserved2$LAYOUT, _vips_reserved2$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved2)(void)
- * }
- */
- public static void _vips_reserved2(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(_vips_reserved2$LAYOUT, _vips_reserved2$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*_vips_reserved3)(void)
- * }
- */
- public static class _vips_reserved3 {
-
- _vips_reserved3() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply();
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(_vips_reserved3.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(_vips_reserved3.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr) {
- try {
- DOWN$MH.invokeExact(funcPtr);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout _vips_reserved3$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_vips_reserved3"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*_vips_reserved3)(void)
- * }
- */
- public static final AddressLayout _vips_reserved3$layout() {
- return _vips_reserved3$LAYOUT;
- }
-
- private static final long _vips_reserved3$OFFSET = 312;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*_vips_reserved3)(void)
- * }
- */
- public static final long _vips_reserved3$offset() {
- return _vips_reserved3$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved3)(void)
- * }
- */
- public static MemorySegment _vips_reserved3(MemorySegment struct) {
- return struct.get(_vips_reserved3$LAYOUT, _vips_reserved3$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved3)(void)
- * }
- */
- public static void _vips_reserved3(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(_vips_reserved3$LAYOUT, _vips_reserved3$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*_vips_reserved4)(void)
- * }
- */
- public static class _vips_reserved4 {
-
- _vips_reserved4() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply();
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid();
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(_vips_reserved4.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(_vips_reserved4.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr) {
- try {
- DOWN$MH.invokeExact(funcPtr);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout _vips_reserved4$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("_vips_reserved4"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*_vips_reserved4)(void)
- * }
- */
- public static final AddressLayout _vips_reserved4$layout() {
- return _vips_reserved4$LAYOUT;
- }
-
- private static final long _vips_reserved4$OFFSET = 320;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*_vips_reserved4)(void)
- * }
- */
- public static final long _vips_reserved4$offset() {
- return _vips_reserved4$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved4)(void)
- * }
- */
- public static MemorySegment _vips_reserved4(MemorySegment struct) {
- return struct.get(_vips_reserved4$LAYOUT, _vips_reserved4$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*_vips_reserved4)(void)
- * }
- */
- public static void _vips_reserved4(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(_vips_reserved4$LAYOUT, _vips_reserved4$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetClass.java
deleted file mode 100644
index 04632de..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetClass.java
+++ /dev/null
@@ -1,632 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _VipsTargetClass {
- * VipsConnectionClass parent_class;
- * gint64 (*write)(VipsTarget *, const void *, size_t);
- * void (*finish)(VipsTarget *);
- * gint64 (*read)(VipsTarget *, void *, size_t);
- * gint64 (*seek)(VipsTarget *, gint64, int);
- * int (*end)(VipsTarget *);
- * }
- * }
- */
-public class _VipsTargetClass {
-
- _VipsTargetClass() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _VipsConnectionClass.layout().withName("parent_class"),
- VipsRaw.C_POINTER.withName("write"),
- VipsRaw.C_POINTER.withName("finish"),
- VipsRaw.C_POINTER.withName("read"),
- VipsRaw.C_POINTER.withName("seek"),
- VipsRaw.C_POINTER.withName("end")
- ).withName("_VipsTargetClass");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsConnectionClass parent_class
- * }
- */
- public static final GroupLayout parent_class$layout() {
- return parent_class$LAYOUT;
- }
-
- private static final long parent_class$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsConnectionClass parent_class
- * }
- */
- public static final long parent_class$offset() {
- return parent_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsConnectionClass parent_class
- * }
- */
- public static MemorySegment parent_class(MemorySegment struct) {
- return struct.asSlice(parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsConnectionClass parent_class
- * }
- */
- public static void parent_class(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*write)(VipsTarget *, const void *, size_t)
- * }
- */
- public static class write {
-
- write() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, MemorySegment _x1, long _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(write.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(write.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout write$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("write"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTarget *, const void *, size_t)
- * }
- */
- public static final AddressLayout write$layout() {
- return write$LAYOUT;
- }
-
- private static final long write$OFFSET = 328;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTarget *, const void *, size_t)
- * }
- */
- public static final long write$offset() {
- return write$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTarget *, const void *, size_t)
- * }
- */
- public static MemorySegment write(MemorySegment struct) {
- return struct.get(write$LAYOUT, write$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTarget *, const void *, size_t)
- * }
- */
- public static void write(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(write$LAYOUT, write$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*finish)(VipsTarget *)
- * }
- */
- public static class finish {
-
- finish() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(finish.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(finish.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout finish$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("finish"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTarget *)
- * }
- */
- public static final AddressLayout finish$layout() {
- return finish$LAYOUT;
- }
-
- private static final long finish$OFFSET = 336;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTarget *)
- * }
- */
- public static final long finish$offset() {
- return finish$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTarget *)
- * }
- */
- public static MemorySegment finish(MemorySegment struct) {
- return struct.get(finish$LAYOUT, finish$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTarget *)
- * }
- */
- public static void finish(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(finish$LAYOUT, finish$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*read)(VipsTarget *, void *, size_t)
- * }
- */
- public static class read {
-
- read() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, MemorySegment _x1, long _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(read.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(read.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout read$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("read"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTarget *, void *, size_t)
- * }
- */
- public static final AddressLayout read$layout() {
- return read$LAYOUT;
- }
-
- private static final long read$OFFSET = 344;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTarget *, void *, size_t)
- * }
- */
- public static final long read$offset() {
- return read$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTarget *, void *, size_t)
- * }
- */
- public static MemorySegment read(MemorySegment struct) {
- return struct.get(read$LAYOUT, read$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTarget *, void *, size_t)
- * }
- */
- public static void read(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(read$LAYOUT, read$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTarget *, gint64, int)
- * }
- */
- public static class seek {
-
- seek() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, long _x1, int _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_INT
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(seek.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(seek.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout seek$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("seek"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTarget *, gint64, int)
- * }
- */
- public static final AddressLayout seek$layout() {
- return seek$LAYOUT;
- }
-
- private static final long seek$OFFSET = 352;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTarget *, gint64, int)
- * }
- */
- public static final long seek$offset() {
- return seek$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTarget *, gint64, int)
- * }
- */
- public static MemorySegment seek(MemorySegment struct) {
- return struct.get(seek$LAYOUT, seek$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTarget *, gint64, int)
- * }
- */
- public static void seek(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(seek$LAYOUT, seek$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * int (*end)(VipsTarget *)
- * }
- */
- public static class end {
-
- end() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(end.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(end.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("end"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * int (*end)(VipsTarget *)
- * }
- */
- public static final AddressLayout end$layout() {
- return end$LAYOUT;
- }
-
- private static final long end$OFFSET = 360;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * int (*end)(VipsTarget *)
- * }
- */
- public static final long end$offset() {
- return end$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * int (*end)(VipsTarget *)
- * }
- */
- public static MemorySegment end(MemorySegment struct) {
- return struct.get(end$LAYOUT, end$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * int (*end)(VipsTarget *)
- * }
- */
- public static void end(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(end$LAYOUT, end$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustom.java b/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustom.java
deleted file mode 100644
index 26329cb..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustom.java
+++ /dev/null
@@ -1,127 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _VipsTargetCustom {
- * VipsTarget parent_object;
- * }
- * }
- */
-public class _VipsTargetCustom {
-
- _VipsTargetCustom() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _VipsTarget.layout().withName("parent_object")
- ).withName("_VipsTargetCustom");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_object$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_object"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsTarget parent_object
- * }
- */
- public static final GroupLayout parent_object$layout() {
- return parent_object$LAYOUT;
- }
-
- private static final long parent_object$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsTarget parent_object
- * }
- */
- public static final long parent_object$offset() {
- return parent_object$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsTarget parent_object
- * }
- */
- public static MemorySegment parent_object(MemorySegment struct) {
- return struct.asSlice(parent_object$OFFSET, parent_object$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsTarget parent_object
- * }
- */
- public static void parent_object(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_object$OFFSET, parent_object$LAYOUT.byteSize());
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustomClass.java b/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustomClass.java
deleted file mode 100644
index ab2a9fe..0000000
--- a/core/src/main/java/app/photofox/vipsffm/jextract/_VipsTargetCustomClass.java
+++ /dev/null
@@ -1,632 +0,0 @@
-// Generated by jextract
-
-package app.photofox.vipsffm.jextract;
-
-import java.lang.invoke.*;
-import java.lang.foreign.*;
-import java.nio.ByteOrder;
-import java.util.*;
-import java.util.function.*;
-import java.util.stream.*;
-
-import static java.lang.foreign.ValueLayout.*;
-import static java.lang.foreign.MemoryLayout.PathElement.*;
-
-/**
- * {@snippet lang=c :
- * struct _VipsTargetCustomClass {
- * VipsTargetClass parent_class;
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64);
- * void (*finish)(VipsTargetCustom *);
- * gint64 (*read)(VipsTargetCustom *, void *, gint64);
- * gint64 (*seek)(VipsTargetCustom *, gint64, int);
- * int (*end)(VipsTargetCustom *);
- * }
- * }
- */
-public class _VipsTargetCustomClass {
-
- _VipsTargetCustomClass() {
- // Should not be called directly
- }
-
- private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
- _VipsTargetClass.layout().withName("parent_class"),
- VipsRaw.C_POINTER.withName("write"),
- VipsRaw.C_POINTER.withName("finish"),
- VipsRaw.C_POINTER.withName("read"),
- VipsRaw.C_POINTER.withName("seek"),
- VipsRaw.C_POINTER.withName("end")
- ).withName("_VipsTargetCustomClass");
-
- /**
- * The layout of this struct
- */
- public static final GroupLayout layout() {
- return $LAYOUT;
- }
-
- private static final GroupLayout parent_class$LAYOUT = (GroupLayout)$LAYOUT.select(groupElement("parent_class"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * VipsTargetClass parent_class
- * }
- */
- public static final GroupLayout parent_class$layout() {
- return parent_class$LAYOUT;
- }
-
- private static final long parent_class$OFFSET = 0;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * VipsTargetClass parent_class
- * }
- */
- public static final long parent_class$offset() {
- return parent_class$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * VipsTargetClass parent_class
- * }
- */
- public static MemorySegment parent_class(MemorySegment struct) {
- return struct.asSlice(parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * VipsTargetClass parent_class
- * }
- */
- public static void parent_class(MemorySegment struct, MemorySegment fieldValue) {
- MemorySegment.copy(fieldValue, 0L, struct, parent_class$OFFSET, parent_class$LAYOUT.byteSize());
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64)
- * }
- */
- public static class write {
-
- write() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, MemorySegment _x1, long _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG_LONG
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(write.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(write.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout write$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("write"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64)
- * }
- */
- public static final AddressLayout write$layout() {
- return write$LAYOUT;
- }
-
- private static final long write$OFFSET = 368;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64)
- * }
- */
- public static final long write$offset() {
- return write$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64)
- * }
- */
- public static MemorySegment write(MemorySegment struct) {
- return struct.get(write$LAYOUT, write$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*write)(VipsTargetCustom *, const void *, gint64)
- * }
- */
- public static void write(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(write$LAYOUT, write$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * void (*finish)(VipsTargetCustom *)
- * }
- */
- public static class finish {
-
- finish() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- void apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.ofVoid(
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(finish.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(finish.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static void invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout finish$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("finish"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTargetCustom *)
- * }
- */
- public static final AddressLayout finish$layout() {
- return finish$LAYOUT;
- }
-
- private static final long finish$OFFSET = 376;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTargetCustom *)
- * }
- */
- public static final long finish$offset() {
- return finish$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTargetCustom *)
- * }
- */
- public static MemorySegment finish(MemorySegment struct) {
- return struct.get(finish$LAYOUT, finish$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * void (*finish)(VipsTargetCustom *)
- * }
- */
- public static void finish(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(finish$LAYOUT, finish$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*read)(VipsTargetCustom *, void *, gint64)
- * }
- */
- public static class read {
-
- read() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, MemorySegment _x1, long _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG_LONG
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(read.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(read.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, MemorySegment _x1, long _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout read$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("read"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTargetCustom *, void *, gint64)
- * }
- */
- public static final AddressLayout read$layout() {
- return read$LAYOUT;
- }
-
- private static final long read$OFFSET = 384;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTargetCustom *, void *, gint64)
- * }
- */
- public static final long read$offset() {
- return read$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTargetCustom *, void *, gint64)
- * }
- */
- public static MemorySegment read(MemorySegment struct) {
- return struct.get(read$LAYOUT, read$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*read)(VipsTargetCustom *, void *, gint64)
- * }
- */
- public static void read(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(read$LAYOUT, read$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTargetCustom *, gint64, int)
- * }
- */
- public static class seek {
-
- seek() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- long apply(MemorySegment _x0, long _x1, int _x2);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_POINTER,
- VipsRaw.C_LONG_LONG,
- VipsRaw.C_INT
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(seek.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(seek.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static long invoke(MemorySegment funcPtr,MemorySegment _x0, long _x1, int _x2) {
- try {
- return (long) DOWN$MH.invokeExact(funcPtr, _x0, _x1, _x2);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout seek$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("seek"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTargetCustom *, gint64, int)
- * }
- */
- public static final AddressLayout seek$layout() {
- return seek$LAYOUT;
- }
-
- private static final long seek$OFFSET = 392;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTargetCustom *, gint64, int)
- * }
- */
- public static final long seek$offset() {
- return seek$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTargetCustom *, gint64, int)
- * }
- */
- public static MemorySegment seek(MemorySegment struct) {
- return struct.get(seek$LAYOUT, seek$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * gint64 (*seek)(VipsTargetCustom *, gint64, int)
- * }
- */
- public static void seek(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(seek$LAYOUT, seek$OFFSET, fieldValue);
- }
-
- /**
- * {@snippet lang=c :
- * int (*end)(VipsTargetCustom *)
- * }
- */
- public static class end {
-
- end() {
- // Should not be called directly
- }
-
- /**
- * The function pointer signature, expressed as a functional interface
- */
- public interface Function {
- int apply(MemorySegment _x0);
- }
-
- private static final FunctionDescriptor $DESC = FunctionDescriptor.of(
- VipsRaw.C_INT,
- VipsRaw.C_POINTER
- );
-
- /**
- * The descriptor of this function pointer
- */
- public static FunctionDescriptor descriptor() {
- return $DESC;
- }
-
- private static final MethodHandle UP$MH = VipsRaw.upcallHandle(end.Function.class, "apply", $DESC);
-
- /**
- * Allocates a new upcall stub, whose implementation is defined by {@code fi}.
- * The lifetime of the returned segment is managed by {@code arena}
- */
- public static MemorySegment allocate(end.Function fi, Arena arena) {
- return Linker.nativeLinker().upcallStub(UP$MH.bindTo(fi), $DESC, arena);
- }
-
- private static final MethodHandle DOWN$MH = Linker.nativeLinker().downcallHandle($DESC);
-
- /**
- * Invoke the upcall stub {@code funcPtr}, with given parameters
- */
- public static int invoke(MemorySegment funcPtr,MemorySegment _x0) {
- try {
- return (int) DOWN$MH.invokeExact(funcPtr, _x0);
- } catch (Throwable ex$) {
- throw new AssertionError("should not reach here", ex$);
- }
- }
- }
-
- private static final AddressLayout end$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("end"));
-
- /**
- * Layout for field:
- * {@snippet lang=c :
- * int (*end)(VipsTargetCustom *)
- * }
- */
- public static final AddressLayout end$layout() {
- return end$LAYOUT;
- }
-
- private static final long end$OFFSET = 400;
-
- /**
- * Offset for field:
- * {@snippet lang=c :
- * int (*end)(VipsTargetCustom *)
- * }
- */
- public static final long end$offset() {
- return end$OFFSET;
- }
-
- /**
- * Getter for field:
- * {@snippet lang=c :
- * int (*end)(VipsTargetCustom *)
- * }
- */
- public static MemorySegment end(MemorySegment struct) {
- return struct.get(end$LAYOUT, end$OFFSET);
- }
-
- /**
- * Setter for field:
- * {@snippet lang=c :
- * int (*end)(VipsTargetCustom *)
- * }
- */
- public static void end(MemorySegment struct, MemorySegment fieldValue) {
- struct.set(end$LAYOUT, end$OFFSET, fieldValue);
- }
-
- /**
- * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}.
- * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()}
- */
- public static MemorySegment asSlice(MemorySegment array, long index) {
- return array.asSlice(layout().byteSize() * index);
- }
-
- /**
- * The size (in bytes) of this struct
- */
- public static long sizeof() { return layout().byteSize(); }
-
- /**
- * Allocate a segment of size {@code layout().byteSize()} using {@code allocator}
- */
- public static MemorySegment allocate(SegmentAllocator allocator) {
- return allocator.allocate(layout());
- }
-
- /**
- * Allocate an array of size {@code elementCount} using {@code allocator}.
- * The returned segment has size {@code elementCount * layout().byteSize()}.
- */
- public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) {
- return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout()));
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) {
- return reinterpret(addr, 1, arena, cleanup);
- }
-
- /**
- * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any).
- * The returned segment has size {@code elementCount * layout().byteSize()}
- */
- public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) {
- return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup);
- }
-}
-
diff --git a/docs/allclasses-index.html b/docs/allclasses-index.html
index c6d83ce..5cb4d06 100644
--- a/docs/allclasses-index.html
+++ b/docs/allclasses-index.html
@@ -448,22 +448,10 @@