summaryrefslogtreecommitdiffstats
path: root/expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'expr.h')
-rw-r--r--expr.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/expr.h b/expr.h
index 5eff72f..9644a0d 100644
--- a/expr.h
+++ b/expr.h
@@ -20,6 +20,7 @@
#include "color.h"
#include "exec.h"
#include "printf.h"
+#include "stat.h"
#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
@@ -73,20 +74,6 @@ enum mode_cmp {
};
/**
- * Available struct stat time fields.
- */
-enum time_field {
- /** Access time. */
- ATIME,
- /** Status change time. */
- CTIME,
- /** Modification time. */
- MTIME,
- /** Birth time. */
- BTIME,
-};
-
-/**
* Possible time units.
*/
enum time_unit {
@@ -160,10 +147,10 @@ struct expr {
/** Mode to use for directories (different due to X). */
mode_t dir_mode;
+ /** The optional stat field to look at. */
+ enum bfs_stat_field stat_field;
/** The optional reference time. */
struct timespec reftime;
- /** The optional time field. */
- enum time_field time_field;
/** The optional time unit. */
enum time_unit time_unit;