interfaces: Separate struct definitions from typedefs

This commit is contained in:
Sebastian Dröge 2009-05-06 17:59:13 +02:00
parent 85c11069a2
commit b6c3567b41
4 changed files with 21 additions and 12 deletions

View file

@ -46,6 +46,7 @@ G_BEGIN_DECLS
#define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type) #define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type)
typedef struct _GstColorBalance GstColorBalance; typedef struct _GstColorBalance GstColorBalance;
typedef struct _GstColorBalanceClass GstColorBalanceClass;
/** /**
* GstColorBalanceType: * GstColorBalanceType:
@ -65,7 +66,7 @@ typedef enum
GST_COLOR_BALANCE_SOFTWARE GST_COLOR_BALANCE_SOFTWARE
} GstColorBalanceType; } GstColorBalanceType;
typedef struct _GstColorBalanceClass { struct _GstColorBalanceClass {
GTypeInterface klass; GTypeInterface klass;
GstColorBalanceType balance_type; GstColorBalanceType balance_type;
@ -85,7 +86,7 @@ typedef struct _GstColorBalanceClass {
gint value); gint value);
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
} GstColorBalanceClass; };
GType gst_color_balance_get_type (void); GType gst_color_balance_get_type (void);

View file

@ -39,22 +39,26 @@ G_BEGIN_DECLS
#define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \ #define GST_IS_COLOR_BALANCE_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL)) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE_CHANNEL))
typedef struct _GstColorBalanceChannel GstColorBalanceChannel;
typedef struct _GstColorBalanceChannelClass GstColorBalanceChannelClass;
/** /**
* GstColorBalanceChannel: * GstColorBalanceChannel:
* @label: A string containing a descriptive name for this channel * @label: A string containing a descriptive name for this channel
* @min_value: The minimum valid value for this channel. * @min_value: The minimum valid value for this channel.
* @max_value: The maximum valid value for this channel. * @max_value: The maximum valid value for this channel.
*/ */
typedef struct _GstColorBalanceChannel { struct _GstColorBalanceChannel {
GObject parent; GObject parent;
/*< public >*/ /*< public >*/
gchar *label; gchar *label;
gint min_value; gint min_value;
gint max_value; gint max_value;
} GstColorBalanceChannel; };
typedef struct _GstColorBalanceChannelClass {
struct _GstColorBalanceChannelClass {
GObjectClass parent; GObjectClass parent;
/* signals */ /* signals */
@ -62,7 +66,7 @@ typedef struct _GstColorBalanceChannelClass {
gint value); gint value);
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
} GstColorBalanceChannelClass; };
GType gst_color_balance_channel_get_type (void); GType gst_color_balance_channel_get_type (void);

View file

@ -43,8 +43,9 @@ G_BEGIN_DECLS
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass)) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass))
typedef struct _GstTuner GstTuner; typedef struct _GstTuner GstTuner;
typedef struct _GstTunerClass GstTunerClass;
typedef struct _GstTunerClass { struct _GstTunerClass {
GTypeInterface klass; GTypeInterface klass;
/* virtual functions */ /* virtual functions */
@ -80,7 +81,7 @@ typedef struct _GstTunerClass {
gint signal); gint signal);
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
} GstTunerClass; };
GType gst_tuner_get_type (void); GType gst_tuner_get_type (void);

View file

@ -39,6 +39,9 @@ G_BEGIN_DECLS
#define GST_IS_TUNER_CHANNEL_CLASS(klass) \ #define GST_IS_TUNER_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL)) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL))
typedef struct _GstTunerChannel GstTunerChannel;
typedef struct _GstTunerChannelClass GstTunerChannelClass;
/** /**
* GstTunerChannelFlags: * GstTunerChannelFlags:
* @GST_TUNER_CHANNEL_INPUT: The channel is for input * @GST_TUNER_CHANNEL_INPUT: The channel is for input
@ -77,7 +80,7 @@ typedef enum {
* @min_signal: Minimum reported signal strength value. * @min_signal: Minimum reported signal strength value.
* @max_signal: Maximum reported signal strength value. * @max_signal: Maximum reported signal strength value.
*/ */
typedef struct _GstTunerChannel { struct _GstTunerChannel {
GObject parent; GObject parent;
/*< public >*/ /*< public >*/
@ -88,9 +91,9 @@ typedef struct _GstTunerChannel {
gulong max_frequency; gulong max_frequency;
gint min_signal; gint min_signal;
gint max_signal; gint max_signal;
} GstTunerChannel; };
typedef struct _GstTunerChannelClass { struct _GstTunerChannelClass {
GObjectClass parent; GObjectClass parent;
/*< private >*/ /*< private >*/
@ -101,7 +104,7 @@ typedef struct _GstTunerChannelClass {
gint signal); gint signal);
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
} GstTunerChannelClass; };
GType gst_tuner_channel_get_type (void); GType gst_tuner_channel_get_type (void);