summaryrefslogtreecommitdiff
path: root/libdocument/ev-document.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-23 12:20:40 +0200
committerraveit65 <[email protected]>2016-06-24 20:48:20 +0200
commitd0056f66f2d719eef718f3770dcbb6130a25101e (patch)
tree7f7859c7d8ddfaa1696195e3e795bd5a37af7573 /libdocument/ev-document.h
parenta89b45d36cae65743d7524682d3f79b55112dea0 (diff)
downloadatril-d0056f66f2d719eef718f3770dcbb6130a25101e.tar.bz2
atril-d0056f66f2d719eef718f3770dcbb6130a25101e.tar.xz
libdocument: Make EvSourceLink boxed.
https://bugzilla.gnome.org/show_bug.cgi?id=635705 taken from: https://git.gnome.org/browse/evince/commit/?id=0ac0898
Diffstat (limited to 'libdocument/ev-document.h')
-rw-r--r--libdocument/ev-document.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h
index 1089d79c..6c492da8 100644
--- a/libdocument/ev-document.h
+++ b/libdocument/ev-document.h
@@ -66,20 +66,15 @@ typedef struct {
typedef struct _EvRectangle EvRectangle;
typedef struct _EvMapping EvMapping;
-
+typedef struct _EvSourceLink EvSourceLink;
typedef struct _EvDocumentBackendInfo EvDocumentBackendInfo;
+
struct _EvDocumentBackendInfo
{
const gchar *name;
const gchar *version;
};
-typedef struct {
- const gchar *filename;
- gint line;
- gint col;
-} EvSourceLink;
-
struct _EvDocument
{
GObject base;
@@ -209,6 +204,21 @@ struct _EvMapping {
gpointer data;
};
+#define EV_TYPE_SOURCE_LINK (ev_source_link_get_type ())
+struct _EvSourceLink
+{
+ gchar *filename;
+ gint line;
+ gint col;
+};
+
+GType ev_source_link_get_type (void) G_GNUC_CONST;
+EvSourceLink *ev_source_link_new (const gchar *filename,
+ gint line,
+ gint col);
+EvSourceLink *ev_source_link_copy (EvSourceLink *link);
+void ev_source_link_free (EvSourceLink *link);
+
/* convenience macro to ease interface addition in the CODE
* section of EV_BACKEND_REGISTER_WITH_CODE (this macro relies on
* the g_define_type_id present within EV_BACKEND_REGISTER_WITH_CODE()).