aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-03-30 20:52:57 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-04-11 06:04:27 +0200
commit1b50a834a5d6bb1584e261efd656c8153fcf41b8 (patch)
treefbf771da3ef55a31e18c20b3c7b8501bf49dabc6 /fiv-io.h
parent38c19edc8bbe5e6301e4bd8f8bc3277701d9fef9 (diff)
downloadfiv-1b50a834a5d6bb1584e261efd656c8153fcf41b8.tar.gz
fiv-1b50a834a5d6bb1584e261efd656c8153fcf41b8.tar.xz
fiv-1b50a834a5d6bb1584e261efd656c8153fcf41b8.zip
Add optional browser filename labels
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fiv-io.h b/fiv-io.h
index af382f9..1c3500e 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -135,9 +135,14 @@ 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);
+// TODO(p): Turn this into a reference-counted object.
+// - If using g_rc_box_*(), we should wrap the {_acquire,_release_full}()
+// functions as fiv_io_model_entry_{ref,unref}().
+// - Ideally, all the strings would follow the struct immediately.
typedef struct {
gchar *uri; ///< GIO URI
gchar *target_uri; ///< GIO URI for any target
+ gchar *display_name; ///< Label for the file
gchar *collate_key; ///< Collate key for the filename
gint64 mtime_msec; ///< Modification time in milliseconds
} FivIoModelEntry;