summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/curses.h8
-rw-r--r--payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c1
-rw-r--r--payloads/libpayload/curses/pdcurses-backend/pdcutil.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/curses.h b/payloads/libpayload/curses/PDCurses-3.4/curses.h
index 40585d3ab2..5f651fef44 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/curses.h
+++ b/payloads/libpayload/curses/PDCurses-3.4/curses.h
@@ -1374,4 +1374,12 @@ int sb_refresh(void);
}
#endif
+/* Local functions not defined in normal curses */
+
+void curses_enable_vga(int);
+void curses_enable_serial(int);
+
+int curses_vga_enabled(void);
+int curses_serial_enabled(void);
+
#endif /* __PDCURSES__ */
diff --git a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
index f0e83cf3cf..d016063ff0 100644
--- a/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
+++ b/payloads/libpayload/curses/pdcurses-backend/pdcsetsc.c
@@ -1,6 +1,7 @@
/* Public Domain Curses */
/* This file is BSD licensed, Copyright 2011 secunet AG */
+#include <libpayload.h>
#include "lppdc.h"
int PDC_curs_set(int visibility)
diff --git a/payloads/libpayload/curses/pdcurses-backend/pdcutil.c b/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
index 8fb3e161d7..030f4622e2 100644
--- a/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
+++ b/payloads/libpayload/curses/pdcurses-backend/pdcutil.c
@@ -2,6 +2,7 @@
/* This file is BSD licensed, Copyright 2011 secunet AG */
#include "lppdc.h"
+#include <curses.h>
#include <libpayload.h>
int curses_flags = F_ENABLE_SERIAL | F_ENABLE_CONSOLE;
@@ -37,12 +38,12 @@ void curses_enable_vga(int enable)
curses_flags = (curses_flags & ~F_ENABLE_CONSOLE) | (enable * F_ENABLE_CONSOLE);
}
-int curses_serial_enabled()
+int curses_serial_enabled(void)
{
return !!(curses_flags & F_ENABLE_SERIAL);
}
-int curses_vga_enabled()
+int curses_vga_enabled(void)
{
return !!(curses_flags & F_ENABLE_CONSOLE);
}