Back to index

libcitadel  8.12
libcitadel.c
Go to the documentation of this file.
00001 /*
00002  * Main stuff for libcitadel
00003  *
00004  * Copyright (c) 1987-2011 by the citadel.org team
00005  *
00006  * This program is open source software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00019  */
00020 
00021 #include <stdlib.h>
00022 #include <unistd.h>
00023 #include <stdio.h>
00024 #include <signal.h>
00025 #include <sys/types.h>
00026 #include <ctype.h>
00027 #include <string.h>
00028 #include <sys/stat.h>
00029 #include <errno.h>
00030 #include "libcitadel.h"
00031 #include "xdgmime/xdgmime.h"
00032 #include "libcitadellocal.h"
00033 
00034 ConstStr RoomNetCfgStrs[maxRoomNetCfg] = {
00035        {HKEY(strof(subpending))},
00036        {HKEY(strof(unsubpending))},
00037        {HKEY(strof(lastsent))}, /* Server internal use only */
00038        {HKEY(strof(ignet_push_share))},
00039        {HKEY(strof(listrecp))},
00040        {HKEY(strof(digestrecp))},
00041        {HKEY(strof(pop3client))},
00042        {HKEY(strof(rssclient))},
00043        {HKEY(strof(participate))}
00044 // No, not one of..  {HKEY(strof(maxRoomNetCfg))}
00045 };
00046 
00047 
00048 
00049 
00050 extern int BaseStrBufSize;
00051 char *libcitadel_version_string(void) {
00052        return "libcitadel(unnumbered)";
00053 }
00054 
00055 int libcitadel_version_number(void) {
00056        return LIBCITADEL_VERSION_NUMBER;
00057 }
00058 
00059 void StartLibCitadel(size_t basesize)
00060 {
00061        BaseStrBufSize = basesize;
00062 }
00063 
00064 void ShutDownLibCitadel(void)
00065 {
00066        ShutDownLibCitadelMime();
00067        WildFireShutdown();
00068        xdg_mime_shutdown();
00069 }