Package org.gnome.gio
Class DBusNodeInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusNodeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new DBusNodeInfo.DBusNodeInfo(int refCount, String path, DBusInterfaceInfo[] interfaces, DBusNodeInfo[] nodes, DBusAnnotationInfo[] annotations) Allocate a new DBusNodeInfo with the fields set to the provided values.DBusNodeInfo(int refCount, String path, DBusInterfaceInfo[] interfaces, DBusNodeInfo[] nodes, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusNodeInfo with the fields set to the provided values.DBusNodeInfo(Arena arena) Allocate a new DBusNodeInfo.DBusNodeInfo(MemorySegment address) Create a DBusNodeInfo proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic DBusNodeInfoParsesxmlDataand returns aGDBusNodeInforepresenting the data.voidgenerateXml(int indent, String stringBuilder) Appends an XML representation of this DBusNodeInfo (and its children) tostringBuilder.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the DBusNodeInfo class@Nullable DBusInterfaceInfolookupInterface(String name) Looks up information about an interface.@Nullable DBusAnnotationInfo @Nullable []Read the value of the fieldannotations.@Nullable DBusInterfaceInfo @Nullable []Read the value of the fieldinterfaces.@Nullable DBusNodeInfo @Nullable []Read the value of the fieldnodes.readPath()Read the value of the fieldpath.intRead the value of the fieldref_count.ref()If this DBusNodeInfo is statically allocated does nothing.voidunref()If this DBusNodeInfo is statically allocated, does nothing.voidwriteAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena) Write a value in the fieldannotations.voidwriteInterfaces(@Nullable DBusInterfaceInfo @Nullable [] interfaces, Arena _arena) Write a value in the fieldinterfaces.voidwriteNodes(@Nullable DBusNodeInfo @Nullable [] nodes, Arena _arena) Write a value in the fieldnodes.voidWrite a value in the fieldpath.voidwriteRefCount(int refCount) Write a value in the fieldref_count.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusNodeInfo
Create a DBusNodeInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
DBusNodeInfo
Allocate a new DBusNodeInfo.- Parameters:
arena- to control the memory allocation scope
-
DBusNodeInfo
public DBusNodeInfo()Allocate a new DBusNodeInfo. The memory is allocated withArena.ofAuto(). -
DBusNodeInfo
public DBusNodeInfo(int refCount, String path, DBusInterfaceInfo[] interfaces, DBusNodeInfo[] nodes, DBusAnnotationInfo[] annotations, Arena arena) Allocate a new DBusNodeInfo with the fields set to the provided values.- Parameters:
refCount- value for the fieldrefCountpath- value for the fieldpathinterfaces- value for the fieldinterfacesnodes- value for the fieldnodesannotations- value for the fieldannotationsarena- to control the memory allocation scope
-
DBusNodeInfo
public DBusNodeInfo(int refCount, String path, DBusInterfaceInfo[] interfaces, DBusNodeInfo[] nodes, DBusAnnotationInfo[] annotations) Allocate a new DBusNodeInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
refCount- value for the fieldrefCountpath- value for the fieldpathinterfaces- value for the fieldinterfacesnodes- value for the fieldnodesannotations- value for the fieldannotations
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRefCount
public int readRefCount()Read the value of the fieldref_count.- Returns:
- The value of the field
ref_count
-
writeRefCount
public void writeRefCount(int refCount) Write a value in the fieldref_count.- Parameters:
refCount- The new value for the fieldref_count
-
readPath
-
writePath
-
readInterfaces
Read the value of the fieldinterfaces.- Returns:
- The value of the field
interfaces
-
writeInterfaces
Write a value in the fieldinterfaces.- Parameters:
interfaces- The new value for the fieldinterfaces_arena- to control the memory allocation scope
-
readNodes
Read the value of the fieldnodes.- Returns:
- The value of the field
nodes
-
writeNodes
Write a value in the fieldnodes.- Parameters:
nodes- The new value for the fieldnodes_arena- to control the memory allocation scope
-
readAnnotations
Read the value of the fieldannotations.- Returns:
- The value of the field
annotations
-
writeAnnotations
Write a value in the fieldannotations.- Parameters:
annotations- The new value for the fieldannotations_arena- to control the memory allocation scope
-
forXml
ParsesxmlDataand returns aGDBusNodeInforepresenting the data.The introspection XML must contain exactly one top-level
<node>element.Note that this routine is using a GMarkup-based parser that only accepts a subset of valid XML documents.
- Parameters:
xmlData- Valid D-Bus introspection XML.- Returns:
- A
GDBusNodeInfostructure ornulliferroris set. Free with g_dbus_node_info_unref(). - Throws:
GErrorException- seeGError- Since:
- 2.26
-
generateXml
Appends an XML representation of this DBusNodeInfo (and its children) tostringBuilder.This function is typically used for generating introspection XML documents at run-time for handling the
org.freedesktop.DBus.Introspectable.Introspectmethod.- Parameters:
indent- Indentation level.stringBuilder- AGStringto to append XML data to.- Since:
- 2.26
-
lookupInterface
Looks up information about an interface.The cost of this function is O(n) in number of interfaces.
- Parameters:
name- A D-Bus interface name.- Returns:
- A
GDBusInterfaceInfoornullif not found. Do not free, it is owned byinfo. - Since:
- 2.26
-
ref
If this DBusNodeInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same
info. - Since:
- 2.26
-
unref
public void unref()If this DBusNodeInfo is statically allocated, does nothing. Otherwise decreases the reference count ofinfo.When its reference count drops to 0, the memory used is freed.- Since:
- 2.26
-