Mercurial > hg
comparison mcabber/src/screen.h @ 935:97e6a6da2b2c
Fix ncurses #include (again)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 08 Jul 2006 15:32:55 +0200 |
parents | a75f7a13df7b |
children | 3e592fb33aab |
comparison
equal
deleted
inserted
replaced
934:a09bf67d1dfb | 935:97e6a6da2b2c |
---|---|
1 #ifndef __SCREEN_H__ | 1 #ifndef __SCREEN_H__ |
2 #define __SCREEN_H__ 1 | 2 #define __SCREEN_H__ 1 |
3 | 3 |
4 #include <ncurses.h> | |
5 #include <glib.h> | 4 #include <glib.h> |
5 | |
6 #if HAVE_NCURSESW_NCURSES_H | |
7 # include <ncursesw/ncurses.h> | |
8 #elif HAVE_NCURSES_NCURSES_H | |
9 # include <ncurses/ncurses.h> | |
10 #elif HAVE_NCURSES_H | |
11 # include <ncurses.h> | |
12 #else | |
13 # include <curses.h> | |
14 #endif | |
6 | 15 |
7 #include "logprint.h" | 16 #include "logprint.h" |
8 | 17 |
9 // Length of the timestamp & flag prefix in the chat buffer window | 18 // Length of the timestamp & flag prefix in the chat buffer window |
10 #define PREFIX_WIDTH 17 | 19 #define PREFIX_WIDTH 17 |
65 void scr_RosterVisibility(int status); | 74 void scr_RosterVisibility(int status); |
66 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, | 75 void scr_WriteIncomingMessage(const char *jidfrom, const char *text, |
67 time_t timestamp, guint prefix); | 76 time_t timestamp, guint prefix); |
68 void scr_WriteOutgoingMessage(const char *jidto, const char *text); | 77 void scr_WriteOutgoingMessage(const char *jidto, const char *text); |
69 void scr_ShowBuddyWindow(void); | 78 void scr_ShowBuddyWindow(void); |
70 bool scr_BuddyBufferExists(const char *jid); | 79 int scr_BuddyBufferExists(const char *jid); |
71 inline void scr_UpdateBuddyWindow(void); | 80 inline void scr_UpdateBuddyWindow(void); |
72 inline void scr_set_chatmode(int enable); | 81 inline void scr_set_chatmode(int enable); |
73 inline void scr_set_multimode(int enable, char *subject); | 82 inline void scr_set_multimode(int enable, char *subject); |
74 inline int scr_get_multimode(void); | 83 inline int scr_get_multimode(void); |
75 void scr_setmsgflag_if_needed(const char *jid, int special); | 84 void scr_setmsgflag_if_needed(const char *jid, int special); |
77 inline const char *scr_get_multiline(void); | 86 inline const char *scr_get_multiline(void); |
78 inline const char *scr_get_multimode_subj(void); | 87 inline const char *scr_get_multimode_subj(void); |
79 | 88 |
80 inline void scr_Beep(void); | 89 inline void scr_Beep(void); |
81 | 90 |
82 void scr_CheckAutoAway(bool activity); | 91 void scr_CheckAutoAway(int activity); |
83 | 92 |
84 // For commands... | 93 // For commands... |
85 void scr_RosterTop(void); | 94 void scr_RosterTop(void); |
86 void scr_RosterBottom(void); | 95 void scr_RosterBottom(void); |
87 void scr_RosterUp(void); | 96 void scr_RosterUp(void); |