Explorar o código

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 %!s(int64=16) %!d(string=hai) anos
pai
achega
e772f6ad26
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      modules/db_flatstore/km_flatstore_mod.c

+ 6 - 0
modules/db_flatstore/km_flatstore_mod.c

@@ -101,6 +101,12 @@ struct kam_module_exports km_exports = {
 
 int km_mod_init(void)
 {
+	if(register_mi_mod(km_exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	if (strlen(km_flat_delimiter) != 1) {
 		LM_ERR("delimiter has to be exactly one character\n");
 		return -1;