Merged silc_1_1_branch to trunk.
[silc.git] / apps / irssi / src / fe-common / silc / fe-common-silc.c
1 /*
2
3   fe-common-silc.c
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 2001 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 2 of the License, or
12   (at your option) any later version.
13   
14   This program is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18
19 */
20
21 #include "module.h"
22 #include "module-formats.h"
23 #include "modules.h"
24 #include "signals.h"
25 #include "themes.h"
26
27 #include "fe-silcnet.h"
28 #include "fe-silc-messages.h"
29 #include "fe-silc-queries.h"
30 #include "fe-silc-channels.h"
31
32
33 void fe_silc_modules_init(void);
34 void fe_silc_modules_deinit(void);
35
36 static void silc_init(void)
37 {
38   theme_register(fecommon_silc_formats);
39
40   fe_silc_channels_init();
41   fe_silc_modules_init();
42   fe_silc_messages_init();
43   fe_silc_queries_init();
44   fe_silcnet_init();
45 }
46
47 void fe_common_silc_init(void)
48 {
49   silc_init();
50   module_register("silc", "fe_common");
51 }
52
53 void fe_silc_init(void)
54 {
55   silc_init();
56   module_register("silc", "fe");
57 }
58
59 void fe_common_silc_deinit(void)
60 {
61   fe_silc_queries_deinit();
62   fe_silc_messages_deinit();
63   fe_silc_modules_deinit();
64   fe_silc_channels_deinit();
65   fe_silcnet_deinit();
66
67   theme_unregister();
68 }
69
70 void fe_silc_deinit(void)
71 {
72   fe_common_silc_deinit();
73 }