aboutsummaryrefslogtreecommitdiff
path: root/src/disp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/disp.h')
-rw-r--r--src/disp.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/disp.h b/src/disp.h
index 4b1a04c..4b7b163 100644
--- a/src/disp.h
+++ b/src/disp.h
@@ -10,33 +10,28 @@
#define DISP_TUI "tui"
/* Reserved return values for the read_input function. */
-#ifndef NDEBUG
-# define DISP_RELOAD INT_MAX
-#endif
+#define DISP_RELOAD INT_MAX
#define DISP_QUIT (INT_MAX - 1)
#define DISP_ERR (INT_MAX - 2)
struct disp {
+ char *name;
+ void *dl_handle;
+ char *so_path;
void (*init)(void);
void (*display_calc)(int, int);
int (*read_input)(void);
void (*display_res)(bool, int);
void (*destroy)(void);
-#ifndef NDEBUG
- char *name;
- void *dl_handle;
- char *so_path;
void *(*pre_reload)(void);
void (*post_reload)(void *);
-#endif
};
/* Get a display handler for the given display type. */
struct disp *get_disp(char *);
+
void destroy_disp(struct disp *);
-#ifndef NDEBUG
void disp_reload(struct disp *);
-#endif /* NDEBUG */
#endif /* DISP_H */