Package org.freedesktop.gstreamer.gst
Interface LogFunction
- 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("io.github.jwharm.JavaGI")
public interface LogFunction
extends FunctionPointer
Functional interface declaration of the
LogFunction
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(DebugCategory category, DebugLevel level, String file, String function, int line, GObject object, DebugMessage message) Function prototype for a logging function that can be registered with gst_debug_add_log_function().default MemorySegment
toCallback
(Arena arena) default void
upcall
(MemorySegment category, int level, MemorySegment file, MemorySegment function, int line, MemorySegment object, MemorySegment message, MemorySegment userData) Theupcall
method is called from native code.
-
Method Details
-
run
void run(DebugCategory category, DebugLevel level, String file, String function, int line, GObject object, DebugMessage message) Function prototype for a logging function that can be registered with gst_debug_add_log_function(). Use G_GNUC_NO_INSTRUMENT on that function. -
upcall
default void upcall(MemorySegment category, int level, MemorySegment file, MemorySegment function, int line, MemorySegment object, MemorySegment message, MemorySegment userData) Theupcall
method is called from native code. The parameters are marshaled andrun(org.freedesktop.gstreamer.gst.DebugCategory, org.freedesktop.gstreamer.gst.DebugLevel, java.lang.String, java.lang.String, int, org.gnome.gobject.GObject, org.freedesktop.gstreamer.gst.DebugMessage)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, 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
-