2000-04-26 04:03:38 -04:00
|
|
|
/*
|
|
|
|
core.c : irssi
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
Copyright (C) 1999-2000 Timo Sirainen
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "module.h"
|
|
|
|
|
|
|
|
#include "pidwait.h"
|
|
|
|
|
|
|
|
#include "net-disconnect.h"
|
2000-07-16 15:00:41 -04:00
|
|
|
#include "net-sendbuffer.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
#include "signals.h"
|
|
|
|
#include "settings.h"
|
|
|
|
|
2000-08-31 20:26:46 -04:00
|
|
|
#include "chat-protocols.h"
|
2000-08-26 11:39:44 -04:00
|
|
|
#include "servers.h"
|
|
|
|
#include "chatnets.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
#include "commands.h"
|
2000-12-04 19:53:04 -05:00
|
|
|
#include "expandos.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
#include "log.h"
|
|
|
|
#include "rawlog.h"
|
2000-10-09 19:40:18 -04:00
|
|
|
#include "ignore.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
#include "channels.h"
|
|
|
|
#include "queries.h"
|
|
|
|
#include "nicklist.h"
|
2001-01-20 23:09:48 -05:00
|
|
|
#include "nickmatch-cache.h"
|
2000-08-26 11:39:44 -04:00
|
|
|
|
2000-09-30 18:49:48 -04:00
|
|
|
void chat_commands_init(void);
|
|
|
|
void chat_commands_deinit(void);
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
int irssi_gui;
|
|
|
|
|
|
|
|
void core_init(void)
|
|
|
|
{
|
|
|
|
modules_init();
|
2000-10-26 14:57:23 -04:00
|
|
|
#ifndef WIN32
|
2000-04-26 04:03:38 -04:00
|
|
|
pidwait_init();
|
2000-10-26 14:57:23 -04:00
|
|
|
#endif
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
net_disconnect_init();
|
2000-07-16 15:00:41 -04:00
|
|
|
net_sendbuffer_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
signals_init();
|
|
|
|
settings_init();
|
2000-05-15 04:25:45 -04:00
|
|
|
commands_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-08-31 20:26:46 -04:00
|
|
|
chat_protocols_init();
|
2000-08-26 11:39:44 -04:00
|
|
|
chatnets_init();
|
2000-12-04 19:53:04 -05:00
|
|
|
expandos_init();
|
2000-10-09 19:40:18 -04:00
|
|
|
ignore_init();
|
2000-04-26 04:03:38 -04:00
|
|
|
servers_init();
|
|
|
|
log_init();
|
|
|
|
rawlog_init();
|
2000-08-26 11:39:44 -04:00
|
|
|
|
|
|
|
channels_init();
|
|
|
|
queries_init();
|
|
|
|
nicklist_init();
|
2001-01-20 23:09:48 -05:00
|
|
|
nickmatch_cache_init();
|
2000-09-30 18:49:48 -04:00
|
|
|
|
|
|
|
chat_commands_init();
|
2000-12-17 00:44:45 -05:00
|
|
|
settings_check();
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void core_deinit(void)
|
|
|
|
{
|
2000-09-30 18:49:48 -04:00
|
|
|
chat_commands_deinit();
|
|
|
|
|
2001-01-20 23:09:48 -05:00
|
|
|
nickmatch_cache_deinit();
|
2000-08-26 11:39:44 -04:00
|
|
|
nicklist_deinit();
|
|
|
|
queries_deinit();
|
|
|
|
channels_deinit();
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
rawlog_deinit();
|
|
|
|
log_deinit();
|
|
|
|
servers_deinit();
|
2000-10-09 19:40:18 -04:00
|
|
|
ignore_deinit();
|
2000-12-04 19:53:04 -05:00
|
|
|
expandos_deinit();
|
2000-08-26 11:39:44 -04:00
|
|
|
chatnets_deinit();
|
2000-08-31 20:26:46 -04:00
|
|
|
chat_protocols_deinit();
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2000-05-15 04:25:45 -04:00
|
|
|
commands_deinit();
|
2000-04-26 04:03:38 -04:00
|
|
|
settings_deinit();
|
|
|
|
signals_deinit();
|
2000-07-16 15:00:41 -04:00
|
|
|
net_sendbuffer_deinit();
|
2000-04-26 04:03:38 -04:00
|
|
|
net_disconnect_deinit();
|
|
|
|
|
2000-10-26 14:57:23 -04:00
|
|
|
#ifndef WIN32
|
2000-04-26 04:03:38 -04:00
|
|
|
pidwait_deinit();
|
2000-10-26 14:57:23 -04:00
|
|
|
#endif
|
2000-04-26 04:03:38 -04:00
|
|
|
modules_deinit();
|
|
|
|
}
|