Mercurial > ~mikael > mcabber > hg
diff mcabber/screen.c @ 22:6a97e7cd00d9
[/trunk] Changeset 37 by mikael
* Unexport the scr_SearchWindow() function.
Use the new scr_IsHiddenMessage() function instead.
author | mikael |
---|---|
date | Sun, 27 Mar 2005 19:32:38 +0000 |
parents | 7eeda3a06b21 |
children |
line wrap: on
line diff
--- a/mcabber/screen.c Sun Mar 27 18:52:11 2005 +0000 +++ b/mcabber/screen.c Sun Mar 27 19:32:38 2005 +0000 @@ -13,12 +13,24 @@ #include "parsecfg.h" #include "lang.h" #include "server.h" +#include "list.h" /* Definicion de tipos */ #define window_entry(n) list_entry(n, window_entry_t, list) LIST_HEAD(window_list); +typedef struct _window_entry_t { + WINDOW *win; + PANEL *panel; + char *name; + int nlines; + char **texto; + int hidden_msg; + struct list_head list; +} window_entry_t; + + /* Variables globales a SCREEN.C */ static WINDOW *rosterWnd, *chatWnd, *inputWnd; static WINDOW *logWnd, *logWnd_border; @@ -588,6 +600,18 @@ doupdate(); } +// scr_IsHiddenMessage(jid) +// Returns TRUE if there is a hidden message in the window +// for the jid contact. +int scr_IsHiddenMessage(char *jid) { + window_entry_t *wintmp; + + wintmp = scr_SearchWindow(jid); + if ((wintmp) && (wintmp->hidden_msg)) + return TRUE; + + return FALSE; +} void send_message(int sock, char *msg) {