Class Callbacks

java.lang.Object
moe.kyokobot.libdave.ffm.Callbacks

@Internal public final class Callbacks extends Object
Upcall stubs for the kyoko_dave_* callbacks.

Each stub is created once. The Java callback is looked up through the user_data pointer, which carries a registry id rather than a real address, and is dropped from the registry when the native side calls user_data_free.

  • Field Details

    • USER_DATA_FREE

      public static final MemorySegment USER_DATA_FREE
    • LOG_SINK

      public static final MemorySegment LOG_SINK
    • MLS_FAILURE

      public static final MemorySegment MLS_FAILURE
    • PAIRWISE_FINGERPRINT

      public static final MemorySegment PAIRWISE_FINGERPRINT
    • PROTOCOL_VERSION_CHANGED

      public static final MemorySegment PROTOCOL_VERSION_CHANGED
  • Method Details

    • register

      public static MemorySegment register(Object callback)
      Registers a callback and returns the user_data to pass along with it. The registration is released through USER_DATA_FREE.