cairorender: Move instance/class struct definitions to the header

This commit is contained in:
Sebastian Dröge 2009-07-16 21:31:43 +02:00
parent 0b990f3f6c
commit 13f23f81e8
2 changed files with 24 additions and 21 deletions

View file

@ -35,27 +35,6 @@
#include <string.h>
struct _GstCairoRender
{
GstElement parent;
GstPad *snk, *src;
/* Source */
cairo_surface_t *surface;
guint width, height;
/* Sink */
gint64 offset, duration;
gboolean png;
cairo_format_t format;
};
struct _GstCairoRenderClass
{
GstElementClass parent_class;
};
GST_DEBUG_CATEGORY_STATIC (cairo_render_debug);
#define GST_CAT_DEFAULT cairo_render_debug

View file

@ -22,6 +22,7 @@
#define __GST_CAIRO_RENDER_H__
#include <gst/gst.h>
#include <cairo.h>
G_BEGIN_DECLS
@ -32,6 +33,29 @@ G_BEGIN_DECLS
typedef struct _GstCairoRender GstCairoRender;
typedef struct _GstCairoRenderClass GstCairoRenderClass;
struct _GstCairoRender
{
GstElement parent;
GstPad *snk, *src;
/* < private > */
/* Source */
cairo_surface_t *surface;
gint width, height;
/* Sink */
gint64 offset, duration;
gboolean png;
cairo_format_t format;
};
struct _GstCairoRenderClass
{
GstElementClass parent_class;
};
GType gst_cairo_render_get_type (void) G_GNUC_CONST;
G_END_DECLS