Package org.gnome.gio
Class DBusErrorEntry
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusErrorEntry
- All Implemented Interfaces:
Proxy
Struct used in
DBusError.registerErrorDomain(java.lang.String, java.lang.foreign.MemorySegment, org.gnome.gio.DBusErrorEntry[]).- Since:
- 2.26
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.Read the value of the fielddbus_error_name.intRead the value of the fielderror_code.voidwriteDbusErrorName(String dbusErrorName, Arena _arena) Write a value in the fielddbus_error_name.voidwriteErrorCode(int errorCode) Write a value in the fielderror_code.Methods inherited from class org.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 fielderrorCodedbusErrorName- 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
-