All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.purejava.appindicator.GTaskThreadFunc Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Generated by jextract

package org.purejava.appindicator;

import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
/**
 * {@snippet :
 * void (*GTaskThreadFunc)(struct _GTask* task,void* source_object,void* task_data,struct _GCancellable* cancellable);
 * }
 */
public interface GTaskThreadFunc {

    void apply(java.lang.foreign.MemorySegment model, java.lang.foreign.MemorySegment path, java.lang.foreign.MemorySegment iter, java.lang.foreign.MemorySegment data);
    static MemorySegment allocate(GTaskThreadFunc fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$1334.const$4, fi, constants$42.const$1, scope);
    }
    static GTaskThreadFunc ofAddress(MemorySegment addr, Arena arena) {
        MemorySegment symbol = addr.reinterpret(arena, null);
        return (java.lang.foreign.MemorySegment _model, java.lang.foreign.MemorySegment _path, java.lang.foreign.MemorySegment _iter, java.lang.foreign.MemorySegment _data) -> {
            try {
                constants$259.const$4.invokeExact(symbol, _model, _path, _iter, _data);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        };
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy