Package org.freedesktop.gstreamer.gst
Class ClockEntry
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.Read the value of the fieldclock.@Nullable DestroyNotifyRead the value of the fielddestroy_data.@Nullable ClockCallbackreadFunc()Read the value of the fieldfunc.Read the value of the fieldinterval.intRead 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.booleanRead the value of the fieldunscheduled.Read the value of the fielduser_data.booleanRead the value of the fieldwoken_up.voidwriteClock(Clock clock) Write a value in the fieldclock.voidwriteDestroyData(@Nullable DestroyNotify destroyData, Arena _arena) Write a value in the fielddestroy_data.voidwriteFunc(@Nullable ClockCallback func, Arena _arena) Write a value in the fieldfunc.voidwriteInterval(ClockTime interval) Write a value in the fieldinterval.voidwriteRefcount(int refcount) Write a value in the fieldrefcount.voidwriteStatus(ClockReturn status) Write a value in the fieldstatus.voidWrite a value in the fieldtime.voidwriteType(ClockEntryType type) Write a value in the fieldtype.voidwriteUnscheduled(boolean unscheduled) Write a value in the fieldunscheduled.voidwriteUserData(MemorySegment userData) Write a value in the fielduser_data.voidwriteWokenUp(boolean wokenUp) Write a value in the fieldwoken_up.Methods inherited from class org.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 fieldrefcountclock- value for the fieldclocktype- value for the fieldtypetime- value for the fieldtimeinterval- value for the fieldintervalstatus- value for the fieldstatusfunc- value for the fieldfuncuserData- value for the fielduserDatadestroyData- value for the fielddestroyDataunscheduled- value for the fieldunscheduledwokenUp- value for the fieldwokenUparena- 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 fieldrefcountclock- value for the fieldclocktype- value for the fieldtypetime- value for the fieldtimeinterval- value for the fieldintervalstatus- value for the fieldstatusfunc- value for the fieldfuncuserData- value for the fielduserDatadestroyData- value for the fielddestroyDataunscheduled- value for the fieldunscheduledwokenUp- 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
-