[librsvg/librsvg-2.40] rsvg_handle_resolve_uri(): Make public
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.40] rsvg_handle_resolve_uri(): Make public
- Date: Tue, 5 Dec 2017 00:51:18 +0000 (UTC)
commit 9efada91cd4afb7824d3785314ec21b65f93798d
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Dec 4 18:25:20 2017 -0600
rsvg_handle_resolve_uri(): Make public
rsvg-base.c | 10 +++++-----
rsvg-private.h | 4 ++++
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index bbdfecc..5260540 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -2479,9 +2479,9 @@ rsvg_allow_load (GFile *base_gfile,
return FALSE;
}
-static char *
-_rsvg_handle_resolve_uri (RsvgHandle *handle,
- const char *uri)
+char *
+rsvg_handle_resolve_uri (RsvgHandle *handle,
+ const char *uri)
{
RsvgHandlePrivate *priv = handle->priv;
char *scheme, *resolved_uri;
@@ -2519,7 +2519,7 @@ _rsvg_handle_acquire_data (RsvgHandle *handle,
char *uri;
char *data;
- uri = _rsvg_handle_resolve_uri (handle, url);
+ uri = rsvg_handle_resolve_uri (handle, url);
if (rsvg_allow_load (priv->base_gfile, uri, error)) {
data = _rsvg_io_acquire_data (uri,
@@ -2546,7 +2546,7 @@ _rsvg_handle_acquire_stream (RsvgHandle *handle,
char *uri;
GInputStream *stream;
- uri = _rsvg_handle_resolve_uri (handle, url);
+ uri = rsvg_handle_resolve_uri (handle, url);
if (rsvg_allow_load (priv->base_gfile, uri, error)) {
stream = _rsvg_io_acquire_stream (uri,
diff --git a/rsvg-private.h b/rsvg-private.h
index bbb76c7..1eca030 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -421,6 +421,10 @@ void rsvg_return_if_fail_warning (const char *pretty_function,
const char *expression, GError ** error);
G_GNUC_INTERNAL
+char *rsvg_handle_resolve_uri (RsvgHandle *handle,
+ const char *uri);
+
+G_GNUC_INTERNAL
gboolean rsvg_allow_load (GFile *base_gfile,
const char *uri,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]