[librsvg] rsvg-private.h: Clean up unused prototypes
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg-private.h: Clean up unused prototypes
- Date: Mon, 3 Dec 2018 18:53:26 +0000 (UTC)
commit a19490cbf3f007c0ede5482bbb291b31b064df40
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Dec 3 12:42:48 2018 -0600
rsvg-private.h: Clean up unused prototypes
And move the ones that are just used in rsvg-handle.c to that file.
librsvg/rsvg-handle.c | 28 ++++++++++++++++++++++++++
librsvg/rsvg-private.h | 53 --------------------------------------------------
2 files changed, 28 insertions(+), 53 deletions(-)
---
diff --git a/librsvg/rsvg-handle.c b/librsvg/rsvg-handle.c
index f9bf7e66..c9c92eeb 100644
--- a/librsvg/rsvg-handle.c
+++ b/librsvg/rsvg-handle.c
@@ -137,6 +137,34 @@ extern GFile *rsvg_handle_rust_get_base_gfile (RsvgHandleRust *raw_handle);
extern RsvgNode *rsvg_handle_defs_lookup (RsvgHandle *handle, const char *name);
extern gboolean rsvg_handle_rust_node_is_root(RsvgHandleRust *raw_handle, RsvgNode *node);
+/* Implemented in rust/src/node.rs */
+/* Call this as node = rsvg_node_unref (node); Then node will be NULL and you don't own it anymore! */
+extern RsvgNode *rsvg_node_unref (RsvgNode *node);
+
+/* Implemented in rsvg_internals/src/structure.rs */
+G_GNUC_INTERNAL
+gboolean rsvg_node_svg_get_size (RsvgNode *node, double dpi_x, double dpi_y, int *out_width, int
*out_height);
+
+/* Defined in rsvg_internals/src/drawing_ctx.rs */
+extern RsvgDrawingCtx *rsvg_drawing_ctx_new (RsvgHandle *handle,
+ cairo_t *cr,
+ guint width,
+ guint height,
+ double vb_width,
+ double vb_height,
+ double dpi_x,
+ double dpi_y,
+ gboolean testing);
+extern void rsvg_drawing_ctx_free (RsvgDrawingCtx *draw_ctx);
+extern void rsvg_drawing_ctx_add_node_and_ancestors_to_stack (RsvgDrawingCtx *draw_ctx,
+ RsvgNode *node);
+extern gboolean rsvg_drawing_ctx_draw_node_from_stack (RsvgDrawingCtx *ctx) G_GNUC_WARN_UNUSED_RESULT;
+extern void rsvg_drawing_ctx_get_geometry (RsvgDrawingCtx *ctx,
+ RsvgRectangle *ink_rect,
+ RsvgRectangle *logical_rect);
+
+
+
enum {
PROP_0,
PROP_FLAGS,
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index 49343060..536128ff 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -113,23 +113,6 @@ struct RsvgHandlePrivate {
RsvgHandleRust *rust_handle;
};
-/* Implemented in rust/src/node.rs */
-/* Call this as node = rsvg_node_unref (node); Then node will be NULL and you don't own it anymore! */
-G_GNUC_INTERNAL
-RsvgNode *rsvg_node_unref (RsvgNode *node) G_GNUC_WARN_UNUSED_RESULT;
-
-/* Implemented in rust/src/node.rs */
-G_GNUC_INTERNAL
-void rsvg_node_set_overridden_properties (RsvgNode *node);
-
-typedef struct RsvgNodeChildrenIter *RsvgNodeChildrenIter;
-
-/* Implemented in rsvg_internals/src/structure.rs */
-G_GNUC_INTERNAL
-gboolean rsvg_node_svg_get_size (RsvgNode *node, double dpi_x, double dpi_y, int *out_width, int
*out_height);
-
-typedef void (*RsvgPropertyBagEnumFunc) (const char *key, const char *value, gpointer user_data);
-
/* Implemented in rust/src/property_bag.rs */
G_GNUC_INTERNAL
RsvgPropertyBag rsvg_property_bag_new (const char **atts);
@@ -158,46 +141,10 @@ void rsvg_property_bag_iter_end (RsvgPropertyBagIter *iter);
G_GNUC_INTERNAL
GdkPixbuf *rsvg_cairo_surface_to_pixbuf (cairo_surface_t *surface);
-/* Defined in rsvg_internals/src/drawing_ctx.rs */
-G_GNUC_INTERNAL
-RsvgDrawingCtx *rsvg_drawing_ctx_new (RsvgHandle *handle,
- cairo_t *cr,
- guint width,
- guint height,
- double vb_width,
- double vb_height,
- double dpi_x,
- double dpi_y,
- gboolean testing);
-
-/* Defined in rsvg_internals/src/drawing_ctx.rs */
-G_GNUC_INTERNAL
-void rsvg_drawing_ctx_free (RsvgDrawingCtx *draw_ctx);
-
-/* Defined in rsvg_internals/src/drawing_ctx.rs */
-G_GNUC_INTERNAL
-void rsvg_drawing_ctx_add_node_and_ancestors_to_stack (RsvgDrawingCtx *draw_ctx,
- RsvgNode *node);
-
-/* Defined in rsvg_internals/src/drawing_ctx.rs */
-G_GNUC_INTERNAL
-gboolean rsvg_drawing_ctx_draw_node_from_stack (RsvgDrawingCtx *ctx) G_GNUC_WARN_UNUSED_RESULT;;
-
-/* Defined in rsvg_internals/src/drawing_ctx.rs */
-G_GNUC_INTERNAL
-void rsvg_drawing_ctx_get_geometry (RsvgDrawingCtx *ctx, RsvgRectangle *ink_rect, RsvgRectangle
*logical_rect);
-
-/* Implemented in rust/src/node.rs */
-G_GNUC_INTERNAL
-void rsvg_root_node_cascade(RsvgNode *node);
-
G_GNUC_INTERNAL
void rsvg_return_if_fail_warning (const char *pretty_function,
const char *expression, GError ** error);
-G_GNUC_INTERNAL
-RsvgNode *rsvg_load_destroy (RsvgLoad *load) G_GNUC_WARN_UNUSED_RESULT;
-
G_GNUC_INTERNAL
guint rsvg_handle_get_flags (RsvgHandle *handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]