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

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

// Generated by jextract

package org.purejava.appindicator;

import java.lang.foreign.*;

/**
 * {@snippet :
 * void (*GCallback)();
 * }
 */
public interface GCallback {

    void apply();
    static MemorySegment allocate(GCallback fi, SegmentScope scope) {
        return RuntimeHelper.upcallStub(constants$0.GCallback_UP$MH, fi, constants$0.GCallback$FUNC, scope);
    }
    static GCallback ofAddress(MemorySegment addr, SegmentScope scope) {
        MemorySegment symbol = MemorySegment.ofAddress(addr.address(), 0, scope);
        return () -> {
            try {
                constants$0.GCallback_DOWN$MH.invokeExact(symbol);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        };
    }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy