Merged silc_1_0_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 void fe_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   module_register("silc", "fe");
47 }
48
49 void fe_silc_deinit(void)
50 {
51   fe_silc_queries_deinit();
52   fe_silc_messages_deinit();
53   fe_silc_modules_deinit();
54   fe_silc_channels_deinit();
55   fe_silcnet_deinit();
56
57   theme_unregister();
58 }