6 #define MSG_ERROR ((char *) -1)
7 Dlg_head
*message (int error
, char *header
, const char *text
, ...)
8 __attribute__ ((format (printf
, 3, 4)));
10 int query_dialog (char *header
, char *text
, int flags
, int count
, ...);
16 } /* dialog options */;
18 /* The refresh stack */
19 typedef struct Refresh
{
20 void (*refresh_fn
)(void *);
26 /* We search under the stack until we find a refresh function that covers */
27 /* the complete screen, and from this point we go up refreshing the */
28 /* individual regions */
31 REFRESH_COVERS_PART
, /* If the refresh fn convers only a part */
32 REFRESH_COVERS_ALL
/* If the refresh fn convers all the screen */
35 void push_refresh (void (*new_refresh
)(void *), void *data
, int flags
);
36 void pop_refresh (void);
37 void do_refresh (void);
38 char *input_dialog (char *header
, char *text
, char *def_text
);
39 char *input_expand_dialog (char *header
, char *text
, char *def_text
);
41 extern Refresh
*refresh_list
;
43 #endif /* __DIALOG_H */