Class ClockEntry

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ClockEntry
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ClockEntry extends ProxyInstance
All pending timeouts or periodic notifies are converted into an entry. Note that GstClockEntry should be treated as an opaque structure. It must not be extended or allocated using a custom allocator.
  • Constructor Details

    • ClockEntry

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

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

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

      public ClockEntry(int refcount, Clock clock, ClockEntryType type, ClockTime time, ClockTime interval, ClockReturn status, ClockCallback func, MemorySegment userData, DestroyNotify destroyData, boolean unscheduled, boolean wokenUp, Arena arena)
      Allocate a new ClockEntry with the fields set to the provided values.
      Parameters:
      refcount - value for the field refcount
      clock - value for the field clock
      type - value for the field type
      time - value for the field time
      interval - value for the field interval
      status - value for the field status
      func - value for the field func
      userData - value for the field userData
      destroyData - value for the field destroyData
      unscheduled - value for the field unscheduled
      wokenUp - value for the field wokenUp
      arena - to control the memory allocation scope
    • ClockEntry

      public ClockEntry(int refcount, Clock clock, ClockEntryType type, ClockTime time, ClockTime interval, ClockReturn status, ClockCallback func, MemorySegment userData, DestroyNotify destroyData, boolean unscheduled, boolean wokenUp)
      Allocate a new ClockEntry with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      refcount - value for the field refcount
      clock - value for the field clock
      type - value for the field type
      time - value for the field time
      interval - value for the field interval
      status - value for the field status
      func - value for the field func
      userData - value for the field userData
      destroyData - value for the field destroyData
      unscheduled - value for the field unscheduled
      wokenUp - value for the field wokenUp
  • Method Details

    • 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 refcount.
      Returns:
      The value of the field refcount
    • writeRefcount

      public void writeRefcount(int refcount)
      Write a value in the field refcount.
      Parameters:
      refcount - The new value for the field refcount
    • readClock

      public Clock readClock()
      Read the value of the field clock.
      Returns:
      The value of the field clock
    • writeClock

      public void writeClock(Clock clock)
      Write a value in the field clock.
      Parameters:
      clock - The new value for the field clock
    • readType

      public ClockEntryType readType()
      Read the value of the field type.
      Returns:
      The value of the field type
    • writeType

      public void writeType(ClockEntryType type)
      Write a value in the field type.
      Parameters:
      type - The new value for the field type
    • readTime

      public ClockTime readTime()
      Read the value of the field time.
      Returns:
      The value of the field time
    • writeTime

      public void writeTime(ClockTime time)
      Write a value in the field time.
      Parameters:
      time - The new value for the field time
    • readInterval

      public ClockTime readInterval()
      Read the value of the field interval.
      Returns:
      The value of the field interval
    • writeInterval

      public void writeInterval(ClockTime interval)
      Write a value in the field interval.
      Parameters:
      interval - The new value for the field interval
    • readStatus

      public ClockReturn readStatus()
      Read the value of the field status.
      Returns:
      The value of the field status
    • writeStatus

      public void writeStatus(ClockReturn status)
      Write a value in the field status.
      Parameters:
      status - The new value for the field status
    • readFunc

      public @Nullable ClockCallback readFunc()
      Read the value of the field func.
      Returns:
      The value of the field func
    • writeFunc

      public void writeFunc(@Nullable ClockCallback func, Arena _arena)
      Write a value in the field func.
      Parameters:
      func - The new value for the field func
      _arena - to control the memory allocation scope
    • readUserData

      public MemorySegment readUserData()
      Read the value of the field user_data.
      Returns:
      The value of the field user_data
    • writeUserData

      public void writeUserData(MemorySegment userData)
      Write a value in the field user_data.
      Parameters:
      userData - The new value for the field user_data
    • readDestroyData

      public @Nullable DestroyNotify readDestroyData()
      Read the value of the field destroy_data.
      Returns:
      The value of the field destroy_data
    • writeDestroyData

      public void writeDestroyData(@Nullable DestroyNotify destroyData, Arena _arena)
      Write a value in the field destroy_data.
      Parameters:
      destroyData - The new value for the field destroy_data
      _arena - to control the memory allocation scope
    • readUnscheduled

      public boolean readUnscheduled()
      Read the value of the field unscheduled.
      Returns:
      The value of the field unscheduled
    • writeUnscheduled

      public void writeUnscheduled(boolean unscheduled)
      Write a value in the field unscheduled.
      Parameters:
      unscheduled - The new value for the field unscheduled
    • readWokenUp

      public boolean readWokenUp()
      Read the value of the field woken_up.
      Returns:
      The value of the field woken_up
    • writeWokenUp

      public void writeWokenUp(boolean wokenUp)
      Write a value in the field woken_up.
      Parameters:
      wokenUp - The new value for the field woken_up