Add manpage for notionflux
[notion/jeffpc.git] / mod_menu / main.c
blobb8880f1e18670dd99613551b1846a15653f9eb5e
1 /*
2 * ion/mod_menu/main.c
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #include <libextl/readconfig.h>
10 #include <ioncore/saveload.h>
11 #include <ioncore/bindmaps.h>
13 #include "menu.h"
14 #include "exports.h"
17 /*{{{ Module information */
20 #include "../version.h"
22 char mod_menu_ion_api_version[]=NOTION_API_VERSION;
25 /*}}}*/
28 /*{{{ Bindmaps */
31 WBindmap *mod_menu_menu_bindmap=NULL;
34 /*}}}*/
37 /*{{{ Init & deinit */
40 void mod_menu_deinit()
42 if(mod_menu_menu_bindmap!=NULL){
43 ioncore_free_bindmap("WMenu", mod_menu_menu_bindmap);
44 mod_menu_menu_bindmap=NULL;
47 mod_menu_unregister_exports();
51 bool mod_menu_init()
53 mod_menu_menu_bindmap=ioncore_alloc_bindmap("WMenu", NULL);
55 if(mod_menu_menu_bindmap==NULL)
56 return FALSE;
58 if(!mod_menu_register_exports()){
59 mod_menu_deinit();
60 return FALSE;
63 /*ioncore_read_config("cfg_menu", NULL, TRUE);*/
65 return TRUE;
69 /*}}}*/