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 TypeMethodDescriptionboolean
run
(DBusInterfaceSkeleton interface_, DBusMethodInvocation invocation) Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceDBusObjectSkeleton, MemorySegment interface_, MemorySegment invocation) Theupcall
method 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
. -
upcall
default int upcall(MemorySegment sourceDBusObjectSkeleton, MemorySegment interface_, MemorySegment invocation) Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-