Mercurial > hg
changeset 50:5425ee13dce6
[/trunk] Changeset 66 by mikael
* "const char*" party
author | mikael |
---|---|
date | Wed, 06 Apr 2005 10:35:13 +0000 |
parents | 18a03a69f5e4 |
children | 85bbc6ed3796 |
files | mcabber/src/screen.c mcabber/src/screen.h |
diffstat | 2 files changed, 12 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/screen.c Wed Apr 06 10:23:45 2005 +0000 +++ b/mcabber/src/screen.c Wed Apr 06 10:35:13 2005 +0000 @@ -164,8 +164,8 @@ } -window_entry_t *scr_CreatePanel(char *title, int x, int y, int lines, - int cols, int dont_show) +window_entry_t *scr_CreatePanel(const char *title, int x, int y, + int lines, int cols, int dont_show) { window_entry_t *tmp = calloc(1, sizeof(window_entry_t)); @@ -195,7 +195,7 @@ { } -window_entry_t *scr_SearchWindow(char *winId) +window_entry_t *scr_SearchWindow(const char *winId) { struct list_head *pos, *n; window_entry_t *search_entry = NULL; @@ -211,7 +211,7 @@ return NULL; } -void scr_ShowWindow(char *winId) +void scr_ShowWindow(const char *winId) { int n, width, i; window_entry_t *tmp = scr_SearchWindow(winId); @@ -246,7 +246,7 @@ } -void scr_WriteInWindow(char *winId, char *texto, int TimeStamp, int force_show) +void scr_WriteInWindow(const char *winId, char *texto, int TimeStamp, int force_show) { time_t ahora; int n; @@ -385,7 +385,7 @@ return; } -void scr_WriteMessage(char *jid, char *text, char *prefix) +void scr_WriteMessage(const char *jid, const char *text, char *prefix) { char **submsgs; int n, i; @@ -416,7 +416,7 @@ top_panel(inputPanel); } -void scr_WriteIncomingMessage(char *jidfrom, char *text) +void scr_WriteIncomingMessage(const char *jidfrom, const char *text) { char *buffer = utf8_decode(text); scr_WriteMessage(jidfrom, buffer, "<== "); @@ -425,7 +425,7 @@ doupdate(); } -void scr_WriteOutgoingMessage(char *jidto, char *text) +void scr_WriteOutgoingMessage(const char *jidto, const char *text) { scr_ShowWindow(jidto); scr_WriteMessage(jidto, text, "--> "); @@ -483,7 +483,7 @@ // scr_IsHiddenMessage(jid) // Returns TRUE if there is a hidden message in the window // for the jid contact. -int scr_IsHiddenMessage(char *jid) { +int scr_IsHiddenMessage(const char *jid) { window_entry_t *wintmp; wintmp = scr_SearchWindow(jid);
--- a/mcabber/src/screen.h Wed Apr 06 10:23:45 2005 +0000 +++ b/mcabber/src/screen.h Wed Apr 06 10:35:13 2005 +0000 @@ -21,15 +21,13 @@ void scr_InitCurses(void); void scr_DrawMainWindow(void); void scr_TerminateCurses(void); -// void scr_WriteInWindow(char *nombreVentana, char *texto, int TimeStamp, -// int force_show); -void scr_WriteIncomingMessage(char *jidfrom, char *text); -void scr_WriteOutgoingMessage(char *jidto, char *text); +void scr_WriteIncomingMessage(const char *jidfrom, const char *text); +void scr_WriteOutgoingMessage(const char *jidto, const char *text); void scr_RoolWindow(void); void scr_ShowBuddyWindow(void); void scr_LogPrint(const char *fmt, ...); -int scr_IsHiddenMessage(char *jid); +int scr_IsHiddenMessage(const char *jid); WINDOW *scr_GetRosterWindow(void); WINDOW *scr_GetStatusWindow(void);