瀏覽代碼

Update module to use libkmi

This patch updates the module to link with the shared library libkmi
which contains the management interface from kamailio and fixes
paths to headers in that library.
Jan Janak 16 年之前
父節點
當前提交
cef1c51c0e
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      modules_k/regex/Makefile
  2. 1 1
      modules_k/regex/regex_mod.c

+ 2 - 0
modules_k/regex/Makefile

@@ -8,4 +8,6 @@ LIBS=-L$(LOCALBASE)/lib -lpcre
 
 DEFS+=-DOPENSER_MOD_INTERFACE
 
+SERLIBPATH=../../lib
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
 include ../../Makefile.modules

+ 1 - 1
modules_k/regex/regex_mod.c

@@ -46,7 +46,7 @@
 #include "../../str.h"
 #include "../../locking.h"
 #include "../../mod_fix.h"
-#include "../../mi/mi.h"
+#include "../../lib/kmi/mi.h"
 
 MODULE_VERSION