Browse code

modules_k/*: moved k modules in directory modules/

Daniel-Constantin Mierla authored on 20/01/2013 11:57:52
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,64 +0,0 @@
1
-/* $Id$
2
- *
3
- * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
4
- *
5
- * This file is part of Kamailio, a free SIP server.
6
- *
7
- * Kamailio is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version
11
- *
12
- * Kamailio is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License 
18
- * along with this program; if not, write to the Free Software 
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
- */
21
-
22
-
23
-#ifndef HA_H
24
-#define HA_H
25
-#include "../../locking.h"/* for get_lock_t define*/
26
-#include <time.h>
27
-struct ping{
28
-   unsigned int id;
29
-   struct timeval sent;
30
-   struct ping *next;
31
-};
32
-
33
-struct ha{
34
-   int timed_out_pings;
35
-   int timeout;
36
-   gen_lock_t *mutex;
37
-   struct ping *pings; 
38
-   int begin;
39
-   int end;
40
-   int count;
41
-   int size;
42
-};
43
-
44
-extern char *jain_ping_config;
45
-extern int jain_ping_period;
46
-extern int jain_ping_timeout;
47
-extern struct ping *jain_pings;
48
-
49
-extern pid_t pinger_pid;
50
-
51
-extern char *servlet_ping_config;
52
-extern int servlet_ping_period;
53
-extern int servlet_ping_timeout;
54
-extern struct ping *servlet_pings;
55
-
56
-extern int use_ha;
57
-
58
-char * create_ping_event(int *evt_len,int flags,unsigned int *seqno);
59
-int prepare_ha(void);
60
-int spawn_pinger(void);
61
-int print_pingtable(struct ha *ta,int idx,int lock);
62
-inline int init_pingtable(struct ha *table,int timeout,int maxpings);
63
-inline void destroy_pingtable(struct ha *table);
64
-#endif
Browse code

- sync function definitions with declarations for functions w/o parameters - this functions were declared as 'f()', that means they can have a arbitrary number of arguments (because of compatibility to the old style definitions in the C standard), even if they are defined as f(void) - there is no warning reported if somebody call a function like this with some parameters - another potential problem is, when somebody change the definition to accept some parameter, but forgot to change also the declaration. Then the compiler will not report wrong usage of this functions too. - sometimes ago the '-Wold-style-definition' warning was introduced, the definitions get then fixed subsequently, but not all declarations

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5003 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 26/09/2008 11:01:51
Showing 1 changed files
... ...
@@ -56,8 +56,8 @@ extern struct ping *servlet_pings;
56 56
 extern int use_ha;
57 57
 
58 58
 char * create_ping_event(int *evt_len,int flags,unsigned int *seqno);
59
-int prepare_ha();
60
-int spawn_pinger();
59
+int prepare_ha(void);
60
+int spawn_pinger(void);
61 61
 int print_pingtable(struct ha *ta,int idx,int lock);
62 62
 inline int init_pingtable(struct ha *table,int timeout,int maxpings);
63 63
 inline void destroy_pingtable(struct ha *table);
Browse code

- change name in copyright headers

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4518 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 28/07/2008 15:39:28
Showing 1 changed files
... ...
@@ -2,14 +2,14 @@
2 2
  *
3 3
  * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
4 4
  *
5
- * This file is part of openser, a free SIP server.
5
+ * This file is part of Kamailio, a free SIP server.
6 6
  *
7
- * openser is free software; you can redistribute it and/or modify
7
+ * Kamailio is free software; you can redistribute it and/or modify
8 8
  * it under the terms of the GNU General Public License as published by
9 9
  * the Free Software Foundation; either version 2 of the License, or
10 10
  * (at your option) any later version
11 11
  *
12
- * openser is distributed in the hope that it will be useful,
12
+ * Kamailio is distributed in the hope that it will be useful,
13 13
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 15
  * GNU General Public License for more details.
Browse code

- code cleanup and bugfixes: some errors and warnings from '-Wextra -Wredundant-decls' - remove redundant variable and function definition in mangler and flatstore - fix comparison of unsigned variable < 0 in if-case in cfgutils - remove redundant variable definitions in seas - change variable to signed to really reach an error case and remove an empty else case in seas - remove redundant variable and function definition in registrar, domain and tm

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2188 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 10/05/2007 15:34:09
Showing 1 changed files
... ...
@@ -43,7 +43,6 @@ struct ha{
43 43
 
44 44
 extern char *jain_ping_config;
45 45
 extern int jain_ping_period;
46
-extern int jain_pings_lost;
47 46
 extern int jain_ping_timeout;
48 47
 extern struct ping *jain_pings;
49 48
 
... ...
@@ -51,7 +50,6 @@ extern pid_t pinger_pid;
51 50
 
52 51
 extern char *servlet_ping_config;
53 52
 extern int servlet_ping_period;
54
-extern int servlet_pings_lost;
55 53
 extern int servlet_ping_timeout;
56 54
 extern struct ping *servlet_pings;
57 55
 
Browse code

- added license and copyright

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1819 689a6050-402a-0410-94f2-e92a70836424

Daniel-Constantin Mierla authored on 11/03/2007 19:20:59
Showing 1 changed files
... ...
@@ -1,4 +1,24 @@
1
-/* $Id$ */
1
+/* $Id$
2
+ *
3
+ * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
4
+ *
5
+ * This file is part of openser, a free SIP server.
6
+ *
7
+ * openser is free software; you can redistribute it and/or modify
8
+ * it under the terms of the GNU General Public License as published by
9
+ * the Free Software Foundation; either version 2 of the License, or
10
+ * (at your option) any later version
11
+ *
12
+ * openser is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License 
18
+ * along with this program; if not, write to the Free Software 
19
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
+ */
21
+
2 22
 
3 23
 #ifndef HA_H
4 24
 #define HA_H
Browse code

Added code files for SEAS module

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1448 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 22/12/2006 17:07:44
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+/* $Id$ */
2
+
3
+#ifndef HA_H
4
+#define HA_H
5
+#include "../../locking.h"/* for get_lock_t define*/
6
+#include <time.h>
7
+struct ping{
8
+   unsigned int id;
9
+   struct timeval sent;
10
+   struct ping *next;
11
+};
12
+
13
+struct ha{
14
+   int timed_out_pings;
15
+   int timeout;
16
+   gen_lock_t *mutex;
17
+   struct ping *pings; 
18
+   int begin;
19
+   int end;
20
+   int count;
21
+   int size;
22
+};
23
+
24
+extern char *jain_ping_config;
25
+extern int jain_ping_period;
26
+extern int jain_pings_lost;
27
+extern int jain_ping_timeout;
28
+extern struct ping *jain_pings;
29
+
30
+extern pid_t pinger_pid;
31
+
32
+extern char *servlet_ping_config;
33
+extern int servlet_ping_period;
34
+extern int servlet_pings_lost;
35
+extern int servlet_ping_timeout;
36
+extern struct ping *servlet_pings;
37
+
38
+extern int use_ha;
39
+
40
+char * create_ping_event(int *evt_len,int flags,unsigned int *seqno);
41
+int prepare_ha();
42
+int spawn_pinger();
43
+int print_pingtable(struct ha *ta,int idx,int lock);
44
+inline int init_pingtable(struct ha *table,int timeout,int maxpings);
45
+inline void destroy_pingtable(struct ha *table);
46
+#endif