Merged from silc_1_0_branch.
[silc.git] / apps / irssi / src / fe-common / silc / fe-common-silc.c
index c779caee2aed33f53b31d44f495eed6bb646a5c4..51047a005396ddf52936115d787c034e88d34a7f 100644 (file)
@@ -1,25 +1,28 @@
 /*
- fe-common-silc.c : irssi
 
-    Copyright (C) 2000 Timo Sirainen
+  fe-common-silc.c
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+  Copyright (C) 2001 Pekka Riikonen
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+  
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
 #include "module.h"
+#include "module-formats.h"
+#include "modules.h"
 #include "signals.h"
+#include "themes.h"
 
 void fe_silc_channels_init(void);
 void fe_silc_channels_deinit(void);
@@ -27,19 +30,25 @@ void fe_silc_channels_deinit(void);
 void fe_silc_modules_init(void);
 void fe_silc_modules_deinit(void);
 
-void fe_common_silc_init(void)
-{
-       fe_silc_channels_init();
-       fe_silc_modules_init();
-}
+void fe_silc_messages_init(void);
+void fe_silc_messages_deinit(void);
 
-void fe_common_silc_deinit(void)
+void fe_silc_init(void)
 {
-       fe_silc_modules_deinit();
+  theme_register(fecommon_silc_formats);
 
-       fe_silc_channels_deinit();
+  fe_silc_channels_init();
+  fe_silc_modules_init();
+  fe_silc_messages_init();
+
+  module_register("silc", "fe");
 }
 
-void fe_common_silc_finish_init(void)
+void fe_silc_deinit(void)
 {
+  fe_silc_messages_deinit();
+  fe_silc_modules_deinit();
+  fe_silc_channels_deinit();
+
+  theme_unregister();
 }