small typo
[midnight-commander.git] / src / dialog.h
blob9c1969d455b74b09194d426afb849b3c3386ebe7
1 #ifndef __DIALOG_H
2 #define __DIALOG_H
4 #include "dlg.h"
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, ...);
12 enum {
13 D_NORMAL = 0,
14 D_ERROR = 1,
15 D_INSERT = 2
16 } /* dialog options */;
18 /* The refresh stack */
19 typedef struct Refresh {
20 void (*refresh_fn)(void *);
21 void *parameter;
22 int flags;
23 struct Refresh *next;
24 } Refresh;
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 */
30 enum {
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 */