Package org.gnome.gio
Class DBusNodeInfo
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusNodeInfo
-
Constructor Summary
ConstructorDescriptionAllocate 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 DBusNodeInfo
ParsesxmlData
and returns aGDBusNodeInfo
representing the data.void
generateXml
(int indent, GString stringBuilder) Appends an XML representation of this DBusNodeInfo (and its children) tostringBuilder
.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the DBusNodeInfo classlookupInterface
(String name) Looks up information about an interface.Read the value of the fieldannotations
.Read the value of the fieldinterfaces
.Read the value of the fieldnodes
.readPath()
Read the value of the fieldpath
.int
Read the value of the fieldref_count
.ref()
If this DBusNodeInfo is statically allocated does nothing.void
unref()
If this DBusNodeInfo is statically allocated, does nothing.void
writeAnnotations
(DBusAnnotationInfo[] annotations, Arena _arena) Write a value in the fieldannotations
.void
writeInterfaces
(DBusInterfaceInfo[] interfaces, Arena _arena) Write a value in the fieldinterfaces
.void
writeNodes
(DBusNodeInfo[] nodes, Arena _arena) Write a value in the fieldnodes
.void
Write a value in the fieldpath
.void
writeRefCount
(int refCount) Write a value in the fieldref_count
.Methods inherited from class io.github.jwharm.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 fieldrefCount
path
- value for the fieldpath
interfaces
- value for the fieldinterfaces
nodes
- value for the fieldnodes
annotations
- value for the fieldannotations
arena
- 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 fieldrefCount
path
- value for the fieldpath
interfaces
- value for the fieldinterfaces
nodes
- value for the fieldnodes
annotations
- 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
ParsesxmlData
and returns aGDBusNodeInfo
representing the data.The introspection XML must contain exactly one top-level
<node>
element.Note that this routine is using a [GMarkup][glib-Simple-XML-Subset-Parser.description]-based parser that only accepts a subset of valid XML documents.
- Parameters:
xmlData
- Valid D-Bus introspection XML.- Returns:
- A
GDBusNodeInfo
structure ornull
iferror
is set. Free with g_dbus_node_info_unref(). - Throws:
GErrorException
- seeGError
-
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.Introspect
method.- Parameters:
indent
- Indentation level.stringBuilder
- AGString
to to append XML data to.
-
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
GDBusInterfaceInfo
ornull
if not found. Do not free, it is owned by this DBusNodeInfo.
-
ref
If this DBusNodeInfo is statically allocated does nothing. Otherwise increases the reference count.- Returns:
- The same this DBusNodeInfo.
-
unref
public void unref()If this DBusNodeInfo is statically allocated, does nothing. Otherwise decreases the reference count of this DBusNodeInfo. When its reference count drops to 0, the memory used is freed.
-