From 139e6f8be4076e9916b2a4540cddde313c12d351 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sat, 16 Sep 2006 21:38:09 +0000 Subject: [PATCH] More G_OBJECT macro fixing. Also Fix some details on the plugin-stamp section. Original commit message from CVS: * docs/pwg/building-boiler.xml: * plugins/elements/gstcapsfilter.c: More G_OBJECT macro fixing. Also Fix some details on the plugin-stamp section. --- ChangeLog | 7 +++++++ docs/pwg/building-boiler.xml | 32 +++++++++++++++++--------------- plugins/elements/gstcapsfilter.c | 2 +- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3a2532..a2603a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-09-17 Stefan Kost + + * docs/pwg/building-boiler.xml: + * plugins/elements/gstcapsfilter.c: + More G_OBJECT macro fixing. Also Fix some details on the plugin-stamp + section. + 2006-09-16 Edward Hervey * libs/gst/base/gstbasetransform.c: diff --git a/docs/pwg/building-boiler.xml b/docs/pwg/building-boiler.xml index b98de37..2916918 100644 --- a/docs/pwg/building-boiler.xml +++ b/docs/pwg/building-boiler.xml @@ -50,8 +50,8 @@ U gst-template/gst-app/src/Makefile.am After the first command, you will have to press ENTER to - log in to the CVS server. (You might have to log in twice.) The second - command will check out a series of files and directories into ./gst-template. The template you will be using is in ./gst-template/gst-plugin/ directory. You @@ -64,11 +64,6 @@ U gst-template/gst-app/src/Makefile.am Using the Project Stamp - The first thing to do when making a new element is to specify some basic details about it: what its name is, who wrote it, what version number it @@ -82,8 +77,8 @@ U gst-template/gst-app/src/Makefile.am easiest way to do this is to copy a template and add functionality according to your needs. To help you do so, there is a tool in the ./gst-plugins/tools/ directory. - This tool, make_element, is a quick command line - tool. + This tool, make_element, is a command line utillity + that creates the boilerplate code for you. To use make_element, first open up a terminal window. @@ -98,7 +93,7 @@ U gst-template/gst-app/src/Makefile.am the source file that the tool will use. By default, - gstplugin.{c,h} is used. + gstplugin is used. @@ -119,6 +114,14 @@ U gst-template/gst-app/src/Makefile.am gstexamplefilter.c and gstexamplefilter.h. + + + It is recommened that you reate a copy of the gst-plugin + directory before continuing. Do not copy the CVS direcories though. + + @@ -163,15 +166,14 @@ typedef struct _GstMyFilterClass { } GstMyFilterClass; /* Standard macros for defining types for this element. */ -#define GST_TYPE_MY_FILTER \ - (gst_my_filter_get_type()) +#define GST_TYPE_MY_FILTER (gst_my_filter_get_type()) #define GST_MY_FILTER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MY_FILTER,GstMyFilter)) #define GST_MY_FILTER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MY_FILTER,GstMyFilterClass)) #define GST_IS_MY_FILTER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MY_FILTER)) -#define GST_IS_MY_FILTER_CLASS(obj) \ +#define GST_IS_MY_FILTER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MY_FILTER)) /* Standard function returning type information. */ @@ -219,7 +221,7 @@ GST_BOILERPLATE (GstMyFilter, gst_my_filter, GstElement, GST_TYPE_ELEMENT); For example: -static GstElementDetails my_filter_details = { +static const GstElementDetails my_filter_details = { "An example plugin", "Example/FirstExample", "Shows the basic structure of a plugin", @@ -239,7 +241,7 @@ gst_my_filter_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - static GstElementDetails my_filter_details = { + static const GstElementDetails my_filter_details = { [..] }; diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c index f01abf7..614f285 100644 --- a/plugins/elements/gstcapsfilter.c +++ b/plugins/elements/gstcapsfilter.c @@ -44,7 +44,7 @@ GST_ELEMENT_DETAILS ("CapsFilter", (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAPSFILTER,GstCapsFilterClass)) #define GST_IS_CAPSFILTER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CAPSFILTER)) -#define GST_IS_CAPSFILTER_CLASS(obj) \ +#define GST_IS_CAPSFILTER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CAPSFILTER)) typedef struct _GstCapsFilter GstCapsFilter; -- 2.7.4