From 9576a059a21c93888c92fd46eee100b865d4d601 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 16 May 2001 16:07:53 +0000 Subject: have a 100% independence between UI stuff and code from stage1 --- mdk-stage1/frontend.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'mdk-stage1/frontend.h') 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 -- cgit v1.2.1