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

org.purejava.appindicator.GInterfaceFinalizeFunc 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 (*GInterfaceFinalizeFunc)(void* g_iface,void* iface_data);
 * }
 */
public interface GInterfaceFinalizeFunc {

    void apply(java.lang.foreign.MemorySegment tag, java.lang.foreign.MemorySegment data);
    static MemorySegment allocate(GInterfaceFinalizeFunc fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$552.const$5, fi, constants$13.const$4, scope);
    }
    static GInterfaceFinalizeFunc ofAddress(MemorySegment addr, Arena arena) {
        MemorySegment symbol = addr.reinterpret(arena, null);
        return (java.lang.foreign.MemorySegment _tag, java.lang.foreign.MemorySegment _data) -> {
            try {
                constants$14.const$0.invokeExact(symbol, _tag, _data);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        };
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy