Browse code

core, lib, modules: restructured source code tree

- 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)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,40 +0,0 @@
1
-/*
2
- * time related functions
3
- *
4
- * Copyright (C) 2006 iptelorg GmbH
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
-/*!
20
- * \file
21
- * \brief Kamailio core :: Time related functions
22
- * \author andrei
23
- * \ingroup core
24
- * Module: \ref core
25
- */
26
-#ifndef _ser_time_h
27
-#define _ser_time_h
28
-
29
-#include <sys/time.h>
30
-#include <time.h>
31
-
32
-/* time(2) equivalent, using ser internal timers (faster then a syscall) */
33
-time_t ser_time(time_t* t);
34
-
35
-/* gettimeofday(2) equivalent, faster but much more imprecise
36
- * (in normal conditions should be within 0.1 s of the real time)
37
- * WARNING: ignores tz (it's obsolete anyway) */
38
-int ser_gettimeofday(struct timeval* tv, const struct timezone *tz);
39
-
40
-#endif /* _ser_time_h */
Browse code

core: timer - relocate er_clock_gettime() in cdp module

- benchmark may need it as well

Daniel-Constantin Mierla authored on 06/05/2016 07:07:11
Showing 1 changed files
... ...
@@ -37,7 +37,4 @@ time_t ser_time(time_t* t);
37 37
  * WARNING: ignores tz (it's obsolete anyway) */
38 38
 int ser_gettimeofday(struct timeval* tv, const struct timezone *tz);
39 39
 
40
-/* portable implementation for clock_gettime(CLOCK_REALTIME, ts) */
41
-int ser_clock_gettime(struct timespec *ts);
42
-
43 40
 #endif /* _ser_time_h */
Browse code

core: added alternative for clock_gettime() on mac os x

Daniel-Constantin Mierla authored on 05/05/2016 06:38:12
Showing 1 changed files
... ...
@@ -37,4 +37,7 @@ time_t ser_time(time_t* t);
37 37
  * WARNING: ignores tz (it's obsolete anyway) */
38 38
 int ser_gettimeofday(struct timeval* tv, const struct timezone *tz);
39 39
 
40
+/* portable implementation for clock_gettime(CLOCK_REALTIME, ts) */
41
+int ser_clock_gettime(struct timespec *ts);
42
+
40 43
 #endif /* _ser_time_h */
Browse code

core: timer - coherent indentation and whitespacing

Daniel-Constantin Mierla authored on 05/05/2016 06:28:19
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-/* 
1
+/*
2 2
  * time related functions
3 3
  *
4 4
  * Copyright (C) 2006 iptelorg GmbH
Browse code

Core Update of doxygen, removal of history, changing "ser" to "kamailio"

Olle E. Johansson authored on 03/01/2015 14:03:24
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /* 
2
- * $Id$
3
- * 
4 2
  * time related functions
5 3
  *
6 4
  * Copyright (C) 2006 iptelorg GmbH
... ...
@@ -17,9 +15,13 @@
17 15
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 17
  */
20
-/* History:
21
- * --------
22
- *  2008-07-16  initial version (andrei)
18
+
19
+/*!
20
+ * \file
21
+ * \brief Kamailio core :: Time related functions
22
+ * \author andrei
23
+ * \ingroup core
24
+ * Module: \ref core
23 25
  */
24 26
 #ifndef _ser_time_h
25 27
 #define _ser_time_h
Browse code

- ser equivalents to time(2) and gettimeofday(2), using internal ser time (faster then making a syscall, but at least in the gettimeofday case more imprecise, can be about 0.1-0.2 s off)

Andrei Pelinescu-Onciul authored on 17/07/2008 07:51:34
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,38 @@
1
+/* 
2
+ * $Id$
3
+ * 
4
+ * time related functions
5
+ *
6
+ * Copyright (C) 2006 iptelorg GmbH
7
+ *
8
+ * Permission to use, copy, modify, and distribute this software for any
9
+ * purpose with or without fee is hereby granted, provided that the above
10
+ * copyright notice and this permission notice appear in all copies.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
+ */
20
+/* History:
21
+ * --------
22
+ *  2008-07-16  initial version (andrei)
23
+ */
24
+#ifndef _ser_time_h
25
+#define _ser_time_h
26
+
27
+#include <sys/time.h>
28
+#include <time.h>
29
+
30
+/* time(2) equivalent, using ser internal timers (faster then a syscall) */
31
+time_t ser_time(time_t* t);
32
+
33
+/* gettimeofday(2) equivalent, faster but much more imprecise
34
+ * (in normal conditions should be within 0.1 s of the real time)
35
+ * WARNING: ignores tz (it's obsolete anyway) */
36
+int ser_gettimeofday(struct timeval* tv, const struct timezone *tz);
37
+
38
+#endif /* _ser_time_h */