Interface DBusSignalCallback
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface DBusSignalCallback
extends FunctionPointer
Functional interface declaration of the DBusSignalCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(DBusConnection connection, @Nullable String senderName, String objectPath, String interfaceName, String signalName, Variant parameters) Signature for callback function used in g_dbus_connection_signal_subscribe().default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.default voidupcall(MemorySegment connection, MemorySegment senderName, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment signalName, MemorySegment parameters, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
void run(DBusConnection connection, @Nullable String senderName, String objectPath, String interfaceName, String signalName, Variant parameters) Signature for callback function used in g_dbus_connection_signal_subscribe().- Parameters:
connection- AGDBusConnection.senderName- The unique bus name of the sender of the signal, ornullon a peer-to-peer D-Bus connection.objectPath- The object path that the signal was emitted on.interfaceName- The name of the interface.signalName- The name of the signal.parameters- AGVarianttuple with parameters for the signal.- Since:
- 2.26
-
upcall
default void upcall(MemorySegment connection, MemorySegment senderName, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment signalName, MemorySegment parameters, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(DBusConnection, String, String, String, String, Variant)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-