Browse code

pike: 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 authored on 21/04/2009 11:41:34
Showing 1 changed files
... ...
@@ -110,6 +110,12 @@ struct module_exports exports= {
110 110
 
111 111
 static int pike_init(void)
112 112
 {
113
+	if(register_mi_mod(exports.name, mi_cmds)!=0)
114
+	{
115
+		LM_ERR("failed to register MI commands\n");
116
+		return -1;
117
+	}
118
+
113 119
 	/* alloc the timer lock */
114 120
 	timer_lock=lock_alloc();
115 121
 	if (timer_lock==0) {