Class DBusErrorEntry

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.DBusErrorEntry
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class DBusErrorEntry extends ProxyInstance
Since:
2.26
  • Constructor Details

    • DBusErrorEntry

      public DBusErrorEntry(MemorySegment address)
      Create a DBusErrorEntry proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • DBusErrorEntry

      public DBusErrorEntry(Arena arena)
      Allocate a new DBusErrorEntry.
      Parameters:
      arena - to control the memory allocation scope
    • DBusErrorEntry

      public DBusErrorEntry()
      Allocate a new DBusErrorEntry. The memory is allocated with Arena.ofAuto().
    • DBusErrorEntry

      public DBusErrorEntry(int errorCode, String dbusErrorName, Arena arena)
      Allocate a new DBusErrorEntry with the fields set to the provided values.
      Parameters:
      errorCode - value for the field errorCode
      dbusErrorName - value for the field dbusErrorName
      arena - to control the memory allocation scope
    • DBusErrorEntry

      public DBusErrorEntry(int errorCode, String dbusErrorName)
      Allocate a new DBusErrorEntry with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      errorCode - value for the field errorCode
      dbusErrorName - value for the field dbusErrorName
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readErrorCode

      public int readErrorCode()
      Read the value of the field error_code.
      Returns:
      The value of the field error_code
    • writeErrorCode

      public void writeErrorCode(int errorCode)
      Write a value in the field error_code.
      Parameters:
      errorCode - The new value for the field error_code
    • readDbusErrorName

      public String readDbusErrorName()
      Read the value of the field dbus_error_name.
      Returns:
      The value of the field dbus_error_name
    • writeDbusErrorName

      public void writeDbusErrorName(String dbusErrorName, Arena _arena)
      Write a value in the field dbus_error_name.
      Parameters:
      dbusErrorName - The new value for the field dbus_error_name
      _arena - to control the memory allocation scope