aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-ncurses.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-06-04 13:32:08 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 18:38:25 +0100
commita30c90206d7011905955063ae432a5be30dca6f4 (patch)
treed3302b8319762a5731d70857411785810187311b /src/interface-ncurses.h
parent5e9281841257716820079c2758ae573f2e18c851 (diff)
all interface classes define the same type InterfaceCurrent, simplifying the interface object definition
* they still define their own classes (e.g. InterfaceNCurses), InterfaceCurrent is a typedef
Diffstat (limited to 'src/interface-ncurses.h')
-rw-r--r--src/interface-ncurses.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interface-ncurses.h b/src/interface-ncurses.h
index 30f73f6..2526318 100644
--- a/src/interface-ncurses.h
+++ b/src/interface-ncurses.h
@@ -29,8 +29,7 @@
#include "interface.h"
-/* object declared in main.cpp */
-extern class InterfaceNCurses : public Interface {
+typedef class InterfaceNCurses : public Interface {
SCREEN *screen;
FILE *screen_tty;
@@ -95,6 +94,6 @@ private:
void draw_info(void);
friend void event_loop_iter();
-} interface;
+} InterfaceCurrent;
#endif