aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-04-14 12:00:35 +0200
committerBert <ber.t@gmx.com>2011-04-14 12:00:35 +0200
commitc58307ba38e568c9851749ee8e2c721ed4741ca1 (patch)
treec74966b4788c48b388995c48da3efb91646e0aa0 /main.c
parent75c79bef6fb75c5cb897c82237df11a22766673c (diff)
downloadnsxiv-c58307ba38e568c9851749ee8e2c721ed4741ca1.tar.zst
Merged commands.h into config.h
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/main.c b/main.c
index e58db1c..b8b189d 100644
--- a/main.c
+++ b/main.c
@@ -29,17 +29,12 @@
#include <X11/Xutil.h>
#include <X11/keysym.h>
-#include "config.h"
#include "image.h"
#include "options.h"
#include "thumbs.h"
#include "util.h"
#include "window.h"
-#if EXT_COMMANDS
-#include "commands.h"
-#endif
-
#define FNAME_CNT 1024
#define TITLE_LEN 256
@@ -48,11 +43,20 @@
#define TO_CURSOR_HIDE 1500000
#define TO_THUMBS_LOAD 75000
+typedef struct {
+ KeySym ksym;
+ Bool reload;
+ const char *cmdline;
+} command_t;
+
typedef enum {
MODE_NORMAL = 0,
MODE_THUMBS
} appmode_t;
+#define MAIN_C
+#include "config.h"
+
void run();
appmode_t mode;