Class DBusMethodInfo

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

@Generated("org.javagi.JavaGI") public class DBusMethodInfo extends ProxyInstance
Information about a method on a D-Bus interface.
Since:
2.26
  • Constructor Details

    • DBusMethodInfo

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

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

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

      public DBusMethodInfo(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations, Arena arena)
      Allocate a new DBusMethodInfo with the fields set to the provided values.
      Parameters:
      refCount - value for the field refCount
      name - value for the field name
      inArgs - value for the field inArgs
      outArgs - value for the field outArgs
      annotations - value for the field annotations
      arena - to control the memory allocation scope
    • DBusMethodInfo

      public DBusMethodInfo(int refCount, String name, DBusArgInfo[] inArgs, DBusArgInfo[] outArgs, DBusAnnotationInfo[] annotations)
      Allocate a new DBusMethodInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      refCount - value for the field refCount
      name - value for the field name
      inArgs - value for the field inArgs
      outArgs - value for the field outArgs
      annotations - value for the field annotations
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the DBusMethodInfo class.
      Returns:
      the GType
    • getMemoryLayout

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

      public int readRefCount()
      Read the value of the field ref_count.
      Returns:
      The value of the field ref_count
    • writeRefCount

      public void writeRefCount(int refCount)
      Write a value in the field ref_count.
      Parameters:
      refCount - The new value for the field ref_count
    • readName

      public String readName()
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readInArgs

      public @Nullable DBusArgInfo @Nullable [] readInArgs()
      Read the value of the field in_args.
      Returns:
      The value of the field in_args
    • writeInArgs

      public void writeInArgs(@Nullable DBusArgInfo @Nullable [] inArgs, Arena _arena)
      Write a value in the field in_args.
      Parameters:
      inArgs - The new value for the field in_args
      _arena - to control the memory allocation scope
    • readOutArgs

      public @Nullable DBusArgInfo @Nullable [] readOutArgs()
      Read the value of the field out_args.
      Returns:
      The value of the field out_args
    • writeOutArgs

      public void writeOutArgs(@Nullable DBusArgInfo @Nullable [] outArgs, Arena _arena)
      Write a value in the field out_args.
      Parameters:
      outArgs - The new value for the field out_args
      _arena - to control the memory allocation scope
    • readAnnotations

      public @Nullable DBusAnnotationInfo @Nullable [] readAnnotations()
      Read the value of the field annotations.
      Returns:
      The value of the field annotations
    • writeAnnotations

      public void writeAnnotations(@Nullable DBusAnnotationInfo @Nullable [] annotations, Arena _arena)
      Write a value in the field annotations.
      Parameters:
      annotations - The new value for the field annotations
      _arena - to control the memory allocation scope
    • ref

      public DBusMethodInfo ref()
      If this DBusMethodInfo is statically allocated does nothing. Otherwise increases the reference count.
      Returns:
      The same info.
      Since:
      2.26
    • unref

      public void unref()
      If this DBusMethodInfo is statically allocated, does nothing. Otherwise decreases the reference count of info. When its reference count drops to 0, the memory used is freed.
      Since:
      2.26