diff options
Diffstat (limited to 'mdk-stage1/frontend.h')
-rw-r--r-- | mdk-stage1/frontend.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mdk-stage1/frontend.h b/mdk-stage1/frontend.h index a5950f1da..9658858eb 100644 --- a/mdk-stage1/frontend.h +++ b/mdk-stage1/frontend.h @@ -13,16 +13,15 @@ */ /* - * Each different frontend must implement all functions defined here + * For doc please read doc/documented..frontend.h */ - #ifndef _FRONTEND_H_ #define _FRONTEND_H_ -#include "stage1.h" +enum return_type { RETURN_OK, RETURN_BACK, RETURN_ERROR }; -void init_frontend(void); +void init_frontend(char * welcome_msg); void finish_frontend(void); void error_message(char *msg, ...) __attribute__ ((format (printf, 1, 2))); /* blocking */ void info_message(char *msg, ...) __attribute__ ((format (printf, 1, 2))); /* blocking */ @@ -38,4 +37,11 @@ enum return_type ask_from_list(char *msg, char ** elems, char ** choice); enum return_type ask_from_list_comments(char *msg, char ** elems, char ** elems_comments, char ** choice); enum return_type ask_from_entries(char *msg, char ** questions, char *** answers, int entry_size, void (*callback_func)(char ** strings)); + +#ifdef __FRONTEND_NEED_BACKEND__ +int error_message_backend(void); +int info_message_backend(void); +#endif + + #endif |