소스 검색

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
 DEFS+=-DOPENSER_MOD_INTERFACE
 
 
+SERLIBPATH=../../lib
+SER_LIBS+=$(SERLIBPATH)/kmi/kmi
 include ../../Makefile.modules
 include ../../Makefile.modules

+ 1 - 1
modules_k/regex/regex_mod.c

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