- 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,21 +0,0 @@ |
1 |
- |
|
2 |
-#ifndef _CRC_H_ |
|
3 |
-#define _CRC_H_ |
|
4 |
- |
|
5 |
-#include "str.h" |
|
6 |
- |
|
7 |
-#define CRC16_LEN 4 |
|
8 |
- |
|
9 |
-extern unsigned long int crc_32_tab[]; |
|
10 |
-extern unsigned short int ccitt_tab[]; |
|
11 |
-extern unsigned short int crc_16_tab[]; |
|
12 |
- |
|
13 |
- |
|
14 |
-unsigned short crcitt_string_ex( char *s, int len, register unsigned short ccitt); |
|
15 |
-unsigned short crcitt_string( char *s, int len ); |
|
16 |
-void crcitt_string_array( char *dst, str src[], int size ); |
|
17 |
- |
|
18 |
-void crc32_uint (str *source_string, unsigned int *hash_ret); |
|
19 |
- |
|
20 |
-#endif /* _CRC_H_ */ |
|
21 |
- |
- local route and errinfo related code were not used for long time
- also moved some bits of code to more appropriate location
... | ... |
@@ -16,5 +16,7 @@ unsigned short crcitt_string_ex( char *s, int len, register unsigned short ccitt |
16 | 16 |
unsigned short crcitt_string( char *s, int len ); |
17 | 17 |
void crcitt_string_array( char *dst, str src[], int size ); |
18 | 18 |
|
19 |
+void crc32_uint (str *source_string, unsigned int *hash_ret); |
|
20 |
+ |
|
19 | 21 |
#endif /* _CRC_H_ */ |
20 | 22 |
|
... | ... |
@@ -11,6 +11,8 @@ extern unsigned long int crc_32_tab[]; |
11 | 11 |
extern unsigned short int ccitt_tab[]; |
12 | 12 |
extern unsigned short int crc_16_tab[]; |
13 | 13 |
|
14 |
+ |
|
15 |
+unsigned short crcitt_string_ex( char *s, int len, register unsigned short ccitt); |
|
14 | 16 |
unsigned short crcitt_string( char *s, int len ); |
15 | 17 |
void crcitt_string_array( char *dst, str src[], int size ); |
16 | 18 |
|
... | ... |
@@ -3,6 +3,8 @@ |
3 | 3 |
#ifndef _CRC_H_ |
4 | 4 |
#define _CRC_H_ |
5 | 5 |
|
6 |
+#include "str.h" |
|
7 |
+ |
|
6 | 8 |
#define CRC16_LEN 4 |
7 | 9 |
|
8 | 10 |
extern unsigned long int crc_32_tab[]; |
... | ... |
@@ -12,5 +14,5 @@ extern unsigned short int crc_16_tab[]; |
12 | 14 |
unsigned short crcitt_string( char *s, int len ); |
13 | 15 |
void crcitt_string_array( char *dst, str src[], int size ); |
14 | 16 |
|
15 |
-#endif |
|
17 |
+#endif /* _CRC_H_ */ |
|
16 | 18 |
|
... | ... |
@@ -3,9 +3,14 @@ |
3 | 3 |
#ifndef _CRC_H_ |
4 | 4 |
#define _CRC_H_ |
5 | 5 |
|
6 |
+#define CRC16_LEN 4 |
|
7 |
+ |
|
6 | 8 |
extern unsigned long int crc_32_tab[]; |
7 | 9 |
extern unsigned short int ccitt_tab[]; |
8 | 10 |
extern unsigned short int crc_16_tab[]; |
9 | 11 |
|
12 |
+unsigned short crcitt_string( char *s, int len ); |
|
13 |
+void crcitt_string_array( char *dst, str src[], int size ); |
|
14 |
+ |
|
10 | 15 |
#endif |
11 | 16 |
|