summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:36:10 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:36:10 +0200
commit77fee46b90d40e6aa07a6fdc43a6798216c3c5fa (patch)
tree533ec36cfcedce96d905cbb4b7e49620e62a9867 /src
parent1c0cddad9b574ce1d1de6a9dca22dcd844c690ec (diff)
move prototypes of function using ncurses from src/intrf.h to src/intrfn.h
Diffstat (limited to 'src')
-rw-r--r--src/intrf.h6
-rw-r--r--src/intrfn.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/intrf.h b/src/intrf.h
index d40ac52..fa0067a 100644
--- a/src/intrf.h
+++ b/src/intrf.h
@@ -56,21 +56,15 @@ struct MenuItem
/* '\014' == ^L */
#define key_REDRAWKEY '\014'
-void aff_LBA2CHS(const disk_t *disk_car, const unsigned long int pos_LBA);
void log_CHS_from_LBA(const disk_t *disk_car, const unsigned long int pos_LBA);
const char *aff_part_aux(const unsigned int newline, const disk_t *disk_car, const partition_t *partition);
void aff_part_buffer(const unsigned int newline,const disk_t *disk_car,const partition_t *partition);
-int ask_confirmation(const char*_format, ...) __attribute__ ((format (printf, 1, 2)));
-unsigned long long int ask_number(const unsigned long long int val_cur, const unsigned long long int val_min, const unsigned long long int val_max, const char * _format, ...) __attribute__ ((format (printf, 4, 5)));
unsigned long long int ask_number_cli(char **current_cmd, const unsigned long long int val_cur, const unsigned long long int val_min, const unsigned long long int val_max, const char * _format, ...) __attribute__ ((format (printf, 5, 6)));
-void not_implemented(const char *msg);
void screen_buffer_reset(void);
int screen_buffer_add(const char *_format, ...) __attribute__ ((format (printf, 1, 2)));
void screen_buffer_to_log(void);
-void screen_buffer_to_interface(void);
void screen_buffer_to_stdout(void);
-void dump_ncurses(const void *nom_dump, unsigned int lng);
#ifdef __cplusplus
} /* closing brace for extern "C" */
diff --git a/src/intrfn.h b/src/intrfn.h
index 581586c..f6cc759 100644
--- a/src/intrfn.h
+++ b/src/intrfn.h
@@ -41,13 +41,19 @@ extern "C" {
void aff_copy(WINDOW *window);
void aff_copy_short(WINDOW *window);
+void aff_LBA2CHS(const disk_t *disk_car, const unsigned long int pos_LBA);
void aff_part(WINDOW *window, const unsigned int newline, const disk_t *disk_car, const partition_t *partition);
+unsigned long long int ask_number(const unsigned long long int val_cur, const unsigned long long int val_min, const unsigned long long int val_max, const char * _format, ...) __attribute__ ((format (printf, 4, 5)));
int ask_YN(WINDOW *window);
+int ask_confirmation(const char*_format, ...) __attribute__ ((format (printf, 1, 2)));
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);
+void dump_ncurses(const void *nom_dump, unsigned int lng);
+void not_implemented(const char *msg);
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);
+void screen_buffer_to_interface(void);
int wmenuSelect_ext(WINDOW *window, const int yinfo, const int y, const int x, const struct MenuItem *menuItems, const unsigned int itemLength, const char *available, const int menuType, unsigned int *current, int *real_key);
int wmenuSelect(WINDOW *window, const int yinfo, const int y, const int x, const struct MenuItem *menuItems, const unsigned int itemLength, const char *available, const int menuType, const unsigned int menuDefault);
int wmenuSimple(WINDOW *window, const struct MenuItem *menuItems, const unsigned int menuDefault);