Преглед на файлове

htable: 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 години
родител
ревизия
8e47fc63b3
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      modules_k/htable/htable.c

+ 6 - 0
modules_k/htable/htable.c

@@ -121,6 +121,12 @@ struct module_exports exports= {
  */
 static int mod_init(void)
 {
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	{
+		LM_ERR("failed to register MI commands\n");
+		return -1;
+	}
+
 	if(ht_shm_init()!=0)
 		return -1;
 	ht_db_init_params();