summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-backends-manager.c13
-rw-r--r--libdocument/ev-backends-manager.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/libdocument/ev-backends-manager.c b/libdocument/ev-backends-manager.c
index dd62642d..74fc09a0 100644
--- a/libdocument/ev-backends-manager.c
+++ b/libdocument/ev-backends-manager.c
@@ -63,6 +63,19 @@ backends_dir (void)
return backendsdir;
}
+gchar*
+ev_backends_manager_get_backends_dir(void)
+{
+ gchar *retval;
+ if (!backendsdir) {
+ retval = backends_dir();
+ }
+ else {
+ retval = backendsdir;
+ }
+ return retval;
+}
+
static void
ev_backend_info_free (EvBackendInfo *info)
{
diff --git a/libdocument/ev-backends-manager.h b/libdocument/ev-backends-manager.h
index 42f597ee..1d660eac 100644
--- a/libdocument/ev-backends-manager.h
+++ b/libdocument/ev-backends-manager.h
@@ -42,7 +42,7 @@ EvDocument *ev_backends_manager_get_document (const gchar *mime_typ
const gchar *ev_backends_manager_get_document_module_name (EvDocument *document);
EvTypeInfo *ev_backends_manager_get_document_type_info (EvDocument *document);
GList *ev_backends_manager_get_all_types_info (void);
-
+gchar *ev_backends_manager_get_backends_dir (void);
G_END_DECLS
#endif /* EV_BACKENDS_MANAGER */