![JAR search and dependency download from the Maven repository](/logo.png)
org.purejava.appindicator.GBusNameVanishedCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libappindicator-gtk3-java-full Show documentation
Show all versions of libappindicator-gtk3-java-full Show documentation
Java bindings for libappindicator-gtk3 in 100% pure Java
// 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