aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-05-28 09:31:05 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-05-28 09:33:03 +0200
commit859736e5be7746ef90535754e37a3a8ec87dfd5e (patch)
treeddba6c5bcd15842a911ccf6841bfd7157f62ae99 /fiv-io.h
parentd5b2e43364f0d32cb7cd02247434cb1a95661bac (diff)
downloadfiv-859736e5be7746ef90535754e37a3a8ec87dfd5e.tar.gz
fiv-859736e5be7746ef90535754e37a3a8ec87dfd5e.tar.xz
fiv-859736e5be7746ef90535754e37a3a8ec87dfd5e.zip
Move FivIoModel to its own compilation unit
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/fiv-io.h b/fiv-io.h
index 3f8c65b..121f136 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -109,48 +109,6 @@ cairo_surface_t *fiv_io_deserialize(GBytes *bytes, guint64 *user_data);
GBytes *fiv_io_serialize_for_search(cairo_surface_t *surface, GError **error);
-// --- Filesystem --------------------------------------------------------------
-
-typedef enum _FivIoModelSort {
- FIV_IO_MODEL_SORT_NAME,
- FIV_IO_MODEL_SORT_MTIME,
- FIV_IO_MODEL_SORT_COUNT,
-
- FIV_IO_MODEL_SORT_MIN = 0,
- FIV_IO_MODEL_SORT_MAX = FIV_IO_MODEL_SORT_COUNT - 1
-} FivIoModelSort;
-
-#define FIV_TYPE_IO_MODEL (fiv_io_model_get_type())
-G_DECLARE_FINAL_TYPE(FivIoModel, fiv_io_model, FIV, IO_MODEL, GObject)
-
-/// Loads a directory. Clears itself even on failure.
-gboolean fiv_io_model_open(FivIoModel *self, GFile *directory, GError **error);
-
-/// Returns the current location as a GFile.
-/// There is no ownership transfer, and the object may be NULL.
-GFile *fiv_io_model_get_location(FivIoModel *self);
-
-/// Returns the previous VFS directory in order, or NULL.
-GFile *fiv_io_model_get_previous_directory(FivIoModel *self);
-/// Returns the next VFS directory in order, or NULL.
-GFile *fiv_io_model_get_next_directory(FivIoModel *self);
-
-// These objects are reference-counted using GRcBox.
-typedef struct {
- const char *uri; ///< GIO URI
- const char *target_uri; ///< GIO URI for any target
- const char *display_name; ///< Label for the file
- const char *collate_key; ///< Collate key for the filename
- guint64 filesize; ///< Filesize in bytes
- gint64 mtime_msec; ///< Modification time in milliseconds
-} FivIoModelEntry;
-
-#define fiv_io_model_entry_ref(e) g_rc_box_acquire(e)
-#define fiv_io_model_entry_unref(e) g_rc_box_release(e)
-
-FivIoModelEntry *const *fiv_io_model_get_files(FivIoModel *self, gsize *len);
-FivIoModelEntry *const *fiv_io_model_get_subdirs(FivIoModel *self, gsize *len);
-
// --- Export ------------------------------------------------------------------
/// Encodes a Cairo surface as a WebP bitstream, following the configuration.