Browse Source

Eliminate conflicts with files imported from ser/mysql modules.

 * Comment out MODULE_VERSION, this is already used in mysql_mod.c
 * Prefix the type name of kamailio module data structures with kam_,
   this is how they were renamed in the sip-router repository.
 * Rename the exports structure to kam_exports to avoid conflict with
   the exports structure defined in mysql_mod.c
Jan Janak 16 years ago
parent
commit
10617927e3
1 changed files with 3 additions and 5 deletions
  1. 3 5
      modules/db_mysql/km_db_mysql.c

+ 3 - 5
modules/db_mysql/km_db_mysql.c

@@ -54,19 +54,18 @@ unsigned int db_mysql_auto_reconnect = 1;     /* Default is enabled   */
 
 static int mysql_mod_init(void);
 
-MODULE_VERSION
+/* MODULE_VERSION */
 
 int db_mysql_bind_api(db_func_t *dbb);
 
 /*! \brief
  * MySQL database module interface
  */
-static cmd_export_t cmds[] = {
+static kam_cmd_export_t cmds[] = {
 	{"db_bind_api",         (cmd_function)db_mysql_bind_api,      0, 0, 0, 0},
 	{0, 0, 0, 0, 0, 0}
 };
 
-
 /*! \brief
  * Exported parameters
  */
@@ -77,8 +76,7 @@ static param_export_t params[] = {
 	{0, 0, 0}
 };
 
-
-struct module_exports exports = {	
+struct kam_module_exports kam_exports = {	
 	"db_mysql",
 	DEFAULT_DLFLAGS, /* dlopen flags */
 	cmds,