diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 01:19:56 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 14:50:56 +0200 |
commit | 3ddb0cf20568b84e053b1608d22d55657e8ce5dd (patch) | |
tree | bea886fbc45e57838f74d3c0e64efe30c1580d98 /fiv-io.h | |
parent | efc13db66e890a712d8ffa7a2e4289a285137d60 (diff) | |
download | fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.tar.gz fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.tar.xz fiv-3ddb0cf20568b84e053b1608d22d55657e8ce5dd.zip |
Expose the mtime of the model's entries
Diffstat (limited to 'fiv-io.h')
-rw-r--r-- | fiv-io.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 ------------------------------------------------------------------ |