summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-11 21:01:24 +0200
committerBert <ber.t@gmx.com>2011-09-11 21:01:24 +0200
commitb2a2a62b7b8a066467d7e8ef520fef7c17e3c5ca (patch)
treec13904baa041941854a7550f883ba38e14205f1e /types.h
parente2d4b9c7915a2a356cae04d33f1713ae224fbe7e (diff)
downloadnsxiv-b2a2a62b7b8a066467d7e8ef520fef7c17e3c5ca.tar.zst
Added own bool type
Diffstat (limited to 'types.h')
-rw-r--r--types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/types.h b/types.h
index dd85922..ddf6cf6 100644
--- a/types.h
+++ b/types.h
@@ -2,6 +2,11 @@
#define TYPES_H
typedef enum {
+ false,
+ true
+} bool;
+
+typedef enum {
MODE_IMAGE,
MODE_THUMB
} appmode_t;
@@ -29,7 +34,7 @@ typedef enum {
typedef struct {
const char *name; /* as given by user */
const char *path; /* always absolute */
- unsigned char loaded;
+ bool loaded;
} fileinfo_t;
/* timeouts in milliseconds: */