summaryrefslogtreecommitdiffstats
path: root/src/intrfn.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-10-29 22:38:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-10-29 22:38:52 +0100
commit9928d99936105b4653d2d1b8ca74dc3ffba5c71e (patch)
tree06aa4f5e9f0055027c6fb54dd47a8414cf2fba32 /src/intrfn.h
First version in git
Diffstat (limited to 'src/intrfn.h')
-rw-r--r--src/intrfn.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/intrfn.h b/src/intrfn.h
new file mode 100644
index 0000000..5be31bc
--- /dev/null
+++ b/src/intrfn.h
@@ -0,0 +1,52 @@
+/*
+
+ File: intrfn.h
+
+ Copyright (C) 2007 Christophe GRENIER <grenier@cgsecurity.org>
+
+ This software is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write the Free Software Foundation, Inc., 51
+ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ */
+
+#ifdef HAVE_NCURSES
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#elif defined(HAVE_NCURSES_NCURSES_H)
+#include <ncurses/ncurses.h>
+#elif defined(HAVE_NCURSES_CURSES_H)
+#include <ncurses/curses.h>
+#elif defined(HAVE_CURSES_H)
+#include <curses.h>
+#endif
+
+void aff_copy(WINDOW *window);
+void aff_part(WINDOW *window,const aff_part_type_t newline,const disk_t *disk_car,const partition_t *partition);
+int aff_txt(int line, WINDOW *window, const char *_format, ...) __attribute__ ((format (printf, 3, 4)));
+int ask_YN(WINDOW *window);
+int check_enter_key_or_s(WINDOW *window);
+void dump2(WINDOW *window, const void *dump_1, const void *dump_2, const unsigned int lng);
+void dump(WINDOW *window,const void *nom_dump,unsigned int lng);
+int screen_buffer_display_ext(WINDOW *window, const char *options_org, const struct MenuItem *menuItems, unsigned int *menu);
+int screen_buffer_display(WINDOW *window, const char *options_org, const struct MenuItem *menuItems);
+int vaff_txt(int line, WINDOW *window, const char *_format, va_list ap);
+int wdoprintf(WINDOW *window, const char *_format, ...) __attribute__ ((format (printf, 2, 3)));
+int wgetch_nodelay(WINDOW *window);
+int wmenuSelect_ext(WINDOW *window, int y, int x, const struct MenuItem *menuItems, const unsigned int itemLength, const char *available, int menuType, unsigned int *current, int *real_key);
+int wmenuSelect(WINDOW *window, int y, int x, const struct MenuItem *menuItems, const unsigned int itemLength, const char *available, int menuType, unsigned int menuDefault);
+int wmenuSimple(WINDOW *window, const struct MenuItem *menuItems, unsigned int menuDefault);
+int wmenuUpdate(WINDOW *window, int y, int x, const struct MenuItem *menuItems, const unsigned int itemLength, const char *available, const int menuType, unsigned int current);
+int start_ncurses(const char *prog_name, const char *real_prog_name);
+int end_ncurses(void);
+#endif