Package org.freedesktop.gstreamer.gst
Class ClockEntry
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.ClockEntry
- All Implemented Interfaces:
Proxy
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 Summary
ConstructorDescriptionAllocate a new ClockEntry.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.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.ClockEntry
(Arena arena) Allocate a new ClockEntry.ClockEntry
(MemorySegment address) Create a ClockEntry 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 fieldclock
.Read the value of the fielddestroy_data
.readFunc()
Read the value of the fieldfunc
.Read the value of the fieldinterval
.int
Read the value of the fieldrefcount
.Read the value of the fieldstatus
.readTime()
Read the value of the fieldtime
.readType()
Read the value of the fieldtype
.boolean
Read the value of the fieldunscheduled
.Read the value of the fielduser_data
.boolean
Read the value of the fieldwoken_up
.void
writeClock
(Clock clock) Write a value in the fieldclock
.void
writeDestroyData
(DestroyNotify destroyData, Arena _arena) Write a value in the fielddestroy_data
.void
writeFunc
(ClockCallback func, Arena _arena) Write a value in the fieldfunc
.void
writeInterval
(ClockTime interval) Write a value in the fieldinterval
.void
writeRefcount
(int refcount) Write a value in the fieldrefcount
.void
writeStatus
(ClockReturn status) Write a value in the fieldstatus
.void
Write a value in the fieldtime
.void
writeType
(ClockEntryType type) Write a value in the fieldtype
.void
writeUnscheduled
(boolean unscheduled) Write a value in the fieldunscheduled
.void
writeUserData
(MemorySegment userData) Write a value in the fielduser_data
.void
writeWokenUp
(boolean wokenUp) Write a value in the fieldwoken_up
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ClockEntry
Create a ClockEntry proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ClockEntry
Allocate a new ClockEntry.- Parameters:
arena
- to control the memory allocation scope
-
ClockEntry
public ClockEntry()Allocate a new ClockEntry. The memory is allocated withArena.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 fieldrefcount
clock
- value for the fieldclock
type
- value for the fieldtype
time
- value for the fieldtime
interval
- value for the fieldinterval
status
- value for the fieldstatus
func
- value for the fieldfunc
userData
- value for the fielduserData
destroyData
- value for the fielddestroyData
unscheduled
- value for the fieldunscheduled
wokenUp
- value for the fieldwokenUp
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 withArena.ofAuto()
.- Parameters:
refcount
- value for the fieldrefcount
clock
- value for the fieldclock
type
- value for the fieldtype
time
- value for the fieldtime
interval
- value for the fieldinterval
status
- value for the fieldstatus
func
- value for the fieldfunc
userData
- value for the fielduserData
destroyData
- value for the fielddestroyData
unscheduled
- value for the fieldunscheduled
wokenUp
- value for the fieldwokenUp
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readRefcount
public int readRefcount()Read the value of the fieldrefcount
.- Returns:
- The value of the field
refcount
-
writeRefcount
public void writeRefcount(int refcount) Write a value in the fieldrefcount
.- Parameters:
refcount
- The new value for the fieldrefcount
-
readClock
-
writeClock
Write a value in the fieldclock
.- Parameters:
clock
- The new value for the fieldclock
-
readType
Read the value of the fieldtype
.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype
.- Parameters:
type
- The new value for the fieldtype
-
readTime
-
writeTime
Write a value in the fieldtime
.- Parameters:
time
- The new value for the fieldtime
-
readInterval
Read the value of the fieldinterval
.- Returns:
- The value of the field
interval
-
writeInterval
Write a value in the fieldinterval
.- Parameters:
interval
- The new value for the fieldinterval
-
readStatus
Read the value of the fieldstatus
.- Returns:
- The value of the field
status
-
writeStatus
Write a value in the fieldstatus
.- Parameters:
status
- The new value for the fieldstatus
-
readFunc
Read the value of the fieldfunc
.- Returns:
- The value of the field
func
-
writeFunc
Write a value in the fieldfunc
.- Parameters:
func
- The new value for the fieldfunc
_arena
- to control the memory allocation scope
-
readUserData
Read the value of the fielduser_data
.- Returns:
- The value of the field
user_data
-
writeUserData
Write a value in the fielduser_data
.- Parameters:
userData
- The new value for the fielduser_data
-
readDestroyData
Read the value of the fielddestroy_data
.- Returns:
- The value of the field
destroy_data
-
writeDestroyData
Write a value in the fielddestroy_data
.- Parameters:
destroyData
- The new value for the fielddestroy_data
_arena
- to control the memory allocation scope
-
readUnscheduled
public boolean readUnscheduled()Read the value of the fieldunscheduled
.- Returns:
- The value of the field
unscheduled
-
writeUnscheduled
public void writeUnscheduled(boolean unscheduled) Write a value in the fieldunscheduled
.- Parameters:
unscheduled
- The new value for the fieldunscheduled
-
readWokenUp
public boolean readWokenUp()Read the value of the fieldwoken_up
.- Returns:
- The value of the field
woken_up
-
writeWokenUp
public void writeWokenUp(boolean wokenUp) Write a value in the fieldwoken_up
.- Parameters:
wokenUp
- The new value for the fieldwoken_up
-