X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document.h;h=f9053772907fb0b5a9993894c0f76701ef153463;hb=8cf21129418452a327f4761b9bcf1ccd0fc7a5e8;hp=32cdc1fdac8b96b52d067a11882dd6f7ea7e2c49;hpb=c218c0fc841709a869f41e538ccf38df4d48d175;p=evince.git diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index 32cdc1fd..f9053772 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -49,9 +49,6 @@ typedef struct _EvDocument EvDocument; typedef struct _EvDocumentClass EvDocumentClass; typedef struct _EvDocumentPrivate EvDocumentPrivate; -typedef struct _EvPageCache EvPageCache; -typedef struct _EvPageCacheClass EvPageCacheClass; - #define EV_DOCUMENT_ERROR ev_document_error_quark () #define EV_DOC_MUTEX_LOCK (ev_document_doc_mutex_lock ()) #define EV_DOC_MUTEX_UNLOCK (ev_document_doc_mutex_unlock ()) @@ -69,6 +66,13 @@ typedef struct { typedef struct _EvRectangle EvRectangle; +typedef struct _EvDocumentBackendInfo EvDocumentBackendInfo; +struct _EvDocumentBackendInfo +{ + const gchar *name; + const gchar *version; +}; + struct _EvDocument { GObject base; @@ -99,6 +103,8 @@ struct _EvDocumentClass cairo_surface_t * (* render) (EvDocument *document, EvRenderContext *rc); EvDocumentInfo * (* get_info) (EvDocument *document); + gboolean (* get_backend_info)(EvDocument *document, + EvDocumentBackendInfo *info); }; GType ev_document_get_type (void) G_GNUC_CONST; @@ -117,6 +123,8 @@ void ev_document_fc_mutex_unlock (void); gboolean ev_document_fc_mutex_trylock (void); EvDocumentInfo *ev_document_get_info (EvDocument *document); +gboolean ev_document_get_backend_info (EvDocument *document, + EvDocumentBackendInfo *info); gboolean ev_document_load (EvDocument *document, const char *uri, GError **error);