summaryrefslogtreecommitdiff
path: root/src/gui/gui-hotlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-hotlist.h')
-rw-r--r--src/gui/gui-hotlist.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/gui/gui-hotlist.h b/src/gui/gui-hotlist.h
index 2d66e7c71..9cb664c5c 100644
--- a/src/gui/gui-hotlist.h
+++ b/src/gui/gui-hotlist.h
@@ -17,38 +17,40 @@
*/
-#ifndef __WEECHAT_HOTLIST_H
-#define __WEECHAT_HOTLIST_H 1
+#ifndef __WEECHAT_GUI_HOTLIST_H
+#define __WEECHAT_GUI_HOTLIST_H 1
-#include "../protocols/irc/irc.h"
+#define GUI_HOTLIST_LOW 0
+#define GUI_HOTLIST_MSG 1
+#define GUI_HOTLIST_PRIVATE 2
+#define GUI_HOTLIST_HIGHLIGHT 3
-#define HOTLIST_LOW 0
-#define HOTLIST_MSG 1
-#define HOTLIST_PRIVATE 2
-#define HOTLIST_HIGHLIGHT 3
-
-typedef struct t_weechat_hotlist t_weechat_hotlist;
-
-struct t_weechat_hotlist
+struct t_gui_hotlist
{
- int priority; /* 0=crappy msg (join/part), 1=msg, */
- /* 2=pv, 3=nick highlight */
- struct timeval creation_time; /* time when entry was added */
- t_irc_server *server; /* associated server */
- t_gui_buffer *buffer; /* associated buffer */
- t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
- t_weechat_hotlist *next_hotlist; /* link to next hotlist */
+ int priority; /* 0=crappy msg (join/part), 1=msg, */
+ /* 2=pv, 3=nick highlight */
+ struct timeval creation_time; /* time when entry was added */
+ struct t_gui_buffer *buffer; /* associated buffer */
+ struct t_gui_hotlist *prev_hotlist;/* link to previous hotlist */
+ struct t_gui_hotlist *next_hotlist;/* link to next hotlist */
};
-extern t_weechat_hotlist *weechat_hotlist;
-extern t_weechat_hotlist *last_weechat_hotlist;
-extern t_gui_buffer *hotlist_initial_buffer;
+/* history variables */
+
+extern struct t_gui_hotlist *gui_hotlist;
+extern struct t_gui_hotlist *last_gui_hotlist;
+extern struct t_gui_buffer *gui_hotlist_initial_buffer;
+extern int gui_add_hotlist;
+
+/* hotlist functions */
-extern void hotlist_add (int, struct timeval *, t_irc_server *, t_gui_buffer *, int);
-extern void hotlist_resort ();
-extern void hotlist_free (t_weechat_hotlist **, t_weechat_hotlist **, t_weechat_hotlist *);
-extern void hotlist_free_all (t_weechat_hotlist **, t_weechat_hotlist **);
-extern void hotlist_remove_buffer (t_gui_buffer *);
-extern void hotlist_print_log ();
+extern void gui_hotlist_add (struct t_gui_buffer *, int, struct timeval *, int);
+extern void gui_hotlist_resort ();
+extern void gui_hotlist_free (struct t_gui_hotlist **, struct t_gui_hotlist **,
+ struct t_gui_hotlist *);
+extern void gui_hotlist_free_all (struct t_gui_hotlist **,
+ struct t_gui_hotlist **);
+extern void gui_hotlist_remove_buffer (struct t_gui_buffer *);
+extern void gui_hotlist_print_log ();
-#endif /* hotlist.h */
+#endif /* gui-hotlist.h */