X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_mgmtmode%2Fmain.c;fp=mod_mgmtmode%2Fmain.c;h=0000000000000000000000000000000000000000;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=ef62c52bff2497ab5d777c4bcce58b4dd1644983;hpb=de22e45179cb3bafa490294d31d47f361047a30a;p=ion3.git diff --git a/mod_mgmtmode/main.c b/mod_mgmtmode/main.c deleted file mode 100644 index ef62c52..0000000 --- a/mod_mgmtmode/main.c +++ /dev/null @@ -1,71 +0,0 @@ -/* - * ion/mod_mgmtmode/main.c - * - * Copyright (c) Tuomo Valkonen 2004-2007. - * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. - */ - -#include -#include -#include - -#include "exports.h" - -/*{{{ Module information */ - - -#include "../version.h" - -char mod_mgmtmode_ion_api_version[]=ION_API_VERSION; - - -/*}}}*/ - - -/*{{{ Bindmaps */ - - -WBindmap *mod_mgmtmode_bindmap=NULL; - - -/*}}}*/ - - -/*{{{ Init & deinit */ - - -void mod_mgmtmode_deinit() -{ - if(mod_mgmtmode_bindmap!=NULL){ - ioncore_free_bindmap("WMgmtMode", mod_mgmtmode_bindmap); - mod_mgmtmode_bindmap=NULL; - } - - mod_mgmtmode_unregister_exports(); -} - - -bool mod_mgmtmode_init() -{ - mod_mgmtmode_bindmap=ioncore_alloc_bindmap("WMgmtMode", NULL); - - if(mod_mgmtmode_bindmap==NULL) - return FALSE; - - if(!mod_mgmtmode_register_exports()){ - mod_mgmtmode_deinit(); - return FALSE; - } - - extl_read_config("cfg_mgmtmode", NULL, TRUE); - - return TRUE; -} - - -/*}}}*/ -