removed StartLibCitadel()
[citadel.git] / libcitadel / lib / libcitadel.c
1 /*
2  * Main stuff for libcitadel
3  *
4  * Copyright (c) 1987-2013 by the citadel.org team
5  *
6  * This program is open source software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20
21 #include <stdlib.h>
22 #include <unistd.h>
23 #include <stdio.h>
24 #include <signal.h>
25 #include <sys/types.h>
26 #include <ctype.h>
27 #include <string.h>
28 #include <sys/stat.h>
29 #include <errno.h>
30 #include "libcitadel.h"
31 #include "xdgmime/xdgmime.h"
32 #include "libcitadellocal.h"
33
34 ConstStr RoomNetCfgStrs[maxRoomNetCfg] = {
35         {HKEY(strof(subpending))},
36         {HKEY(strof(unsubpending))},
37         {HKEY(strof(lastsent))}, /* Server internal use only */
38         {HKEY(strof(ignet_push_share))},
39         {HKEY(strof(listrecp))},
40         {HKEY(strof(digestrecp))},
41         {HKEY(strof(pop3client))},
42         {HKEY(strof(rssclient))},
43         {HKEY(strof(participate))}
44 // No, not one of..     {HKEY(strof(maxRoomNetCfg))}
45 };
46
47
48
49 extern int EnableSplice;
50 extern int ZLibCompressionRatio;
51
52 char *libcitadel_version_string(void) {
53         return "libcitadel(unnumbered)";
54 }
55
56 int libcitadel_version_number(void) {
57         return LIBCITADEL_VERSION_NUMBER;
58 }
59
60 void ShutDownLibCitadel(void)
61 {
62         ShutDownLibCitadelMime();
63         WildFireShutdown();
64         xdg_mime_shutdown();
65 }