]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_mgmtmode/main.c
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / mod_mgmtmode / main.c
diff --git a/mod_mgmtmode/main.c b/mod_mgmtmode/main.c
deleted file mode 100644 (file)
index ef62c52..0000000
+++ /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 <libextl/readconfig.h>
-#include <ioncore/saveload.h>
-#include <ioncore/bindmaps.h>
-
-#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;
-}
-
-
-/*}}}*/
-