Package org.gnome.gio
Class DBusErrorEntry
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gio.DBusErrorEntry
-
Constructor Summary
ConstructorDescriptionAllocate a new DBusErrorEntry.DBusErrorEntry
(int errorCode, String dbusErrorName) Allocate a new DBusErrorEntry with the fields set to the provided values.DBusErrorEntry
(int errorCode, String dbusErrorName, Arena arena) Allocate a new DBusErrorEntry with the fields set to the provided values.DBusErrorEntry
(Arena arena) Allocate a new DBusErrorEntry.DBusErrorEntry
(MemorySegment address) Create a DBusErrorEntry proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fielddbus_error_name
.int
Read the value of the fielderror_code
.void
writeDbusErrorName
(String dbusErrorName, Arena _arena) Write a value in the fielddbus_error_name
.void
writeErrorCode
(int errorCode) Write a value in the fielderror_code
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
DBusErrorEntry
Create a DBusErrorEntry proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
DBusErrorEntry
Allocate a new DBusErrorEntry.- Parameters:
arena
- to control the memory allocation scope
-
DBusErrorEntry
public DBusErrorEntry()Allocate a new DBusErrorEntry. The memory is allocated withArena.ofAuto()
. -
DBusErrorEntry
-
DBusErrorEntry
Allocate a new DBusErrorEntry with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
errorCode
- value for the fielderrorCode
dbusErrorName
- value for the fielddbusErrorName
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readErrorCode
public int readErrorCode()Read the value of the fielderror_code
.- Returns:
- The value of the field
error_code
-
writeErrorCode
public void writeErrorCode(int errorCode) Write a value in the fielderror_code
.- Parameters:
errorCode
- The new value for the fielderror_code
-
readDbusErrorName
Read the value of the fielddbus_error_name
.- Returns:
- The value of the field
dbus_error_name
-
writeDbusErrorName
-