interfaces: Separate struct definitions from typedefs
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 6 May 2009 15:59:13 +0000 (17:59 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 07:03:22 +0000 (09:03 +0200)
gst-libs/gst/interfaces/colorbalance.h
gst-libs/gst/interfaces/colorbalancechannel.h
gst-libs/gst/interfaces/tuner.h
gst-libs/gst/interfaces/tunerchannel.h

index 44fbc67..6884133 100644 (file)
@@ -46,6 +46,7 @@ G_BEGIN_DECLS
 #define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
 
 typedef struct _GstColorBalance GstColorBalance;
+typedef struct _GstColorBalanceClass GstColorBalanceClass;
   
 /**
  * GstColorBalanceType:
@@ -65,7 +66,7 @@ typedef enum
   GST_COLOR_BALANCE_SOFTWARE
 } GstColorBalanceType;
 
-typedef struct _GstColorBalanceClass {
+struct _GstColorBalanceClass {
   GTypeInterface klass;
 
   GstColorBalanceType balance_type;
@@ -85,7 +86,7 @@ typedef struct _GstColorBalanceClass {
                           gint                    value);
 
   gpointer _gst_reserved[GST_PADDING];
-} GstColorBalanceClass;
+};
 
 GType   gst_color_balance_get_type      (void);
 
index dfb0d9d..f279f38 100644 (file)
@@ -39,22 +39,26 @@ G_BEGIN_DECLS
 #define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
 
+typedef struct _GstColorBalanceChannel GstColorBalanceChannel;
+typedef struct _GstColorBalanceChannelClass GstColorBalanceChannelClass;
+
 /**
  * GstColorBalanceChannel:
  * @label: A string containing a descriptive name for this channel
  * @min_value: The minimum valid value for this channel.
  * @max_value: The maximum valid value for this channel.
  */
-typedef struct _GstColorBalanceChannel {
+struct _GstColorBalanceChannel {
   GObject parent;
 
   /*< public >*/
   gchar  *label;
   gint    min_value;
   gint    max_value;
-} GstColorBalanceChannel;
+};
+
 
-typedef struct _GstColorBalanceChannelClass {
+struct _GstColorBalanceChannelClass {
   GObjectClass parent;
 
   /* signals */
@@ -62,7 +66,7 @@ typedef struct _GstColorBalanceChannelClass {
                           gint                    value);
 
   gpointer _gst_reserved[GST_PADDING];
-} GstColorBalanceChannelClass;
+};
 
 GType   gst_color_balance_channel_get_type (void);
 
index a8d05db..e7ca24e 100644 (file)
@@ -43,8 +43,9 @@ G_BEGIN_DECLS
   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass))
 
 typedef struct _GstTuner GstTuner;
+typedef struct _GstTunerClass GstTunerClass;
 
-typedef struct _GstTunerClass {
+struct _GstTunerClass {
   GTypeInterface klass;
 
   /* virtual functions */
@@ -80,7 +81,7 @@ typedef struct _GstTunerClass {
                              gint             signal);
 
   gpointer _gst_reserved[GST_PADDING];
-} GstTunerClass;
+};
 
 GType           gst_tuner_get_type              (void);
 
index 7028f0f..45c9c3f 100644 (file)
@@ -39,6 +39,9 @@ G_BEGIN_DECLS
 #define GST_IS_TUNER_CHANNEL_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL))
 
+typedef struct _GstTunerChannel GstTunerChannel;
+typedef struct _GstTunerChannelClass GstTunerChannelClass;
+
 /**
  * GstTunerChannelFlags:
  * @GST_TUNER_CHANNEL_INPUT: The channel is for input
@@ -77,7 +80,7 @@ typedef enum {
  * @min_signal: Minimum reported signal strength value.
  * @max_signal: Maximum reported signal strength value.
  */
-typedef struct _GstTunerChannel {
+struct _GstTunerChannel {
   GObject              parent;
 
   /*< public >*/
@@ -88,9 +91,9 @@ typedef struct _GstTunerChannel {
   gulong               max_frequency;
   gint                 min_signal;
   gint                 max_signal;
-} GstTunerChannel;
+};
 
-typedef struct _GstTunerChannelClass {
+struct _GstTunerChannelClass {
   GObjectClass parent;
 
   /*< private >*/
@@ -101,7 +104,7 @@ typedef struct _GstTunerChannelClass {
                              gint             signal);
 
   gpointer _gst_reserved[GST_PADDING];
-} GstTunerChannelClass;
+};
 
 GType           gst_tuner_channel_get_type      (void);