server/src/listbox.h
Enno Rehling 28726e2bea update cmake to compile without sqlite3, curses or libxml2 installed.
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.
2014-06-11 20:30:34 -07:00

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 */