diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-17 16:53:32 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-17 16:53:32 +0000 |
commit | 067ea25e278d221724425e492452d4341ab2e669 (patch) | |
tree | 6abef88f0bf831cd6316cc5adbb550d337c7275a /mdk-stage1/frontend.h | |
parent | 93796296016933af1c23f13fc2ae6d5f62299527 (diff) | |
download | drakx-backup-do-not-use-067ea25e278d221724425e492452d4341ab2e669.tar drakx-backup-do-not-use-067ea25e278d221724425e492452d4341ab2e669.tar.gz drakx-backup-do-not-use-067ea25e278d221724425e492452d4341ab2e669.tar.bz2 drakx-backup-do-not-use-067ea25e278d221724425e492452d4341ab2e669.tar.xz drakx-backup-do-not-use-067ea25e278d221724425e492452d4341ab2e669.zip |
don't write nonsense code to separate frontend from stage1,
but rather, try to do some clever things
Diffstat (limited to 'mdk-stage1/frontend.h')
-rw-r--r-- | mdk-stage1/frontend.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mdk-stage1/frontend.h b/mdk-stage1/frontend.h index 9658858eb..167291798 100644 --- a/mdk-stage1/frontend.h +++ b/mdk-stage1/frontend.h @@ -19,10 +19,14 @@ #ifndef _FRONTEND_H_ #define _FRONTEND_H_ +#include <stdarg.h> + + enum return_type { RETURN_OK, RETURN_BACK, RETURN_ERROR }; 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 */ void wait_message(char *msg, ...) __attribute__ ((format (printf, 1, 2))); /* non-blocking */ @@ -38,10 +42,9 @@ enum return_type ask_from_list_comments(char *msg, char ** elems, char ** elems_ 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 +void verror_message(char *msg, va_list ap); +void vinfo_message(char *msg, va_list ap); +void vwait_message(char *msg, va_list ap); #endif |