diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-07-16 21:31:43 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-07-16 21:31:43 +0200 |
commit | 13f23f81e8157722ad91e44e46d988ef172a6058 (patch) | |
tree | 83509ebaa2c4df1476952e3da18fd1671e180251 | |
parent | 0b990f3f6c73b2e5b6625a7705e0ca7b5c145a5e (diff) |
cairorender: Move instance/class struct definitions to the header
-rw-r--r-- | ext/cairo/gstcairorender.c | 21 | ||||
-rw-r--r-- | ext/cairo/gstcairorender.h | 24 |
2 files changed, 24 insertions, 21 deletions
diff --git a/ext/cairo/gstcairorender.c b/ext/cairo/gstcairorender.c index 5157df04..e2ae5c02 100644 --- a/ext/cairo/gstcairorender.c +++ b/ext/cairo/gstcairorender.c @@ -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 diff --git a/ext/cairo/gstcairorender.h b/ext/cairo/gstcairorender.h index e3e40104..dcfaaffa 100644 --- a/ext/cairo/gstcairorender.h +++ b/ext/cairo/gstcairorender.h @@ -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 |