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("org.javagi.JavaGI")
public interface LogFunction
extends FunctionPointer
Functional interface declaration of the LogFunction callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(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 MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.default voidupcall(MemorySegment category, int level, MemorySegment file, MemorySegment function, int line, MemorySegment object, MemorySegment message, MemorySegment userData) Theupcallmethod 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.- Parameters:
category- aGstDebugCategorylevel- aGstDebugLevelfile- file namefunction- function nameline- line numberobject- aGObjectmessage- the message
-
upcall
default void upcall(MemorySegment category, int level, MemorySegment file, MemorySegment function, int line, MemorySegment object, MemorySegment message, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(DebugCategory, DebugLevel, String, String, int, GObject, DebugMessage)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment, int, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-