Commit 5a3ff668 authored by Dom Lachowicz's avatar Dom Lachowicz

export get|set_base_uri()

parent 1cdcb183
......@@ -174,12 +174,6 @@ rsvg_pixbuf_from_data_with_size_data (const guchar * buff,
const char * base_uri,
GError ** error);
G_CONST_RETURN char *
rsvg_handle_get_base_uri (RsvgHandle *handle);
void rsvg_handle_set_base_uri (RsvgHandle *handle,
const char *base_uri);
gboolean
rsvg_eval_switch_attributes (RsvgPropertyBag *atts, gboolean * p_has_cond);
......
......@@ -1371,6 +1371,14 @@ static void rsvg_SAX_handler_struct_init()
rsvgSAXHandlerStruct.endElement = rsvg_end_element;
}
/**
* Set the base URI for this SVG
*
* @handle: A #RsvgHandle
* @base_uri:
*
* Since: 2.9 (really present in 2.8 as well)
*/
void rsvg_handle_set_base_uri (RsvgHandle *handle,
const char *base_uri)
{
......@@ -1381,6 +1389,13 @@ void rsvg_handle_set_base_uri (RsvgHandle *handle,
}
}
/**
* Gets the base uri for this RsvgHandle.
* @handle: A #RsvgHandle
*
* Returns: the base uri, possibly null
* Since: 2.9 (really present in 2.8 as well)
*/
G_CONST_RETURN char *rsvg_handle_get_base_uri (RsvgHandle *handle)
{
return handle->base_uri;
......
......@@ -76,6 +76,12 @@ gboolean rsvg_handle_close (RsvgHandle *handle,
GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle);
void rsvg_handle_free (RsvgHandle *handle);
G_CONST_RETURN char *
rsvg_handle_get_base_uri (RsvgHandle *handle);
void rsvg_handle_set_base_uri (RsvgHandle *handle,
const char *base_uri);
/* Convenience API */
GdkPixbuf *rsvg_pixbuf_from_file (const gchar *file_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment