Module: kamailio
Branch: master
Commit: 2838eeaca6a2d1158f798e835be80f086692f7fd
URL:
https://github.com/kamailio/kamailio/commit/2838eeaca6a2d1158f798e835be80f0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-02T22:09:30+01:00
ndb_cassandra: removed unused internal libs from makefile
---
Modified: src/modules/ndb_cassandra/Makefile
Modified: src/modules/ndb_cassandra/ndb_cassandra.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2838eeaca6a2d1158f798e835be80f0…
Patch:
https://github.com/kamailio/kamailio/commit/2838eeaca6a2d1158f798e835be80f0…
---
diff --git a/src/modules/ndb_cassandra/Makefile b/src/modules/ndb_cassandra/Makefile
index cdeb0ae..c506243 100644
--- a/src/modules/ndb_cassandra/Makefile
+++ b/src/modules/ndb_cassandra/Makefile
@@ -15,14 +15,9 @@ LIB_DIR = /usr/local/lib
DEFS += -I${THRIFT_DIR} -DKAMAILIO_MOD_INTERFACE
LIBS += -L${LIB_DIR} thrift_wrapper.o cassandra_constants.o cassandra_types.o Cassandra.o
-lthrift
-SERLIBPATH=../../lib
-
CXXFLAGS=$(CFLAGS:-Wno-deprecated option=)
CXXFLAGS+=-Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare
-Wno-strict-aliasing
-SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
-SER_LIBS+=$(SERLIBPATH)/kmi/kmi
-
include ../../Makefile.modules
cassandra_constants.o: cassandra_constants.cpp cassandra_constants.h
diff --git a/src/modules/ndb_cassandra/ndb_cassandra.c
b/src/modules/ndb_cassandra/ndb_cassandra.c
index f91e4be..4d2bd40 100644
--- a/src/modules/ndb_cassandra/ndb_cassandra.c
+++ b/src/modules/ndb_cassandra/ndb_cassandra.c
@@ -19,13 +19,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- * History:
- * -------
- * 2013-11: Initial version luismartingil
*/
/*! \file
* \brief SIP-router indigital :: Module core
@@ -38,7 +35,6 @@
#include "../../core/sr_module.h"
#include "../../core/mod_fix.h"
-#include "../../lib/kmi/mi.h" //register_my_mod function
#include "../../core/lvalue.h"
#include <string.h>
@@ -87,10 +83,6 @@ static param_export_t params[] = {
{0, 0, 0}
};
-static mi_export_t mi_cmds[] = {
- { 0, 0, 0, 0, 0}
-};
-
/* Module interface */
struct module_exports exports = {
"ndb_cassandra",
@@ -98,7 +90,7 @@ struct module_exports exports = {
cmds, /* Exported functions */
params, /* Exported parameters */
0, /* exported statistics */
- mi_cmds, /* exported MI functions */
+ 0, /* exported MI functions */
0, /* exported pseudo-variables */
0, /* extra processes */
mod_init, /* module initialization function */
@@ -109,16 +101,11 @@ struct module_exports exports = {
/* Module initialization function */
static int mod_init(void) {
- if(register_mi_mod(exports.name, mi_cmds)!=0)
- {
- LM_ERR("failed to register MI commands\n");
- return -1;
- }
return 0;
}
/* Child initialization function */
-static int child_init(int rank) {
+static int child_init(int rank) {
int rtn = 0;
return(rtn);
}