utf8ify_rfc822_string() is in libcitadel now
[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.  Use, duplication, or disclosure
7 // is subject to the terms of the GNU General Public License, version 3.
8  */
9
10 #include <stdlib.h>
11 #include <unistd.h>
12 #include <stdio.h>
13 #include <signal.h>
14 #include <sys/types.h>
15 #include <ctype.h>
16 #include <string.h>
17 #include <sys/stat.h>
18 #include <errno.h>
19 #include "libcitadel.h"
20 #include "xdgmime/xdgmime.h"
21 #include "libcitadellocal.h"
22
23 ConstStr RoomNetCfgStrs[maxRoomNetCfg] = {
24         {HKEY(strof(subpending))},
25         {HKEY(strof(unsubpending))},
26         {HKEY(strof(lastsent))}, /* Server internal use only */
27         {HKEY(strof(ignet_push_share))},
28         {HKEY(strof(listrecp))},
29         {HKEY(strof(digestrecp))},
30         {HKEY(strof(pop3client))},
31         {HKEY(strof(rssclient))},
32         {HKEY(strof(participate))}
33 // No, not one of..     {HKEY(strof(maxRoomNetCfg))}
34 };
35
36
37
38 extern int EnableSplice;
39 extern int ZLibCompressionRatio;
40
41 char *libcitadel_version_string(void) {
42         return "libcitadel(unnumbered)";
43 }
44
45 int libcitadel_version_number(void) {
46         return LIBCITADEL_VERSION_NUMBER;
47 }
48
49 void ShutDownLibCitadel(void)
50 {
51         ShutDownLibCitadelMime();
52         WildFireShutdown();
53         xdg_mime_shutdown();
54 }