Interface BusNameVanishedCallback

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 BusNameVanishedCallback extends FunctionPointer

Functional interface declaration of the BusNameVanishedCallback callback.

See Also:
  • Method Details

    • run

      void run(DBusConnection connection, String name)

      Invoked when the name being watched is known not to have to have an owner.

      This is also invoked when the GDBusConnection on which the watch was established has been closed. In that case, connection will be null.

      Parameters:
      connection - The GDBusConnection the name is being watched on, or null.
      name - The name being watched.
      Since:
      2.26
    • upcall

      default void upcall(MemorySegment connection, MemorySegment name, MemorySegment userData)
      The upcall method is called from native code. The parameters are marshaled and run(DBusConnection, String) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer