瀏覽代碼

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 年之前
父節點
當前提交
e772f6ad26
共有 1 個文件被更改,包括 6 次插入0 次删除
  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;