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

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

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

package org.purejava.appindicator;

import java.lang.foreign.Arena;
import java.lang.foreign.MemorySegment;
/**
 * {@snippet :
 * void (*GBusNameVanishedCallback)(struct _GDBusConnection* connection,char* name,void* user_data);
 * }
 */
public interface GBusNameVanishedCallback {

    void apply(java.lang.foreign.MemorySegment key, java.lang.foreign.MemorySegment value, java.lang.foreign.MemorySegment user_data);
    static MemorySegment allocate(GBusNameVanishedCallback fi, Arena scope) {
        return RuntimeHelper.upcallStub(constants$907.const$1, fi, constants$14.const$3, scope);
    }
    static GBusNameVanishedCallback ofAddress(MemorySegment addr, Arena arena) {
        MemorySegment symbol = addr.reinterpret(arena, null);
        return (java.lang.foreign.MemorySegment _key, java.lang.foreign.MemorySegment _value, java.lang.foreign.MemorySegment _user_data) -> {
            try {
                constants$14.const$5.invokeExact(symbol, _key, _value, _user_data);
            } catch (Throwable ex$) {
                throw new AssertionError("should not reach here", ex$);
            }
        };
    }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy