Browse code

db_mysql Rename core source code file to match module name

Issue #82

Olle E. Johansson authored on 01/04/2016 16:03:10
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,50 +0,0 @@
1
-/* 
2
- * MySQL module interface
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-#ifndef _MYSQL_MOD_H
24
-#define _MYSQL_MOD_H
25
-
26
-#include "../../counters.h"
27
-
28
-/* counter struct
29
-*/
30
-struct mysql_counters_h {
31
-    counter_handle_t driver_err;
32
-};
33
-/* defined in km_dbase.c */
34
-extern struct mysql_counters_h mysql_cnts_h;
35
-
36
-/** @defgroup mysql MySQL db driver
37
- *  @ingroup DB_API
38
- */
39
-/** @{ */
40
-
41
-extern int my_ping_interval;
42
-extern unsigned int my_connect_to;
43
-extern unsigned int my_send_to;
44
-extern unsigned int my_recv_to;
45
-extern unsigned long my_client_ver;
46
-extern unsigned int my_retries;
47
-
48
-/** @} */
49
-
50
-#endif /* _MYSQL_MOD_H */
Browse code

db_mysql: Remove SVN ID's, remove history sections

Olle E. Johansson authored on 11/03/2015 15:26:21
Showing 1 changed files
... ...
@@ -1,23 +1,16 @@
1 1
 /* 
2
- * $Id$ 
3
- *
4 2
  * MySQL module interface
5 3
  *
6 4
  * Copyright (C) 2001-2003 FhG Fokus
7 5
  *
8
- * This file is part of ser, a free SIP server.
6
+ * This file is part of Kamailio, a free SIP server.
9 7
  *
10
- * ser is free software; you can redistribute it and/or modify
8
+ * Kamailio is free software; you can redistribute it and/or modify
11 9
  * it under the terms of the GNU General Public License as published by
12 10
  * the Free Software Foundation; either version 2 of the License, or
13 11
  * (at your option) any later version
14 12
  *
15
- * For a license to use the ser software under conditions
16
- * other than those described here, or to purchase support for this
17
- * software, please contact iptel.org by e-mail at the following addresses:
18
- *    info@iptel.org
19
- *
20
- * ser is distributed in the hope that it will be useful,
13
+ * Kamailio is distributed in the hope that it will be useful,
21 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 16
  * GNU General Public License for more details.
... ...
@@ -26,12 +19,6 @@
26 19
  * along with this program; if not, write to the Free Software 
27 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
28 21
  */
29
-/*
30
- * History:
31
- * --------
32
- *  2003-03-11  updated to the new module exports interface (andrei)
33
- *  2003-03-16  flags export parameter added (janakj)
34
- */
35 22
 
36 23
 #ifndef _MYSQL_MOD_H
37 24
 #define _MYSQL_MOD_H
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -24,7 +24,7 @@
24 24
  *
25 25
  * You should have received a copy of the GNU General Public License 
26 26
  * along with this program; if not, write to the Free Software 
27
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
28 28
  */
29 29
 /*
30 30
  * History:
Browse code

modules/db_mysql Added statistics (via counter framework) for mysql driver error

These errors are caused by lost connectivity to the server.

Marius Zbihlei authored on 12/08/2010 15:11:16
Showing 1 changed files
... ...
@@ -36,10 +36,21 @@
36 36
 #ifndef _MYSQL_MOD_H
37 37
 #define _MYSQL_MOD_H
38 38
 
39
+#include "../../counters.h"
40
+
41
+/* counter struct
42
+*/
43
+struct mysql_counters_h {
44
+    counter_handle_t driver_err;
45
+};
46
+/* defined in km_dbase.c */
47
+extern struct mysql_counters_h mysql_cnts_h;
48
+
39 49
 /** @defgroup mysql MySQL db driver
40 50
  *  @ingroup DB_API
41 51
  */
42 52
 /** @{ */
53
+
43 54
 extern int my_ping_interval;
44 55
 extern unsigned int my_connect_to;
45 56
 extern unsigned int my_send_to;
Browse code

- put doxygen docs in correct group

Jan Janak authored on 06/05/2008 12:07:48
Showing 1 changed files
... ...
@@ -37,7 +37,7 @@
37 37
 #define _MYSQL_MOD_H
38 38
 
39 39
 /** @defgroup mysql MySQL db driver
40
- *  @ingroup DB-API
40
+ *  @ingroup DB_API
41 41
  */
42 42
 /** @{ */
43 43
 extern int my_ping_interval;
Browse code

- reordered included header files for better detection of missing headers - disable automatic database reconnects, they do not work with pre-compiled statements - error/info/log message cleanup - auto_reconnect module parameter removed - introduced new module parameter retries which controls the number of times queries are tried to execute on server on failures

Jan Janak authored on 16/01/2008 14:17:28
Showing 1 changed files
... ...
@@ -40,14 +40,13 @@
40 40
  *  @ingroup DB-API
41 41
  */
42 42
 /** @{ */
43
-extern int ping_interval;
44
-extern int auto_reconnect;
45
-
43
+extern int my_ping_interval;
46 44
 extern unsigned int my_connect_to;
47 45
 extern unsigned int my_send_to;
48 46
 extern unsigned int my_recv_to;
49
-
50 47
 extern unsigned long my_client_ver;
48
+extern unsigned int my_retries;
49
+
51 50
 /** @} */
52 51
 
53 52
 #endif /* _MYSQL_MOD_H */
Browse code

added doxygen comment

Libor Chocholaty authored on 25/06/2007 17:53:12
Showing 1 changed files
... ...
@@ -36,6 +36,10 @@
36 36
 #ifndef _MYSQL_MOD_H
37 37
 #define _MYSQL_MOD_H
38 38
 
39
+/** @defgroup mysql MySQL db driver
40
+ *  @ingroup DB-API
41
+ */
42
+/** @{ */
39 43
 extern int ping_interval;
40 44
 extern int auto_reconnect;
41 45
 
... ...
@@ -44,5 +48,6 @@ extern unsigned int my_send_to;
44 48
 extern unsigned int my_recv_to;
45 49
 
46 50
 extern unsigned long my_client_ver;
51
+/** @} */
47 52
 
48 53
 #endif /* _MYSQL_MOD_H */
Browse code

Added the following features from Andrei: - connect_timeout parameter which allows to limit connection timeouts to mysql server - send_timeout parameter which can limit the time the client library spends sending data to the server - receive_timeout parameter which can limit the time the library spends waiting for the data from the server - enable reconnect for mysql >= 5.0.13

Jan Janak authored on 25/06/2007 15:39:09
Showing 1 changed files
... ...
@@ -39,4 +39,10 @@
39 39
 extern int ping_interval;
40 40
 extern int auto_reconnect;
41 41
 
42
+extern unsigned int my_connect_to;
43
+extern unsigned int my_send_to;
44
+extern unsigned int my_recv_to;
45
+
46
+extern unsigned long my_client_ver;
47
+
42 48
 #endif /* _MYSQL_MOD_H */
Browse code

- mysql module updated to new db api

Jan Janak authored on 04/04/2007 11:48:20
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,42 @@
1
+/* 
2
+ * $Id$ 
3
+ *
4
+ * MySQL module interface
5
+ *
6
+ * Copyright (C) 2001-2003 FhG Fokus
7
+ *
8
+ * This file is part of ser, a free SIP server.
9
+ *
10
+ * ser is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * For a license to use the ser software under conditions
16
+ * other than those described here, or to purchase support for this
17
+ * software, please contact iptel.org by e-mail at the following addresses:
18
+ *    info@iptel.org
19
+ *
20
+ * ser is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
+ * GNU General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU General Public License 
26
+ * along with this program; if not, write to the Free Software 
27
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
+ */
29
+/*
30
+ * History:
31
+ * --------
32
+ *  2003-03-11  updated to the new module exports interface (andrei)
33
+ *  2003-03-16  flags export parameter added (janakj)
34
+ */
35
+
36
+#ifndef _MYSQL_MOD_H
37
+#define _MYSQL_MOD_H
38
+
39
+extern int ping_interval;
40
+extern int auto_reconnect;
41
+
42
+#endif /* _MYSQL_MOD_H */