Interface DBusInterfaceGetPropertyFunc
- 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 DBusInterfaceGetPropertyFunc
extends FunctionPointer
Functional interface declaration of the DBusInterfaceGetPropertyFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(DBusConnection connection, @Nullable String sender, String objectPath, String interfaceName, String propertyName, GError[] error) The type of thegetPropertyfunction inGDBusInterfaceVTable.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment connection, MemorySegment sender, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment propertyName, MemorySegment error, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
Variant run(DBusConnection connection, @Nullable String sender, String objectPath, String interfaceName, String propertyName, GError[] error) The type of thegetPropertyfunction inGDBusInterfaceVTable.- Parameters:
connection- AGDBusConnection.sender- The unique bus name of the remote caller ornullif not specified by the caller, e.g. on peer-to-peer connections.objectPath- The object path that the method was invoked on.interfaceName- The D-Bus interface name for the property.propertyName- The name of the property to get the value of.error- Return location for error.- Returns:
- A
GVariantwith the value forpropertyNameornulliferroris set. If the returnedGVariantis floating, it is consumed - otherwise its reference count is decreased by one. - Since:
- 2.26
-
upcall
default MemorySegment upcall(MemorySegment connection, MemorySegment sender, MemorySegment objectPath, MemorySegment interfaceName, MemorySegment propertyName, MemorySegment error, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(DBusConnection, String, String, String, String, GError[])is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-