forked from github/server
28726e2bea
This is not actually recommended, but your system may not have this,and you should still be able to contribute. also, libxml2 is on the way out, I am beginning to really hate it. Moving a couple of files around.
20 lines
617 B
C
20 lines
617 B
C
#ifndef CURSES_LISTBOX
|
|
#define CURSES_LISTBOX
|
|
|
|
typedef struct list_selection {
|
|
struct list_selection *next;
|
|
struct list_selection *prev;
|
|
int index;
|
|
char *str;
|
|
void *data;
|
|
} list_selection;
|
|
|
|
extern struct list_selection *do_selection(struct list_selection *sel,
|
|
const char *title, void (*perform) (struct list_selection *, void *),
|
|
void *data);
|
|
extern struct list_selection **push_selection(struct list_selection **p_sel,
|
|
char *str, void *payload);
|
|
extern void insert_selection(struct list_selection **p_sel,
|
|
struct list_selection *prev, const char *str, void *payload);
|
|
|
|
#endif /* CURSES_LISTBOX */
|