![JAR search and dependency download from the Maven repository](/logo.png)
org.purejava.appindicator.GPollFunc 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 :
* int (*GPollFunc)(struct _GPollFD* ufds,unsigned int nfsd,int timeout_);
* }
*/
public interface GPollFunc {
int apply(java.lang.foreign.MemorySegment ufds, int nfsd, int timeout_);
static MemorySegment allocate(GPollFunc fi, Arena scope) {
return RuntimeHelper.upcallStub(constants$247.const$1, fi, constants$49.const$0, scope);
}
static GPollFunc ofAddress(MemorySegment addr, Arena arena) {
MemorySegment symbol = addr.reinterpret(arena, null);
return (java.lang.foreign.MemorySegment _ufds, int _nfsd, int _timeout_) -> {
try {
return (int)constants$247.const$2.invokeExact(symbol, _ufds, _nfsd, _timeout_);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy