summaryrefslogtreecommitdiff
path: root/gst/gstplugin.h
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2004-08-31 14:40:34 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2004-08-31 14:40:34 +0000
commit8aeee68ea1a3dd9325f29d91d36d14502df3312b (patch)
treede6c109e638f5439b797ff2e23240568b7c204b5 /gst/gstplugin.h
parent4c38fe8bb919915b013b0035c20df56ff2da3130 (diff)
added docs for GST_PLUGIN_DEFINE and GST_PLUGIN_DEFINE_STATIC
Original commit message from CVS: added docs for GST_PLUGIN_DEFINE and GST_PLUGIN_DEFINE_STATIC
Diffstat (limited to 'gst/gstplugin.h')
-rw-r--r--gst/gstplugin.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gst/gstplugin.h b/gst/gstplugin.h
index 058cb1f35..7a7585ae6 100644
--- a/gst/gstplugin.h
+++ b/gst/gstplugin.h
@@ -80,6 +80,21 @@ struct _GstPlugin {
gpointer _gst_reserved[GST_PADDING];
};
+/**
+ * GST_PLUGIN_DEFINE:
+ * @major: major version number
+ * @minor: minor version number
+ * @name: short name of the plugin
+ * @description: information about the purpose of the plugin
+ * @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
+ * @version: full version string (e.g. VERSION from config.h)
+ * @licence: under which licence the package has been released, e.g. GPL, LGPL.
+ * @package: the package-name (e.g. PACKAGE_NAME from config.h)
+ * @origin: a description from where the package comes from (e.g. the homepage URL)
+ *
+ * This macro needs to be used to define the entry point and meta data of a plugin.
+ * One would use this macro to export a plugin, so that it can be used by other applications.
+ */
#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,package,origin) \
GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
major, \
@@ -95,6 +110,21 @@ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
GST_PADDING_INIT \
};
+/**
+ * GST_PLUGIN_DEFINE_STATIC:
+ * @major: major version number
+ * @minor: minor version number
+ * @name: short name of the plugin
+ * @description: information about the purpose of the plugin
+ * @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
+ * @version: full version string (e.g. VERSION from config.h)
+ * @licence: under which licence the package has been released, e.g. GPL, LGPL.
+ * @package: the package-name (e.g. PACKAGE_NAME from config.h)
+ * @origin: a description from where the package comes from (e.g. the homepage URL)
+ *
+ * This macro needs to be used to define the entry point and meta data of a local plugin.
+ * One would use this macro to define a local plugin that can only be used by the own application.
+ */
#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) \