Package dev.atsushieno.panama.libremidi
Class libremidi_observer_configuration
java.lang.Object
dev.atsushieno.panama.libremidi.libremidi_observer_configuration
struct libremidi_observer_configuration {
struct libremidi_observer_configuration_on_error {
void *context;
void (*callback)(void *, const char *, size_t, const void *);
} on_error;
struct libremidi_observer_configuration_on_warning {
void *context;
void (*callback)(void *, const char *, size_t, const void *);
} on_warning;
struct libremidi_observer_configuration_input_added {
void *context;
void (*callback)(void *, const libremidi_midi_in_port *);
} input_added;
struct libremidi_observer_configuration_input_removed {
void *context;
void (*callback)(void *, const libremidi_midi_in_port *);
} input_removed;
struct libremidi_observer_configuration_output_added {
void *context;
void (*callback)(void *, const libremidi_midi_out_port *);
} output_added;
struct libremidi_observer_configuration_output_removed {
void *context;
void (*callback)(void *, const libremidi_midi_out_port *);
} output_removed;
bool track_hardware;
bool track_virtual;
bool track_any;
bool notify_in_constructor;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
struct libremidi_observer_configuration_input_added { void *context; void (*callback)(void *, const libremidi_midi_in_port *); }
static class
struct libremidi_observer_configuration_input_removed { void *context; void (*callback)(void *, const libremidi_midi_in_port *); }
static class
struct libremidi_observer_configuration_on_error { void *context; void (*callback)(void *, const char *, size_t, const void *); }
static class
struct libremidi_observer_configuration_on_warning { void *context; void (*callback)(void *, const char *, size_t, const void *); }
static class
struct libremidi_observer_configuration_output_added { void *context; void (*callback)(void *, const libremidi_midi_out_port *); }
static class
struct libremidi_observer_configuration_output_removed { void *context; void (*callback)(void *, const libremidi_midi_out_port *); }
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
input_added
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_input_added input_added
static void
input_added
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_input_added input_added
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_input_added input_added
static final long
Offset for field:struct libremidi_observer_configuration_input_added input_added
static MemorySegment
input_removed
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_input_removed input_removed
static void
input_removed
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_input_removed input_removed
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_input_removed input_removed
static final long
Offset for field:struct libremidi_observer_configuration_input_removed input_removed
static final GroupLayout
layout()
The layout of this structstatic boolean
notify_in_constructor
(MemorySegment struct) Getter for field:bool notify_in_constructor
static void
notify_in_constructor
(MemorySegment struct, boolean fieldValue) Setter for field:bool notify_in_constructor
static final ValueLayout.OfBoolean
Layout for field:bool notify_in_constructor
static final long
Offset for field:bool notify_in_constructor
static MemorySegment
on_error
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_on_error on_error
static void
on_error
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_on_error on_error
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_on_error on_error
static final long
Offset for field:struct libremidi_observer_configuration_on_error on_error
static MemorySegment
on_warning
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_on_warning on_warning
static void
on_warning
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_on_warning on_warning
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_on_warning on_warning
static final long
Offset for field:struct libremidi_observer_configuration_on_warning on_warning
static MemorySegment
output_added
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_output_added output_added
static void
output_added
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_output_added output_added
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_output_added output_added
static final long
Offset for field:struct libremidi_observer_configuration_output_added output_added
static MemorySegment
output_removed
(MemorySegment struct) Getter for field:struct libremidi_observer_configuration_output_removed output_removed
static void
output_removed
(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct libremidi_observer_configuration_output_removed output_removed
static final GroupLayout
Layout for field:struct libremidi_observer_configuration_output_removed output_removed
static final long
Offset for field:struct libremidi_observer_configuration_output_removed output_removed
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this structstatic boolean
track_any
(MemorySegment struct) Getter for field:bool track_any
static void
track_any
(MemorySegment struct, boolean fieldValue) Setter for field:bool track_any
static final ValueLayout.OfBoolean
Layout for field:bool track_any
static final long
Offset for field:bool track_any
static boolean
track_hardware
(MemorySegment struct) Getter for field:bool track_hardware
static void
track_hardware
(MemorySegment struct, boolean fieldValue) Setter for field:bool track_hardware
static final ValueLayout.OfBoolean
Layout for field:bool track_hardware
static final long
Offset for field:bool track_hardware
static boolean
track_virtual
(MemorySegment struct) Getter for field:bool track_virtual
static void
track_virtual
(MemorySegment struct, boolean fieldValue) Setter for field:bool track_virtual
static final ValueLayout.OfBoolean
Layout for field:bool track_virtual
static final long
Offset for field:bool track_virtual
-
Method Details
-
layout
The layout of this struct -
on_error$layout
Layout for field:struct libremidi_observer_configuration_on_error on_error
-
on_error$offset
public static final long on_error$offset()Offset for field:struct libremidi_observer_configuration_on_error on_error
-
on_error
Getter for field:struct libremidi_observer_configuration_on_error on_error
-
on_error
Setter for field:struct libremidi_observer_configuration_on_error on_error
-
on_warning$layout
Layout for field:struct libremidi_observer_configuration_on_warning on_warning
-
on_warning$offset
public static final long on_warning$offset()Offset for field:struct libremidi_observer_configuration_on_warning on_warning
-
on_warning
Getter for field:struct libremidi_observer_configuration_on_warning on_warning
-
on_warning
Setter for field:struct libremidi_observer_configuration_on_warning on_warning
-
input_added$layout
Layout for field:struct libremidi_observer_configuration_input_added input_added
-
input_added$offset
public static final long input_added$offset()Offset for field:struct libremidi_observer_configuration_input_added input_added
-
input_added
Getter for field:struct libremidi_observer_configuration_input_added input_added
-
input_added
Setter for field:struct libremidi_observer_configuration_input_added input_added
-
input_removed$layout
Layout for field:struct libremidi_observer_configuration_input_removed input_removed
-
input_removed$offset
public static final long input_removed$offset()Offset for field:struct libremidi_observer_configuration_input_removed input_removed
-
input_removed
Getter for field:struct libremidi_observer_configuration_input_removed input_removed
-
input_removed
Setter for field:struct libremidi_observer_configuration_input_removed input_removed
-
output_added$layout
Layout for field:struct libremidi_observer_configuration_output_added output_added
-
output_added$offset
public static final long output_added$offset()Offset for field:struct libremidi_observer_configuration_output_added output_added
-
output_added
Getter for field:struct libremidi_observer_configuration_output_added output_added
-
output_added
Setter for field:struct libremidi_observer_configuration_output_added output_added
-
output_removed$layout
Layout for field:struct libremidi_observer_configuration_output_removed output_removed
-
output_removed$offset
public static final long output_removed$offset()Offset for field:struct libremidi_observer_configuration_output_removed output_removed
-
output_removed
Getter for field:struct libremidi_observer_configuration_output_removed output_removed
-
output_removed
Setter for field:struct libremidi_observer_configuration_output_removed output_removed
-
track_hardware$layout
Layout for field:bool track_hardware
-
track_hardware$offset
public static final long track_hardware$offset()Offset for field:bool track_hardware
-
track_hardware
Getter for field:bool track_hardware
-
track_hardware
Setter for field:bool track_hardware
-
track_virtual$layout
Layout for field:bool track_virtual
-
track_virtual$offset
public static final long track_virtual$offset()Offset for field:bool track_virtual
-
track_virtual
Getter for field:bool track_virtual
-
track_virtual
Setter for field:bool track_virtual
-
track_any$layout
Layout for field:bool track_any
-
track_any$offset
public static final long track_any$offset()Offset for field:bool track_any
-
track_any
Getter for field:bool track_any
-
track_any
Setter for field:bool track_any
-
notify_in_constructor$layout
Layout for field:bool notify_in_constructor
-
notify_in_constructor$offset
public static final long notify_in_constructor$offset()Offset for field:bool notify_in_constructor
-
notify_in_constructor
Getter for field:bool notify_in_constructor
-
notify_in_constructor
Setter for field:bool notify_in_constructor
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-