From fcc61f2382cc930b3342bea488203d76bc2bbd79 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 15 Feb 2002 09:05:45 +0000 Subject: window_activity() and window_item_activity() are now public. Added them to perl as well. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2445 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/Makefile.am | 1 + src/fe-common/core/fe-common-core.c | 4 +--- src/fe-common/core/window-activity.c | 8 ++++---- src/fe-common/core/window-activity.h | 13 +++++++++++++ 4 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 src/fe-common/core/window-activity.h (limited to 'src/fe-common') diff --git a/src/fe-common/core/Makefile.am b/src/fe-common/core/Makefile.am index 4f8cb810..201c9c0c 100644 --- a/src/fe-common/core/Makefile.am +++ b/src/fe-common/core/Makefile.am @@ -56,6 +56,7 @@ noinst_HEADERS = \ printtext.h \ themes.h \ translation.h \ + window-activity.h \ window-items.h \ windows-layout.h \ fe-windows.h diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index fb0e0fec..89c17c7f 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -42,6 +42,7 @@ #include "translation.h" #include "fe-channels.h" #include "fe-windows.h" +#include "window-activity.h" #include "window-items.h" #include "windows-layout.h" @@ -87,9 +88,6 @@ void fe_server_deinit(void); void fe_settings_init(void); void fe_settings_deinit(void); -void window_activity_init(void); -void window_activity_deinit(void); - void window_commands_init(void); void window_commands_deinit(void); diff --git a/src/fe-common/core/window-activity.c b/src/fe-common/core/window-activity.c index 3e4cd80c..7238e50b 100644 --- a/src/fe-common/core/window-activity.c +++ b/src/fe-common/core/window-activity.c @@ -35,8 +35,8 @@ static char **hide_targets; static int hide_level, msg_level, hilight_level; -static void window_activity(WINDOW_REC *window, int data_level, - const char *hilight_color) +void window_activity(WINDOW_REC *window, int data_level, + const char *hilight_color) { int old_data_level; @@ -52,8 +52,8 @@ static void window_activity(WINDOW_REC *window, int data_level, GINT_TO_POINTER(old_data_level)); } -static void window_item_activity(WI_ITEM_REC *item, int data_level, - const char *hilight_color) +void window_item_activity(WI_ITEM_REC *item, int data_level, + const char *hilight_color) { int old_data_level; diff --git a/src/fe-common/core/window-activity.h b/src/fe-common/core/window-activity.h new file mode 100644 index 00000000..b904872f --- /dev/null +++ b/src/fe-common/core/window-activity.h @@ -0,0 +1,13 @@ +#ifndef __WINDOW_ACTIVITY_H +#define __WINDOW_ACTIVITY_H + +void window_activity(WINDOW_REC *window, int data_level, + const char *hilight_color); + +void window_item_activity(WI_ITEM_REC *item, int data_level, + const char *hilight_color); + +void window_activity_init(void); +void window_activity_deinit(void); + +#endif -- cgit v1.2.3