[gjs: 29/45] [cairo] Make internal structures private



commit 7367b3e7bad11addf106f999322b23803ea37130
Author: Johan Dahlin <johan gnome org>
Date:   Fri Feb 26 18:58:54 2010 -0300

    [cairo] Make internal structures private

 modules/cairo-pattern.c |    7 +++++++
 modules/cairo-private.h |   14 --------------
 modules/cairo-surface.c |    7 +++++++
 3 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/modules/cairo-pattern.c b/modules/cairo-pattern.c
index 568fa70..444772b 100644
--- a/modules/cairo-pattern.c
+++ b/modules/cairo-pattern.c
@@ -26,6 +26,13 @@
 #include <cairo.h>
 #include "cairo-private.h"
 
+typedef struct {
+    void            *dummy;
+    JSContext       *context;
+    JSObject        *object;
+    cairo_pattern_t *pattern;
+} GjsCairoPattern;
+
 GJS_DEFINE_PROTO_ABSTRACT("CairoPattern", gjs_cairo_pattern)
 
 GJS_DEFINE_PRIV_FROM_JS(GjsCairoPattern, gjs_cairo_pattern_class)
diff --git a/modules/cairo-private.h b/modules/cairo-private.h
index 8dca928..4ad267c 100644
--- a/modules/cairo-private.h
+++ b/modules/cairo-private.h
@@ -25,13 +25,6 @@
 
 #include <cairo.h>
 
-typedef struct {
-    void            *dummy;
-    JSContext       *context;
-    JSObject        *object;
-    cairo_surface_t *surface;
-} GjsCairoSurface;
-
 JSBool           gjs_js_define_cairo_stuff              (JSContext       *context,
                                                          JSObject        *module);
 
@@ -95,13 +88,6 @@ jsval            gjs_cairo_svg_surface_create_proto     (JSContext       *contex
 #endif
 
 /* pattern */
-typedef struct {
-    void            *dummy;
-    JSContext       *context;
-    JSObject        *object;
-    cairo_pattern_t *pattern;
-} GjsCairoPattern;
-
 jsval            gjs_cairo_pattern_create_proto         (JSContext       *context,
                                                          JSObject        *module,
                                                          const char      *proto_name,
diff --git a/modules/cairo-surface.c b/modules/cairo-surface.c
index 6d3936d..3a4c64f 100644
--- a/modules/cairo-surface.c
+++ b/modules/cairo-surface.c
@@ -26,6 +26,13 @@
 #include <cairo.h>
 #include "cairo-private.h"
 
+typedef struct {
+    void            *dummy;
+    JSContext       *context;
+    JSObject        *object;
+    cairo_surface_t *surface;
+} GjsCairoSurface;
+
 GJS_DEFINE_PROTO_ABSTRACT("CairoSurface", gjs_cairo_surface)
 
 GJS_DEFINE_PRIV_FROM_JS(GjsCairoSurface, gjs_cairo_surface_class)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]