-Subproject commit b5288e8215c6eacf0782880f6c5b6dea8f445a34
+Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396
dnl set license and copyright notice
AC_DEFINE(GST_LICENSE, "LGPL", [GStreamer license])
-AC_DEFINE(GST_COPYRIGHT, "(c) 1999-2003 The GStreamer Team", [copyright message in plugins])
dnl package name in plugins
AC_ARG_WITH(package-name,
AC_HELP_STRING([--with-package-name],[specify package name to use in plugins]),
@Returns:
-<!-- ##### FUNCTION gst_init_get_popt_table ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION gst_version ##### -->
<para>
</para>
-<!-- ##### SIGNAL GstBin::element-added ##### -->
-<para>
-
-</para>
-
-@gstbin: the object which received the signal.
-@arg1: the element that was added to the bin
-
-<!-- ##### SIGNAL GstBin::element-removed ##### -->
-<para>
-
-</para>
-
-@gstbin: the object which received the signal.
-@arg1: the element that was removed from the bin
-
-<!-- ##### SIGNAL GstBin::iterate ##### -->
-<para>
-This signal is emitted when a bin iterates, either automatically or
-due to a #gst_bin_iterate() call. The return value is used to
-determine if the object method handler processed any data.
-In most normal cases, a user-provided signal handler should return
-FALSE.
-</para>
-
-@gstbin: the object which received the signal.
-@Returns: TRUE if the state of the bin was advanced.
-
<!-- ##### USER_FUNCTION GstBinPrePostIterateFunction ##### -->
<para>
The signature of the callback for the post and pre iterate function as set with
@clock:
+<!-- ##### SIGNAL GstBin::element-added ##### -->
+<para>
+
+</para>
+
+@gstbin: the object which received the signal.
+@arg1: the element that was added to the bin
+
+<!-- ##### SIGNAL GstBin::element-removed ##### -->
+<para>
+
+</para>
+
+@gstbin: the object which received the signal.
+@arg1: the element that was removed from the bin
+
+<!-- ##### SIGNAL GstBin::iterate ##### -->
+<para>
+This signal is emitted when a bin iterates, either automatically or
+due to a #gst_bin_iterate() call. The return value is used to
+determine if the object method handler processed any data.
+In most normal cases, a user-provided signal handler should return
+FALSE.
+</para>
+
+@gstbin: the object which received the signal.
+@Returns: TRUE if the state of the bin was advanced.
+
</para>
-<!-- ##### ARG GstClock:max-diff ##### -->
-<para>
-Maximum allowed diff for clock sync requests against the real time.
-</para>
-
-<!-- ##### ARG GstClock:stats ##### -->
-<para>
-Boolean property to activate stat generation on the clock.
-</para>
-
<!-- ##### FUNCTION gst_clock_set_speed ##### -->
<para>
@id:
+<!-- ##### ARG GstClock:max-diff ##### -->
+<para>
+Maximum allowed diff for clock sync requests against the real time.
+</para>
+
+<!-- ##### ARG GstClock:stats ##### -->
+<para>
+Boolean property to activate stat generation on the clock.
+</para>
+
-<!-- ##### MACRO GST_DISABLE_AUTOPLUG ##### -->
-<para>
-
-</para>
-
-
-
<!-- ##### MACRO GST_DISABLE_ENUMTYPES ##### -->
<para>
</para>
-<!-- ##### SIGNAL GstElement::eos ##### -->
-<para>
-Signal emited when the element goes to PAUSED due to an end-of-stream
-condition.
-</para>
-
-@gstelement: the object which received the signal.
-
-<!-- ##### SIGNAL GstElement::error ##### -->
-<para>
-Is triggered whenever an error occured.
-
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the error message
-@arg2:
-
-<!-- ##### SIGNAL GstElement::found-tag ##### -->
-<para>
-
-</para>
-
-@gstelement: the object which received the signal.
-@arg1:
-@arg2:
-
-<!-- ##### SIGNAL GstElement::new-pad ##### -->
-<para>
-Is triggered whenever a new pad is added to an element.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the new pad that was added
-
-<!-- ##### SIGNAL GstElement::pad-removed ##### -->
-<para>
-Is triggered whenever a pad has been removed from the element.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: The pad that was removed.
-
-<!-- ##### SIGNAL GstElement::state-change ##### -->
-<para>
-Is triggered whenever the state of an element changes.
-</para>
-
-@gstelement: the object which received the signal.
-@arg1: the new state of the object
-@arg2:
-
<!-- ##### MACRO gst_element_get_name ##### -->
<para>
Gets the name of the element.
@...: list of query types.
+<!-- ##### SIGNAL GstElement::eos ##### -->
+<para>
+Signal emited when the element goes to PAUSED due to an end-of-stream
+condition.
+</para>
+
+@gstelement: the object which received the signal.
+
+<!-- ##### SIGNAL GstElement::error ##### -->
+<para>
+Is triggered whenever an error occured.
+
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the error message
+@arg2:
+
+<!-- ##### SIGNAL GstElement::found-tag ##### -->
+<para>
+
+</para>
+
+@gstelement: the object which received the signal.
+@arg1:
+@arg2:
+
+<!-- ##### SIGNAL GstElement::new-pad ##### -->
+<para>
+Is triggered whenever a new pad is added to an element.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the new pad that was added
+
+<!-- ##### SIGNAL GstElement::pad-removed ##### -->
+<para>
+Is triggered whenever a pad has been removed from the element.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: The pad that was removed.
+
+<!-- ##### SIGNAL GstElement::state-change ##### -->
+<para>
+Is triggered whenever the state of an element changes.
+</para>
+
+@gstelement: the object which received the signal.
+@arg1: the new state of the object
+@arg2:
+
</para>
-<!-- ##### SIGNAL GstIndex::entry-added ##### -->
-<para>
-Is emited when a new entry is added to the index.
-</para>
-
-@gstindex: the object which received the signal.
-@arg1: The entry added to the index.
-
-<!-- ##### ARG GstIndex:resolver ##### -->
-<para>
-
-</para>
-
<!-- ##### FUNCTION gst_index_new ##### -->
<para>
@id:
+<!-- ##### SIGNAL GstIndex::entry-added ##### -->
+<para>
+Is emited when a new entry is added to the index.
+</para>
+
+@gstindex: the object which received the signal.
+@arg1: The entry added to the index.
+
+<!-- ##### ARG GstIndex:resolver ##### -->
+<para>
+
+</para>
+
</para>
-<!-- ##### SIGNAL GstObject::deep-notify ##### -->
-<para>
-The deep notify signal is used to be notified of property changes.
-it is typically attached to the toplevel bin to receive notifications
-from all the elements contained in that bin.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the object that originated the signal
-@arg2: the property that changed
-
-<!-- ##### SIGNAL GstObject::object-saved ##### -->
-<para>
-Is trigered whenever a new object is saved to XML. You can connect to
-this signal to insert custom XML tags into the core XML.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the xmlNodePtr of the parent node
-
-<!-- ##### SIGNAL GstObject::parent-set ##### -->
-<para>
-Is emitted when the parent of an object is set.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the new parent
-
-<!-- ##### SIGNAL GstObject::parent-unset ##### -->
-<para>
-Is emitted when the parent of an object is unset.
-</para>
-
-@gstobject: the object which received the signal.
-@arg1: the old parent
-
-<!-- ##### ARG GstObject:name ##### -->
-<para>
-The name of the object
-</para>
-
<!-- ##### MACRO GST_FLAGS ##### -->
<para>
This macro returns the entire set of flags for the object.
@Returns:
+<!-- ##### SIGNAL GstObject::deep-notify ##### -->
+<para>
+The deep notify signal is used to be notified of property changes.
+it is typically attached to the toplevel bin to receive notifications
+from all the elements contained in that bin.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the object that originated the signal
+@arg2: the property that changed
+
+<!-- ##### SIGNAL GstObject::object-saved ##### -->
+<para>
+Is trigered whenever a new object is saved to XML. You can connect to
+this signal to insert custom XML tags into the core XML.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the xmlNodePtr of the parent node
+
+<!-- ##### SIGNAL GstObject::parent-set ##### -->
+<para>
+Is emitted when the parent of an object is set.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the new parent
+
+<!-- ##### SIGNAL GstObject::parent-unset ##### -->
+<para>
+Is emitted when the parent of an object is unset.
+</para>
+
+@gstobject: the object which received the signal.
+@arg1: the old parent
+
+<!-- ##### ARG GstObject:name ##### -->
+<para>
+The name of the object
+</para>
+
</para>
-@padlist:
+@pad:
+@Varargs:
@Returns:
+<!-- # Unused Parameters # -->
+@padlist:
<!-- ##### FUNCTION gst_pad_selectv ##### -->
</para>
+@padlist:
+@Returns:
+<!-- # Unused Parameters # -->
@pad:
@Varargs:
-@Returns:
<!-- ##### FUNCTION gst_pad_dispatcher ##### -->
</para>
-<!-- ##### SIGNAL GstPadTemplate::pad-created ##### -->
-<para>
-This signal is fired when an element creates a pad from this
-template.
-</para>
-
-@gstpadtemplate: the object which received the signal.
-@arg1: The pad that was created.
-
<!-- ##### ENUM GstPadTemplateFlags ##### -->
<para>
Flags for the padtemplate
@Returns:
+<!-- ##### SIGNAL GstPadTemplate::pad-created ##### -->
+<para>
+This signal is fired when an element creates a pad from this
+template.
+</para>
+
+@gstpadtemplate: the object which received the signal.
+@arg1: The pad that was created.
+
@plugin_exit:
@version:
@license:
-@copyright:
@package:
@origin:
GstAudioSrc
+<!-- ##### SECTION ./tmpl/gstautoplug.sgml:Long_Description ##### -->
+<para>
+GstAutoplug is an abstract class that is used for constructing and
+linking elements. Two types of autopluggers exist: renderer ones and non
+renderer ones. The renderer autopluggers will not have any src pads while the
+non renderer ones do.
+</para>
+
+<para>
+You first need to create a suitable autoplugger with gst_autoplug_factory_make()
+(see #GstAutoplugFactory).
+The name of the autoplugger must be one of the registered autopluggers
+(see #GstStaticAutoplug and #GstStaticAutoplugRender).
+</para>
+<para>
+If the autoplugger supports the RENDERER API, use gst_autoplug_to_renderers() to
+create a bin that links the src caps to the specified renderer elements. You can
+then add the bin to a pipeline and run it.
+
+ <programlisting>
+ GstAutoplug *autoplug;
+ GstElement *element;
+ GstElement *sink;
+
+ /* create a static autoplugger */
+ autoplug = gst_autoplug_factory_make ("staticrender");
+
+ /* create an osssink */
+ sink = gst_element_factory_make ("osssink", "our_sink");
+
+ /* create an element that can play audio/mp3 through osssink */
+ element = gst_autoplug_to_renderers (autoplug,
+ gst_caps_new (
+ "sink_audio_caps",
+ "audio/mp3",
+ NULL
+ ),
+ sink,
+ NULL);
+
+ /* add the element to a bin and link the sink pad */
+ ...
+ </programlisting>
+</para>
+<para>
+If the autoplugger supports the CAPS API, use gst_autoplug_to_caps() to
+link the src caps to the destination caps. The created bin will have src caps
+compatible with the provided sink caps.
+
+ <programlisting>
+ GstAutoplug *autoplug;
+ GstElement *element;
+
+ /* create a static autoplugger */
+ autoplug = gst_autoplug_factory_make ("static");
+
+ /* create an element that converts audio/mp3 to audio/raw */
+ element = gst_autoplug_to_caps (autoplug,
+ gst_caps_new (
+ "sink_audio_caps",
+ "audio/mp3",
+ NULL
+ ),
+ gst_caps_new (
+ "src_audio_caps",
+ "audio/raw",
+ NULL
+ ),
+ NULL);
+
+ /* add the element to a bin and link the src/sink pads */
+ ...
+ </programlisting>
+</para>
+
+<para>
+Optionally you can get a notification when a new object is added to the created
+pipeline with a g_signal_connect to the "new_object" signal.
+</para>
+
+<para>
+Use the regular gst_object_destroy() call to destroy the autoplugger.
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gstautoplug.sgml:See_Also ##### -->
+<para>
+#GstStaticAutoplug, #GstStaticAutoplugRender
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gstautoplug.sgml:Short_Description ##### -->
+Automatically create and link elements
+
+
+<!-- ##### SECTION ./tmpl/gstautoplug.sgml:Title ##### -->
+GstAutoplug
+
+
+<!-- ##### SECTION ./tmpl/gstautoplugfactory.sgml:Long_Description ##### -->
+<para>
+An autoplugfactory is used to create instances of an autoplugger. It
+can be added to a #GstPlugin as it extends #GstPluginFeature.
+</para>
+<para>
+Use gst_autoplug_factory_new() to create a new autoplugger which can be registered
+to a plugin with gst_plugin_add_feature().
+</para>
+<para>
+Use gst_autoplug_factory_find() to find the named autoplugfactory.
+or use gst_autoplug_factory_get_list() to get a list of all available autopluggers.
+</para>
+<para>
+Once an autoplugfactory has been obtained use gst_autoplug_factory_create() to
+instantiate a real autoplugger. Optionally gst_autoplug_factory_make() to create
+a autoplugger from the named factory.
+</para>
+<para>
+Use gst_autoplug_factory_destroy() to remove the factory from the global list.
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gstautoplugfactory.sgml:See_Also ##### -->
+<para>
+#GstAutoplug, #GstPlugin, #GstPluginFeature.
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gstautoplugfactory.sgml:Short_Description ##### -->
+Create autopluggers from a factory.
+
+
+<!-- ##### SECTION ./tmpl/gstautoplugfactory.sgml:Title ##### -->
+GstAutoplugFactory
+
+
<!-- ##### SECTION ./tmpl/gstbufferpool-default.sgml:Long_Description ##### -->
<para>
GstSrc
+<!-- ##### SECTION ./tmpl/gststaticautoplug.sgml:Long_Description ##### -->
+<para>
+This autoplugger will create a non threaded element before running the
+pipeline.
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplug.sgml:See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplug.sgml:Short_Description ##### -->
+A static autoplugger.
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplug.sgml:Title ##### -->
+GstStaticAutoplug
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplugrender.sgml:Long_Description ##### -->
+<para>
+this autoplugger will create a threaded element that can be used
+in media players.
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplugrender.sgml:See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplugrender.sgml:Short_Description ##### -->
+An autoplugger made for media playback
+
+
+<!-- ##### SECTION ./tmpl/gststaticautoplugrender.sgml:Title ##### -->
+GstStaticAutoplugRender
+
+
<!-- ##### SECTION ./tmpl/gststatistics.sgml:Long_Description ##### -->
<para>
The plugin doesn't alter the data but provides statistics about
@format: printf-style format string
@args...: printf arguments
+<!-- ##### MACRO GST_DISABLE_AUTOPLUG ##### -->
+<para>
+
+</para>
+
+
<!-- ##### MACRO GST_DISABLE_TYPEFIND ##### -->
<para>
</para>
+<!-- ##### STRUCT GstAutoplug ##### -->
+<para>
+The autoplug object
+</para>
+
+
+<!-- ##### SIGNAL GstAutoplug::new-object ##### -->
+<para>
+
+</para>
+
+@gstautoplug: the object which received the signal.
+@arg1:
+
+<!-- ##### STRUCT GstAutoplugFactory ##### -->
+<para>
+The autoplugfactory object
+</para>
+
+
+<!-- ##### ENUM GstAutoplugFlags ##### -->
+<para>
+The type of the autoplugger.
+</para>
+
+@GST_AUTOPLUG_TO_CAPS:
+@GST_AUTOPLUG_TO_RENDERER:
+@GST_AUTOPLUG_FLAG_LAST:
+
<!-- ##### STRUCT GstAutoplugNode ##### -->
<para>
</para>
-<!-- ##### SIGNAL GstXML::object-loaded ##### -->
-<para>
-
-</para>
-
-@gstxml: the object which received the signal.
-@arg1:
-@arg2:
-
<!-- ##### USER_FUNCTION GstXMLRegistryAddPathList ##### -->
<para>
@factories:
@Returns:
+<!-- ##### FUNCTION gst_autoplug_factory_create ##### -->
+<para>
+
+</para>
+
+@factory:
+@Returns:
+
+<!-- ##### FUNCTION gst_autoplug_factory_destroy ##### -->
+<para>
+
+</para>
+
+@factory:
+
+<!-- ##### FUNCTION gst_autoplug_factory_find ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
<!-- ##### FUNCTION gst_autoplug_factory_get_list ##### -->
<para>
@parent:
@Returns:
+<!-- ##### FUNCTION gst_autoplug_factory_make ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
+<!-- ##### FUNCTION gst_autoplug_factory_new ##### -->
+<para>
+
+</para>
+
+@name:
+@longdesc:
+@type:
+@Returns:
+
<!-- ##### FUNCTION gst_autoplug_factory_save_thyself ##### -->
<para>
@fac:
+<!-- ##### FUNCTION gst_autoplug_signal_new_object ##### -->
+<para>
+
+</para>
+
+@autoplug:
+@object:
+
<!-- ##### FUNCTION gst_autoplug_sp ##### -->
<para>
@factories:
@Returns:
+<!-- ##### FUNCTION gst_autoplug_to_caps ##### -->
+<para>
+
+</para>
+
+@autoplug:
+@srccaps:
+@sinkcaps:
+@Varargs:
+@Returns:
+
+<!-- ##### FUNCTION gst_autoplug_to_renderers ##### -->
+<para>
+
+</para>
+
+@autoplug:
+@srccaps:
+@target:
+@Varargs:
+@Returns:
+
<!-- ##### FUNCTION gst_bin_add_managed_element ##### -->
<para>
@format:
@args...:
+<!-- ##### FUNCTION gst_init_get_popt_table ##### -->
+<para>
+
+</para>
+
+@Returns:
+
<!-- ##### FUNCTION gst_link_get_type ##### -->
=======
</para>
-<!-- ##### SIGNAL GstThread::shutdown ##### -->
+<!-- ##### FUNCTION gst_thread_new ##### -->
<para>
</para>
-@gstthread: the object which received the signal.
+@name:
+@Returns:
-<!-- ##### ARG GstThread:priority ##### -->
-<para>
-The thread priority
-</para>
-<!-- ##### FUNCTION gst_thread_new ##### -->
+<!-- ##### SIGNAL GstThread::shutdown ##### -->
<para>
</para>
-@name:
-@Returns:
+@gstthread: the object which received the signal.
+<!-- ##### ARG GstThread:priority ##### -->
+<para>
+The thread priority
+</para>
@Returns:
+<!-- ##### SIGNAL GstXML::object-loaded ##### -->
+<para>
+
+</para>
+
+@gstxml: the object which received the signal.
+@arg1:
+@arg2:
+
+<!-- ##### SIGNAL GstXML::object-loaded ##### -->
+<para>
+
+</para>
+
+@:
+@:
+@:
+
"0.1", /* The version number of the plugin */
"LGPL", /* ieffective license the plugin can be shipped with. Must be
* valid for all libraries it links to, too. */
- "(c) 2003 E. Xamplewriter",
- /* Copyright holder for this plugin. This does not include
- * the libraries it links to, contrary to the license. This
- * field should be considered informational and not legally
- * binding */
"my nifty plugin package",
/* package this plugin belongs to. */
"http://www.mydomain.com"
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
NULL,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN,
G_CONST_RETURN gchar * gst_element_factory_get_description (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_version (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_author (GstElementFactory *factory);
-guint gst_element_factory_get_num_padtemplates (GstElementFactory *factory);
-G_CONST_RETURN GList * gst_element_factory_get_padtemplates (GstElementFactory *factory);
+guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
+G_CONST_RETURN GList * gst_element_factory_get_pad_templates (GstElementFactory *factory);
guint gst_element_factory_get_uri_type (GstElementFactory *factory);
gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory);
}
if (!desc->license || !desc->description || !desc->package ||
- !desc->copyright || !desc->origin) {
+ !desc->origin) {
if (GST_CAT_DEFAULT) GST_INFO ("plugin \"%s\" has incorrect GstPluginDesc, not loading",
plugin->filename);
return FALSE;
dest->version = g_strdup (src->version);
g_free (dest->license);
dest->license = g_strdup (src->license);
- g_free (dest->copyright);
- dest->copyright = g_strdup (src->copyright);
g_free (dest->package);
dest->package = g_strdup (src->package);
g_free (dest->origin);
g_free (desc->description);
g_free (desc->version);
g_free (desc->license);
- g_free (desc->copyright);
g_free (desc->package);
g_free (desc->origin);
return plugin->desc.license;
}
-/**
- * gst_plugin_get_copyright:
- * @plugin: plugin to get the copyright of
- *
- * get the informal copyright notice of the plugin
- *
- * Returns: the copyright of the plugin
- */
-G_CONST_RETURN gchar*
-gst_plugin_get_copyright (GstPlugin *plugin)
-{
- g_return_val_if_fail (plugin != NULL, NULL);
-
- return plugin->desc.copyright;
-}
/**
* gst_plugin_get_package:
* @plugin: plugin to get the package of
GstPluginExitFunc plugin_exit; /* pointer to exiting function */
gchar *version; /* version of the plugin */
gchar *license; /* effective license of plugin */
- gchar *copyright; /* informal copyright notice */
gchar *package; /* package plugin belongs to */
gchar *origin; /* URL to provider of plugin */
};
#ifndef GST_PLUGIN_STATIC
-#define GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,copyright,package,origin) \
+#define GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,package,origin) \
GstPluginDesc gst_plugin_desc = { \
major, \
minor, \
NULL, \
version, \
license, \
- copyright, \
package, \
origin, \
GST_STRUCT_PADDING_INIT \
};
-#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,copyright,package,origin)
+#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)
#else
-#define GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,copyright,package,origin)
-#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,copyright,package,origin) \
+#define GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,package,origin)
+#define GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin) \
static void GST_GNUC_CONSTRUCTOR \
_gst_plugin_static_init__ ##init (void) \
{ \
NULL, \
version, \
license, \
- copyright, \
package, \
origin, \
GST_STRUCT_PADDING_INIT \
}
#endif
-#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,copyright,package,origin)\
- GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,copyright,package,origin)\
- GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,copyright,package,origin)
+#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,package,origin)\
+ GST_PLUGIN_DEFINE_STATIC(major,minor,name,description,init,version,license,package,origin)\
+ GST_PLUGIN_DEFINE_DYNAMIC(major,minor,name,description,init,version,license,package,origin)
#define GST_LICENSE_UNKNOWN "unknown"
G_CONST_RETURN gchar* gst_plugin_get_longname (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_filename (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_license (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_copyright (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_package (GstPlugin *plugin);
G_CONST_RETURN gchar* gst_plugin_get_origin (GstPlugin *plugin);
GModule * gst_plugin_get_module (GstPlugin *plugin);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
else if (!strcmp (tag, "version")) {
plugin->desc.version = g_strndup (text, text_len);
}
- else if (!strcmp (tag, "copyright")) {
- plugin->desc.copyright = g_strndup (text, text_len);
- }
else if (!strcmp (tag, "license")) {
plugin->desc.license = g_strndup (text, text_len);
}
PUT_ESCAPED ("filename", plugin->filename);
PUT_ESCAPED ("version", plugin->desc.version);
PUT_ESCAPED ("license", plugin->desc.license);
- PUT_ESCAPED ("copyright", plugin->desc.copyright);
PUT_ESCAPED ("package", plugin->desc.package);
PUT_ESCAPED ("origin", plugin->desc.origin);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
plugin_init,
VERSION,
GST_LICENSE,
- GST_VERSION,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
"0.1", /* The version number of the plugin */
"LGPL", /* ieffective license the plugin can be shipped with. Must be
* valid for all libraries it links to, too. */
- "(c) 2003 E. Xamplewriter",
- /* Copyright holder for this plugin. This does not include
- * the libraries it links to, contrary to the license. This
- * field should be considered informational and not legally
- * binding */
"my nifty plugin package",
/* package this plugin belongs to. */
"http://www.mydomain.com"
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
NULL,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
};
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin2_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)
NULL,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
};
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin2_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
plugin_init,
VERSION,
GST_LICENSE,
- GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
);
g_print (" Filename:\t%s\n", plugin->filename);
g_print (" Version:\t%s\n", plugin->desc.version);
g_print (" License:\t%s\n", plugin->desc.license);
- g_print (" Copyright:\t%s\n", plugin->desc.copyright);
g_print (" Package:\t%s\n", plugin->desc.package);
g_print (" Origin URL:\t%s\n", plugin->desc.origin);
g_print ("\n");
g_print (" Filename:\t%s\n", plugin->filename);
g_print (" Version:\t%s\n", plugin->desc.version);
g_print (" License:\t%s\n", plugin->desc.license);
- g_print (" Copyright:\t%s\n", plugin->desc.copyright);
g_print (" Package:\t%s\n", plugin->desc.package);
g_print (" Origin URL:\t%s\n", plugin->desc.origin);
g_print ("\n");