From 3ddb0cf20568b84e053b1608d22d55657e8ce5dd Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 4 Jun 2022 01:19:56 +0200 Subject: Expose the mtime of the model's entries --- fiv-io.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'fiv-io.h') diff --git a/fiv-io.h b/fiv-io.h index 8586065..ed25d67 100644 --- a/fiv-io.h +++ b/fiv-io.h @@ -122,8 +122,14 @@ gboolean fiv_io_model_open(FivIoModel *self, GFile *directory, GError **error); /// There is no ownership transfer, and the object may be NULL. GFile *fiv_io_model_get_location(FivIoModel *self); -GPtrArray *fiv_io_model_get_files(FivIoModel *self); -GPtrArray *fiv_io_model_get_subdirectories(FivIoModel *self); +typedef struct { + gchar *uri; ///< GIO URI + gchar *collate_key; ///< Collate key for the filename + gint64 mtime_msec; ///< Modification time in milliseconds +} FivIoModelEntry; + +const FivIoModelEntry *fiv_io_model_get_files(FivIoModel *self, gsize *len); +const FivIoModelEntry *fiv_io_model_get_subdirs(FivIoModel *self, gsize *len); // --- Export ------------------------------------------------------------------ -- cgit v1.2.3-54-g00ecf