whitespace fixes

This commit is contained in:
Wim Taymans 2009-09-10 11:53:09 +02:00
parent 06e27c5209
commit d1032a2835
3 changed files with 58 additions and 58 deletions

View file

@ -40,12 +40,12 @@
* <title>Using an element factory</title> * <title>Using an element factory</title>
* <programlisting language="c"> * <programlisting language="c">
* #include &lt;gst/gst.h&gt; * #include &lt;gst/gst.h&gt;
* *
* GstElement *src; * GstElement *src;
* GstElementFactory *srcfactory; * GstElementFactory *srcfactory;
* *
* gst_init (&amp;argc, &amp;argv); * gst_init (&amp;argc, &amp;argv);
* *
* srcfactory = gst_element_factory_find ("filesrc"); * srcfactory = gst_element_factory_find ("filesrc");
* g_return_if_fail (srcfactory != NULL); * g_return_if_fail (srcfactory != NULL);
* src = gst_element_factory_create (srcfactory, "src"); * src = gst_element_factory_create (srcfactory, "src");
@ -410,7 +410,7 @@ gst_element_factory_create (GstElementFactory * factory, const gchar * name)
goto no_element; goto no_element;
/* fill in the pointer to the factory in the element class. The /* fill in the pointer to the factory in the element class. The
* class will not be unreffed currently. * class will not be unreffed currently.
* Be thread safe as there might be 2 threads creating the first instance of * Be thread safe as there might be 2 threads creating the first instance of
* an element at the same moment * an element at the same moment
*/ */

View file

@ -50,7 +50,7 @@ typedef struct _GstElementDetails GstElementDetails;
* This struct defines the public information about a #GstElement. It contains * This struct defines the public information about a #GstElement. It contains
* meta-data about the element that is mostly for the benefit of editors. * meta-data about the element that is mostly for the benefit of editors.
* *
* The @klass member can be used by applications to filter elements based * The @klass member can be used by applications to filter elements based
* on functionality. * on functionality.
*/ */
/* FIXME: need translatable stuff in here (how handle in registry)? /* FIXME: need translatable stuff in here (how handle in registry)?
@ -80,7 +80,7 @@ struct _GstElementDetails
* *
* Macro to initialize #GstElementDetails. * Macro to initialize #GstElementDetails.
*/ */
#define GST_ELEMENT_DETAILS(longname,klass,description,author) \ #define GST_ELEMENT_DETAILS(longname,klass,description,author) \
{ longname, klass, description, author, {NULL} } { longname, klass, description, author, {NULL} }
/** /**
@ -90,17 +90,17 @@ struct _GstElementDetails
* Tests if element details are initialized. * Tests if element details are initialized.
*/ */
/* FIXME: what about adding '&& (*__gst_reserved==NULL)' */ /* FIXME: what about adding '&& (*__gst_reserved==NULL)' */
#define GST_IS_ELEMENT_DETAILS(details) ( \ #define GST_IS_ELEMENT_DETAILS(details) ( \
(details) && ((details)->longname != NULL) && ((details)->klass != NULL) \ (details) && ((details)->longname != NULL) && ((details)->klass != NULL) \
&& ((details)->description != NULL) && ((details)->author != NULL)) && ((details)->description != NULL) && ((details)->author != NULL))
#define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type()) #define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type())
#define GST_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ELEMENT_FACTORY,\ #define GST_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ELEMENT_FACTORY,\
GstElementFactory)) GstElementFactory))
#define GST_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ELEMENT_FACTORY,\ #define GST_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ELEMENT_FACTORY,\
GstElementFactoryClass)) GstElementFactoryClass))
#define GST_IS_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ELEMENT_FACTORY)) #define GST_IS_ELEMENT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ELEMENT_FACTORY))
#define GST_IS_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ELEMENT_FACTORY)) #define GST_IS_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ELEMENT_FACTORY))
#define GST_ELEMENT_FACTORY_CAST(obj) ((GstElementFactory *)(obj)) #define GST_ELEMENT_FACTORY_CAST(obj) ((GstElementFactory *)(obj))
/** /**
@ -109,20 +109,20 @@ struct _GstElementDetails
* The opaque #GstElementFactory data structure. * The opaque #GstElementFactory data structure.
*/ */
struct _GstElementFactory { struct _GstElementFactory {
GstPluginFeature parent; GstPluginFeature parent;
GType type; /* unique GType of element or 0 if not loaded */ GType type; /* unique GType of element or 0 if not loaded */
GstElementDetails details; GstElementDetails details;
GList * staticpadtemplates; GList * staticpadtemplates;
guint numpadtemplates; guint numpadtemplates;
/* URI interface stuff */ /* URI interface stuff */
guint uri_type; guint uri_type;
gchar ** uri_protocols; gchar ** uri_protocols;
GList * interfaces; /* interfaces this element implements */ GList * interfaces; /* interfaces this element implements */
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
}; };
@ -133,33 +133,33 @@ struct _GstElementFactoryClass {
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
}; };
GType gst_element_factory_get_type (void); GType gst_element_factory_get_type (void);
GstElementFactory * gst_element_factory_find (const gchar *name); GstElementFactory * gst_element_factory_find (const gchar *name);
GType gst_element_factory_get_element_type (GstElementFactory *factory); GType gst_element_factory_get_element_type (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_longname (GstElementFactory *factory); G_CONST_RETURN gchar * gst_element_factory_get_longname (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_klass (GstElementFactory *factory); G_CONST_RETURN gchar * gst_element_factory_get_klass (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_description (GstElementFactory *factory); G_CONST_RETURN gchar * gst_element_factory_get_description (GstElementFactory *factory);
G_CONST_RETURN gchar * gst_element_factory_get_author (GstElementFactory *factory); G_CONST_RETURN gchar * gst_element_factory_get_author (GstElementFactory *factory);
guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory); guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
G_CONST_RETURN GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory); G_CONST_RETURN GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
gint gst_element_factory_get_uri_type (GstElementFactory *factory); gint gst_element_factory_get_uri_type (GstElementFactory *factory);
gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory); gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory);
gboolean gst_element_factory_has_interface (GstElementFactory *factory, gboolean gst_element_factory_has_interface (GstElementFactory *factory,
const gchar *interfacename); const gchar *interfacename);
GstElement* gst_element_factory_create (GstElementFactory *factory, GstElement* gst_element_factory_create (GstElementFactory *factory,
const gchar *name); const gchar *name);
GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name); GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name);
/* FIXME 0.11: move these two into our private headers */ /* FIXME 0.11: move these two into our private headers */
void __gst_element_factory_add_static_pad_template (GstElementFactory *elementfactory, void __gst_element_factory_add_static_pad_template (GstElementFactory *elementfactory,
GstStaticPadTemplate *templ); GstStaticPadTemplate *templ);
void __gst_element_factory_add_interface (GstElementFactory *elementfactory, void __gst_element_factory_add_interface (GstElementFactory *elementfactory,
const gchar *interfacename); const gchar *interfacename);
gboolean gst_element_register (GstPlugin *plugin, const gchar *name, gboolean gst_element_register (GstPlugin *plugin, const gchar *name,
guint rank, GType type); guint rank, GType type);

View file

@ -29,13 +29,13 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_PLUGIN_FEATURE (gst_plugin_feature_get_type()) #define GST_TYPE_PLUGIN_FEATURE (gst_plugin_feature_get_type())
#define GST_PLUGIN_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PLUGIN_FEATURE, GstPluginFeature)) #define GST_PLUGIN_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PLUGIN_FEATURE, GstPluginFeature))
#define GST_IS_PLUGIN_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLUGIN_FEATURE)) #define GST_IS_PLUGIN_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLUGIN_FEATURE))
#define GST_PLUGIN_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLUGIN_FEATURE, GstPluginFeatureClass)) #define GST_PLUGIN_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLUGIN_FEATURE, GstPluginFeatureClass))
#define GST_IS_PLUGIN_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLUGIN_FEATURE)) #define GST_IS_PLUGIN_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLUGIN_FEATURE))
#define GST_PLUGIN_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLUGIN_FEATURE, GstPluginFeatureClass)) #define GST_PLUGIN_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLUGIN_FEATURE, GstPluginFeatureClass))
#define GST_PLUGIN_FEATURE_CAST(obj) ((GstPluginFeature*)(obj)) #define GST_PLUGIN_FEATURE_CAST(obj) ((GstPluginFeature*)(obj))
/** /**
* GST_PLUGIN_FEATURE_NAME: * GST_PLUGIN_FEATURE_NAME:
@ -90,7 +90,7 @@ struct _GstPluginFeature {
}; };
struct _GstPluginFeatureClass { struct _GstPluginFeatureClass {
GstObjectClass parent_class; GstObjectClass parent_class;
/*< private >*/ /*< private >*/
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
@ -104,8 +104,8 @@ struct _GstPluginFeatureClass {
* Structure used for filtering based on @name and @type. * Structure used for filtering based on @name and @type.
*/ */
typedef struct { typedef struct {
const gchar *name; const gchar *name;
GType type; GType type;
} GstTypeNameData; } GstTypeNameData;
/** /**
@ -123,18 +123,18 @@ typedef gboolean (*GstPluginFeatureFilter) (GstPluginFeature *featu
gpointer user_data); gpointer user_data);
/* normal GObject stuff */ /* normal GObject stuff */
GType gst_plugin_feature_get_type (void); GType gst_plugin_feature_get_type (void);
GstPluginFeature * GstPluginFeature *
gst_plugin_feature_load (GstPluginFeature *feature); gst_plugin_feature_load (GstPluginFeature *feature);
gboolean gst_plugin_feature_type_name_filter (GstPluginFeature *feature, gboolean gst_plugin_feature_type_name_filter (GstPluginFeature *feature,
GstTypeNameData *data); GstTypeNameData *data);
void gst_plugin_feature_set_rank (GstPluginFeature *feature, guint rank); void gst_plugin_feature_set_rank (GstPluginFeature *feature, guint rank);
void gst_plugin_feature_set_name (GstPluginFeature *feature, const gchar *name); void gst_plugin_feature_set_name (GstPluginFeature *feature, const gchar *name);
guint gst_plugin_feature_get_rank (GstPluginFeature *feature); guint gst_plugin_feature_get_rank (GstPluginFeature *feature);
G_CONST_RETURN gchar *gst_plugin_feature_get_name (GstPluginFeature *feature); G_CONST_RETURN gchar *gst_plugin_feature_get_name (GstPluginFeature *feature);
void gst_plugin_feature_list_free (GList *list); void gst_plugin_feature_list_free (GList *list);