Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / fe-common / core / command-history.h
1 #ifndef __COMMAND_HISTORY_H
2 #define __COMMAND_HISTORY_H
3
4 #include "common.h"
5
6 typedef struct {
7         char *name;
8
9         GList *list, *pos;
10         int lines, over_counter;
11
12         int refcount;
13 } HISTORY_REC;
14
15 HISTORY_REC *command_history_find(HISTORY_REC *history);
16 HISTORY_REC *command_history_find_name(const char *name);
17
18 HISTORY_REC *command_history_current(WINDOW_REC *window);
19
20 void command_history_init(void);
21 void command_history_deinit(void);
22
23 void command_history_add(HISTORY_REC *window, const char *text);
24
25 const char *command_history_prev(WINDOW_REC *window, const char *text);
26 const char *command_history_next(WINDOW_REC *window, const char *text);
27
28 void command_history_clear_pos(WINDOW_REC *window);
29
30 HISTORY_REC *command_history_create(const char *name);
31 void command_history_destroy(HISTORY_REC *history);
32 void command_history_link(const char *name);
33 void command_history_unlink(const char *name);
34
35 #endif