Package org.gnome.gio
Interface DBusObjectSkeleton.AuthorizeMethodCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
DBusObjectSkeleton
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface DBusObjectSkeleton.AuthorizeMethodCallback
extends FunctionPointer
Functional interface declaration of the
AuthorizeMethodCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(@Nullable DBusInterfaceSkeleton interface_, @Nullable DBusMethodInvocation invocation) Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment sourceDBusObjectSkeleton, MemorySegment interface_, MemorySegment invocation) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.This signal is like
GDBusInterfaceSkeleton'sGDBusInterfaceSkeleton::g-authorize-method signal, except that it is for the enclosing object.The default class handler just returns
true.- Since:
- 2.30
-
upcall
default int upcall(MemorySegment sourceDBusObjectSkeleton, MemorySegment interface_, MemorySegment invocation) Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gio.DBusInterfaceSkeleton, org.gnome.gio.DBusMethodInvocation)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-