Remove unneeded `struct` keyword for typedef'd structs
[midnight-commander.git] / lib / widget / listbox-window.h
blobf1a3ece89d21cac784b2113face19543c50837c6
1 /** \file listbox-window.h
2 * \brief Header: Listbox widget, a listbox within dialog window
3 */
5 #ifndef MC__LISTBOX_DIALOG_H
6 #define MC__LISTBOX_DIALOG_H
8 /*** typedefs(not structures) and defined constants **********************************************/
10 #define LISTBOX_APPEND_TEXT(l,h,t,d,f) \
11 listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d, f)
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 typedef struct
19 WDialog *dlg;
20 WListbox *list;
21 } Listbox;
23 /*** global variables defined in .c file *********************************************************/
25 /*** declarations of public functions ************************************************************/
27 /* Listbox utility functions */
28 Listbox *create_listbox_window_centered (int center_y, int center_x, int lines, int cols,
29 const char *title, const char *help);
30 Listbox *create_listbox_window (int lines, int cols, const char *title, const char *help);
31 int run_listbox (Listbox * l);
33 /*** inline functions ****************************************************************************/
35 #endif /* MC__LISTBOX_DIALOG_H */