From 67a923a1096f1e9765a5d804e4fb9fac39bcfcf2 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Thu, 30 Mar 2006 22:20:35 +0000 Subject: Rework factory functions so they are placed now in a single file * backend/ev-document-factory.c: (ev_document_factory_get_from_mime), (ev_document_factory_get_all_mime_types), (get_document_from_uri), (ev_document_factory_get_document), (file_filter_add_mime_list_and_free), (ev_document_factory_add_filters): * backend/ev-document-factory.h: * properties/ev-properties-main.c: (ev_properties_get_pages): * shell/Makefile.am: * shell/ev-application.c: * shell/ev-job-xfer.c: (ev_job_xfer_run): * shell/ev-window.c: (ev_window_cmd_file_open), (ev_window_cmd_save_as): * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): Rework factory functions so they are placed now in a single file ev-document-factory.c --- (limited to 'backend/ev-document-factory.h') diff --git a/backend/ev-document-factory.h b/backend/ev-document-factory.h index f299730..b2c9659 100644 --- a/backend/ev-document-factory.h +++ b/backend/ev-document-factory.h @@ -21,6 +21,7 @@ #ifndef EV_DOCUMENT_FACTORY_H #define EV_DOCUMENT_FACTORY_H +#include #include "ev-document.h" G_BEGIN_DECLS @@ -35,10 +36,10 @@ typedef enum { EV_BACKEND_COMICS } EvBackend; -EvDocument *ev_document_factory_get_document (const char *mime_type); -EvBackend ev_document_factory_get_backend (EvDocument *document); -GList *ev_document_factory_get_mime_types (EvBackend backend); -GList *ev_document_factory_get_all_mime_types (void); +EvDocument* ev_document_factory_get_from_mime (const char *mime_type); +EvDocument* ev_document_factory_get_document (const char *uri, gchar **mime_type, GError **error); +EvBackend ev_document_factory_get_backend (EvDocument *document); +void ev_document_factory_add_filters (GtkWidget *chooser, EvDocument *document); G_END_DECLS -- cgit v0.9.1