Package org.freedesktop.gstreamer.gst
Class PluginDesc
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe memory layout of the native struct.Read the value of the fielddescription.Read the value of the fieldlicense.intRead the value of the fieldmajor_version.intRead 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.@Nullable PluginInitFuncRead 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.voidwriteDescription(String description, Arena _arena) Write a value in the fielddescription.voidwriteLicense(String license, Arena _arena) Write a value in the fieldlicense.voidwriteMajorVersion(int majorVersion) Write a value in the fieldmajor_version.voidwriteMinorVersion(int minorVersion) Write a value in the fieldminor_version.voidWrite a value in the fieldname.voidwriteOrigin(String origin, Arena _arena) Write a value in the fieldorigin.voidwritePackage(String package_, Arena _arena) Write a value in the fieldpackage.voidwritePluginInit(@Nullable PluginInitFunc pluginInit, Arena _arena) Write a value in the fieldplugin_init.voidwriteReleaseDatetime(String releaseDatetime, Arena _arena) Write a value in the fieldrelease_datetime.voidwriteSource(String source, Arena _arena) Write a value in the fieldsource.voidwriteVersion(String version, Arena _arena) Write a value in the fieldversion.Methods inherited from class org.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 fieldmajorVersionminorVersion- value for the fieldminorVersionname- value for the fieldnamedescription- value for the fielddescriptionpluginInit- value for the fieldpluginInitversion- value for the fieldversionlicense- value for the fieldlicensesource- value for the fieldsourcepackage_- value for the fieldpackage_origin- value for the fieldoriginreleaseDatetime- value for the fieldreleaseDatetimearena- 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 fieldmajorVersionminorVersion- value for the fieldminorVersionname- value for the fieldnamedescription- value for the fielddescriptionpluginInit- value for the fieldpluginInitversion- value for the fieldversionlicense- value for the fieldlicensesource- value for the fieldsourcepackage_- value for the fieldpackage_origin- value for the fieldoriginreleaseDatetime- 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
-