Convert all loading to use GFile

Now we're able to make use of GVfs, with some caveats.
This commit is contained in:
2021-12-30 21:47:28 +01:00
parent 8b232dc444
commit 380ddd540b
11 changed files with 230 additions and 197 deletions

View File

@@ -73,9 +73,9 @@ extern cairo_user_data_key_t fiv_io_key_page_next;
extern cairo_user_data_key_t fiv_io_key_page_previous;
cairo_surface_t *fiv_io_open(
const gchar *path, FivIoProfile profile, gboolean enhance, GError **error);
const gchar *uri, FivIoProfile profile, gboolean enhance, GError **error);
cairo_surface_t *fiv_io_open_from_data(const char *data, size_t len,
const gchar *path, FivIoProfile profile, gboolean enhance, GError **error);
const gchar *uri, FivIoProfile profile, gboolean enhance, GError **error);
int fiv_io_filecmp(GFile *f1, GFile *f2);