Package org.freedesktop.gstreamer.gst
Class PluginDesc
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.PluginDesc
- All Implemented Interfaces:
Proxy
A plugin should export a variable of this type called plugin_desc. The plugin
loader will use the data provided there to initialize the plugin.
The licence
parameter must be one of: LGPL, GPL, QPL, GPL/QPL, MPL,
BSD, MIT/X11, Proprietary, unknown.
-
Constructor Summary
ConstructorDescriptionAllocate a new PluginDesc.PluginDesc
(int majorVersion, int minorVersion, String name, String description, PluginInitFunc pluginInit, String version, String license, String source, String package_, String origin, String releaseDatetime) Allocate a new PluginDesc with the fields set to the provided values.PluginDesc
(int majorVersion, int minorVersion, String name, String description, PluginInitFunc pluginInit, String version, String license, String source, String package_, String origin, String releaseDatetime, Arena arena) Allocate a new PluginDesc with the fields set to the provided values.PluginDesc
(Arena arena) Allocate a new PluginDesc.PluginDesc
(MemorySegment address) Create a PluginDesc 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 fielddescription
.Read the value of the fieldlicense
.int
Read the value of the fieldmajor_version
.int
Read the value of the fieldminor_version
.readName()
Read the value of the fieldname
.Read the value of the fieldorigin
.Read the value of the fieldpackage
.Read the value of the fieldplugin_init
.Read the value of the fieldrelease_datetime
.Read the value of the fieldsource
.Read the value of the fieldversion
.void
writeDescription
(String description, Arena _arena) Write a value in the fielddescription
.void
writeLicense
(String license, Arena _arena) Write a value in the fieldlicense
.void
writeMajorVersion
(int majorVersion) Write a value in the fieldmajor_version
.void
writeMinorVersion
(int minorVersion) Write a value in the fieldminor_version
.void
Write a value in the fieldname
.void
writeOrigin
(String origin, Arena _arena) Write a value in the fieldorigin
.void
writePackage
(String package_, Arena _arena) Write a value in the fieldpackage
.void
writePluginInit
(PluginInitFunc pluginInit, Arena _arena) Write a value in the fieldplugin_init
.void
writeReleaseDatetime
(String releaseDatetime, Arena _arena) Write a value in the fieldrelease_datetime
.void
writeSource
(String source, Arena _arena) Write a value in the fieldsource
.void
writeVersion
(String version, Arena _arena) Write a value in the fieldversion
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PluginDesc
Create a PluginDesc proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
PluginDesc
Allocate a new PluginDesc.- Parameters:
arena
- to control the memory allocation scope
-
PluginDesc
public PluginDesc()Allocate a new PluginDesc. The memory is allocated withArena.ofAuto()
. -
PluginDesc
public PluginDesc(int majorVersion, int minorVersion, String name, String description, PluginInitFunc pluginInit, String version, String license, String source, String package_, String origin, String releaseDatetime, Arena arena) Allocate a new PluginDesc with the fields set to the provided values.- Parameters:
majorVersion
- value for the fieldmajorVersion
minorVersion
- value for the fieldminorVersion
name
- value for the fieldname
description
- value for the fielddescription
pluginInit
- value for the fieldpluginInit
version
- value for the fieldversion
license
- value for the fieldlicense
source
- value for the fieldsource
package_
- value for the fieldpackage_
origin
- value for the fieldorigin
releaseDatetime
- value for the fieldreleaseDatetime
arena
- to control the memory allocation scope
-
PluginDesc
public PluginDesc(int majorVersion, int minorVersion, String name, String description, PluginInitFunc pluginInit, String version, String license, String source, String package_, String origin, String releaseDatetime) Allocate a new PluginDesc with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
majorVersion
- value for the fieldmajorVersion
minorVersion
- value for the fieldminorVersion
name
- value for the fieldname
description
- value for the fielddescription
pluginInit
- value for the fieldpluginInit
version
- value for the fieldversion
license
- value for the fieldlicense
source
- value for the fieldsource
package_
- value for the fieldpackage_
origin
- value for the fieldorigin
releaseDatetime
- value for the fieldreleaseDatetime
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMajorVersion
public int readMajorVersion()Read the value of the fieldmajor_version
.- Returns:
- The value of the field
major_version
-
writeMajorVersion
public void writeMajorVersion(int majorVersion) Write a value in the fieldmajor_version
.- Parameters:
majorVersion
- The new value for the fieldmajor_version
-
readMinorVersion
public int readMinorVersion()Read the value of the fieldminor_version
.- Returns:
- The value of the field
minor_version
-
writeMinorVersion
public void writeMinorVersion(int minorVersion) Write a value in the fieldminor_version
.- Parameters:
minorVersion
- The new value for the fieldminor_version
-
readName
-
writeName
-
readDescription
Read the value of the fielddescription
.- Returns:
- The value of the field
description
-
writeDescription
-
readPluginInit
Read the value of the fieldplugin_init
.- Returns:
- The value of the field
plugin_init
-
writePluginInit
Write a value in the fieldplugin_init
.- Parameters:
pluginInit
- The new value for the fieldplugin_init
_arena
- to control the memory allocation scope
-
readVersion
Read the value of the fieldversion
.- Returns:
- The value of the field
version
-
writeVersion
-
readLicense
Read the value of the fieldlicense
.- Returns:
- The value of the field
license
-
writeLicense
-
readSource
Read the value of the fieldsource
.- Returns:
- The value of the field
source
-
writeSource
-
readPackage
Read the value of the fieldpackage
.- Returns:
- The value of the field
package
-
writePackage
-
readOrigin
Read the value of the fieldorigin
.- Returns:
- The value of the field
origin
-
writeOrigin
-
readReleaseDatetime
Read the value of the fieldrelease_datetime
.- Returns:
- The value of the field
release_datetime
-
writeReleaseDatetime
-