summaryrefslogtreecommitdiff
path: root/libyelp/yelp-document.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-08-29 14:44:44 +0200
committerDavid King <amigadave@amigadave.com>2015-06-22 10:39:52 +0100
commit65d2f05a31bafad5d4f6147fc16db9fdd9aeadc9 (patch)
tree9a779bf74debe6bb2e444142cfee3c50ce4e3045 /libyelp/yelp-document.h
parentb9eac3dd0a0896919a027bd5ee03dcf81740e5bd (diff)
downloadyelp-65d2f05a31bafad5d4f6147fc16db9fdd9aeadc9.tar.gz
yelp-document: Make document-uri property a YelpUri
All implementations of YelpDocument except YelpSimpleDocument keep a reference to the YelpUri, so move it to the parent class and add a getter to use the YelpUri from derived classes. This is also useful to get the YelpUri directly from the document, instead of getting the document uri string, create a YelpUri and resolve it.
Diffstat (limited to 'libyelp/yelp-document.h')
-rw-r--r--libyelp/yelp-document.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libyelp/yelp-document.h b/libyelp/yelp-document.h
index e5cab519..002bab16 100644
--- a/libyelp/yelp-document.h
+++ b/libyelp/yelp-document.h
@@ -78,6 +78,8 @@ GType yelp_document_get_type (void);
YelpDocument * yelp_document_get_for_uri (YelpUri *uri);
+YelpUri * yelp_document_get_uri (YelpDocument *document);
+
gboolean yelp_document_request_page (YelpDocument *document,
const gchar *page_id,
GCancellable *cancellable,