aboutsummaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/nsxiv.h b/nsxiv.h
index 978962e..5dfbed3 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -101,7 +101,7 @@ typedef enum {
typedef struct {
const char *name; /* as given by user */
- const char *path; /* always absolute */
+ const char *path; /* always absolute, result of realpath(3) */
fileflags_t flags;
} fileinfo_t;
@@ -265,11 +265,13 @@ struct opt {
/* window: */
bool fullscreen;
bool hide_bar;
- Window embed; /* unsigned long */
+ Window embed;
char *geometry;
char *res_name;
/* misc flags: */
+ const char *tns_filters;
+ bool tns_filters_is_blacklist;
bool quiet;
bool thumb_mode;
bool clean_cache;
@@ -293,6 +295,12 @@ typedef struct {
int y;
} thumb_t;
+typedef struct {
+ const char *path;
+ int len;
+ bool recursive;
+} thumb_filter_t;
+
struct tns {
fileinfo_t *files;
thumb_t *thumbs;
@@ -312,7 +320,11 @@ struct tns {
int bw;
int dim;
+ thumb_filter_t *filters;
+ int filters_cnt;
+
bool dirty;
+ bool filters_is_blacklist;
};
void tns_clean_cache(void);