- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,60 +0,0 @@ |
1 |
-/* |
|
2 |
- * Copyright (C) 2007 iptelorg GmbH |
|
3 |
- * |
|
4 |
- * This file is part of Kamailio, a free SIP server. |
|
5 |
- * |
|
6 |
- * Kamailio is free software; you can redistribute it and/or modify |
|
7 |
- * it under the terms of the GNU General Public License as published by |
|
8 |
- * the Free Software Foundation; either version 2 of the License, or |
|
9 |
- * (at your option) any later version |
|
10 |
- * |
|
11 |
- * Kamailio is distributed in the hope that it will be useful, |
|
12 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
- * GNU General Public License for more details. |
|
15 |
- * |
|
16 |
- * You should have received a copy of the GNU General Public License |
|
17 |
- * along with this program; if not, write to the Free Software |
|
18 |
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
19 |
- */ |
|
20 |
-/*! |
|
21 |
-* \file |
|
22 |
-* \brief Kamailio core :: local timer routines |
|
23 |
-* \ingroup core |
|
24 |
-* \author andrei |
|
25 |
-* Module: \ref core |
|
26 |
-* |
|
27 |
- * WARNING: this should be used only from within the same process. |
|
28 |
- * The local timers are not multi-process or multi-thread safe |
|
29 |
- * (there are no locks) |
|
30 |
- * |
|
31 |
- */ |
|
32 |
- |
|
33 |
-#ifndef _local_timer_h |
|
34 |
-#define _local_timer_h |
|
35 |
- |
|
36 |
-#include "timer_ticks.h" |
|
37 |
-#include "timer_funcs.h" |
|
38 |
- |
|
39 |
- |
|
40 |
-struct local_timer { |
|
41 |
- /* private timer information */ |
|
42 |
- ticks_t prev_ticks; /* last time we ran the timer */ |
|
43 |
- struct timer_lists timer_lst; /* actual timer lists */ |
|
44 |
-}; |
|
45 |
- |
|
46 |
- |
|
47 |
-#define local_timer_init(tl, fun, param, flgs) timer_init(tl, fun, param, flgs) |
|
48 |
- |
|
49 |
-#define local_timer_reinit(tl) timer_reinit((tl)) |
|
50 |
- |
|
51 |
-int init_local_timer(struct local_timer *lt_handle, ticks_t crt_ticks); |
|
52 |
-void destroy_local_timer(struct local_timer* lt_handle); |
|
53 |
- |
|
54 |
-int local_timer_add(struct local_timer* h, struct timer_ln* tl, ticks_t delta, |
|
55 |
- ticks_t crt_ticks); |
|
56 |
- |
|
57 |
-void local_timer_del(struct local_timer* h, struct timer_ln* tl); |
|
58 |
-void local_timer_run(struct local_timer* lt, ticks_t crt_ticks); |
|
59 |
- |
|
60 |
-#endif /* _local_timer_h */ |
... | ... |
@@ -1,21 +1,14 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 | 2 |
* Copyright (C) 2007 iptelorg GmbH |
5 | 3 |
* |
6 |
- * This file is part of ser, a free SIP server. |
|
4 |
+ * This file is part of Kamailio, a free SIP server. |
|
7 | 5 |
* |
8 |
- * ser is free software; you can redistribute it and/or modify |
|
6 |
+ * Kamailio is free software; you can redistribute it and/or modify |
|
9 | 7 |
* it under the terms of the GNU General Public License as published by |
10 | 8 |
* the Free Software Foundation; either version 2 of the License, or |
11 | 9 |
* (at your option) any later version |
12 | 10 |
* |
13 |
- * For a license to use the ser software under conditions |
|
14 |
- * other than those described here, or to purchase support for this |
|
15 |
- * software, please contact iptel.org by e-mail at the following addresses: |
|
16 |
- * info@iptel.org |
|
17 |
- * |
|
18 |
- * ser is distributed in the hope that it will be useful, |
|
11 |
+ * Kamailio is distributed in the hope that it will be useful, |
|
19 | 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 | 14 |
* GNU General Public License for more details. |
... | ... |
@@ -24,14 +17,17 @@ |
24 | 17 |
* along with this program; if not, write to the Free Software |
25 | 18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
26 | 19 |
*/ |
27 |
-/* local timer routines |
|
20 |
+/*! |
|
21 |
+* \file |
|
22 |
+* \brief Kamailio core :: local timer routines |
|
23 |
+* \ingroup core |
|
24 |
+* \author andrei |
|
25 |
+* Module: \ref core |
|
26 |
+* |
|
28 | 27 |
* WARNING: this should be used only from within the same process. |
29 | 28 |
* The local timers are not multi-process or multi-thread safe |
30 | 29 |
* (there are no locks) |
31 | 30 |
* |
32 |
- * History: |
|
33 |
- * -------- |
|
34 |
- * 2007-11-22 created by andrei |
|
35 | 31 |
*/ |
36 | 32 |
|
37 | 33 |
#ifndef _local_timer_h |
... | ... |
@@ -22,7 +22,7 @@ |
22 | 22 |
* |
23 | 23 |
* You should have received a copy of the GNU General Public License |
24 | 24 |
* along with this program; if not, write to the Free Software |
25 |
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
25 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
26 | 26 |
*/ |
27 | 27 |
/* local timer routines |
28 | 28 |
* WARNING: this should be used only from within the same process. |
... | ... |
@@ -48,6 +48,10 @@ struct local_timer { |
48 | 48 |
}; |
49 | 49 |
|
50 | 50 |
|
51 |
+#define local_timer_init(tl, fun, param, flgs) timer_init(tl, fun, param, flgs) |
|
52 |
+ |
|
53 |
+#define local_timer_reinit(tl) timer_reinit((tl)) |
|
54 |
+ |
|
51 | 55 |
int init_local_timer(struct local_timer *lt_handle, ticks_t crt_ticks); |
52 | 56 |
void destroy_local_timer(struct local_timer* lt_handle); |
53 | 57 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,57 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ * Copyright (C) 2007 iptelorg GmbH |
|
5 |
+ * |
|
6 |
+ * This file is part of ser, a free SIP server. |
|
7 |
+ * |
|
8 |
+ * ser 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 |
+ * For a license to use the ser software under conditions |
|
14 |
+ * other than those described here, or to purchase support for this |
|
15 |
+ * software, please contact iptel.org by e-mail at the following addresses: |
|
16 |
+ * info@iptel.org |
|
17 |
+ * |
|
18 |
+ * ser is distributed in the hope that it will be useful, |
|
19 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
+ * GNU General Public License for more details. |
|
22 |
+ * |
|
23 |
+ * You should have received a copy of the GNU General Public License |
|
24 |
+ * along with this program; if not, write to the Free Software |
|
25 |
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
26 |
+ */ |
|
27 |
+/* local timer routines |
|
28 |
+ * WARNING: this should be used only from within the same process. |
|
29 |
+ * The local timers are not multi-process or multi-thread safe |
|
30 |
+ * (there are no locks) |
|
31 |
+ * |
|
32 |
+ * History: |
|
33 |
+ * -------- |
|
34 |
+ * 2007-11-22 created by andrei |
|
35 |
+ */ |
|
36 |
+ |
|
37 |
+#ifndef _local_timer_h |
|
38 |
+#define _local_timer_h |
|
39 |
+ |
|
40 |
+ |
|
41 |
+struct local_timer { |
|
42 |
+ /* private timer information */ |
|
43 |
+ ticks_t prev_ticks; /* last time we ran the timer */ |
|
44 |
+ struct timer_lists timer_lst; /* actual timer lists */ |
|
45 |
+}; |
|
46 |
+ |
|
47 |
+ |
|
48 |
+int init_local_timer(struct local_timer *lt_handle, ticks_t crt_ticks); |
|
49 |
+void destroy_local_timer(struct local_timer* lt_handle); |
|
50 |
+ |
|
51 |
+int local_timer_add(struct local_timer* h, struct timer_ln* tl, ticks_t delta, |
|
52 |
+ ticks_t crt_ticks); |
|
53 |
+ |
|
54 |
+void local_timer_del(struct local_timer* h, struct timer_ln* tl); |
|
55 |
+void local_timer_run(struct local_timer* lt, ticks_t crt_ticks); |
|
56 |
+ |
|
57 |
+#endif /* _local_timer_h */ |