Browse Source

db_flatstore: export MI commands

- MI commands exported from mod_init
- MI API is now a library (lib/kmi), SR core does not call anymore
  register_mi_mod(...)
Daniel-Constantin Mierla 16 years ago
parent
commit
aa9c7d330f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules/db_berkeley/km_db_berkeley.c

+ 6 - 0
modules/db_berkeley/km_db_berkeley.c

@@ -106,6 +106,12 @@ int km_mod_init(void)
 {
 	db_parms_t p;
 	
+	if(register_mi_mod(kam_exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	p.auto_reload = auto_reload;
 	p.log_enable = log_enable;
 	p.cache_size  = (4 * 1024 * 1024); //4Mb