Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 13/12/2001 21:54:43
Showing 3 changed files
... ...
@@ -9,7 +9,7 @@
9 9
 
10 10
 
11 11
 
12
-struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg )
12
+struct sip_msg* sip_msg_cloner_1( struct sip_msg *org_msg )
13 13
 {
14 14
     struct sip_msg   *new_msg=0;
15 15
     struct hdr_field  *header, *last_hdr, *new_hdr;
... ...
@@ -441,7 +441,7 @@ void sh_free_hdr_field_lst(struct hdr_field* hf)
441 441
 
442 442
 
443 443
 /*only the content*/
444
-void sip_msg_free(struct sip_msg* msg)
444
+void sip_msg_free_1(struct sip_msg* msg)
445 445
 {
446 446
    if (!msg) return;
447 447
 
... ...
@@ -464,3 +464,21 @@ void sip_msg_free(struct sip_msg* msg)
464 464
    sh_free(msg);
465 465
    DBG("DEBUG: sip_msg_free : done\n");
466 466
 }
467
+
468
+
469
+/******************************* New fuctions ************************************/
470
+
471
+
472
+struct sip_msg*  sip_msg_cloner_2( struct sip_msg *org_msg )
473
+{
474
+}
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
... ...
@@ -10,9 +10,17 @@
10 10
 
11 11
 #include "sh_malloc.h"
12 12
 
13
+#define sip_msg_cloner(p_msg) \
14
+    sip_msg_cloner_1(p_msg)
13 15
 
14
-struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg );
15
-void                     sip_msg_free( struct sip_msg *org_msg );
16
+#define sip_msg_free(p_msg) \
17
+    sip_msg_free_1(p_msg)
18
+
19
+
20
+struct sip_msg*  sip_msg_cloner_1( struct sip_msg *org_msg );
21
+struct sip_msg*  sip_msg_cloner_2( struct sip_msg *org_msg );
22
+void                     sip_msg_free_1( struct sip_msg *org_msg );
23
+void                     sip_msg_free_2( struct sip_msg *org_msg );
16 24
 
17 25
 char*   translate_pointer( char* new_buf , char *org_buf , char* p);
18 26
 struct via_body* via_body_cloner( char* new_buf , char *org_buf , struct via_body *org_via);
... ...
@@ -44,7 +44,7 @@ static struct module_exports nm_exports= {
44 44
 			},
45 45
 	(cmd_function[]){
46 46
 					t_add_transaction,
47
-					t_check,
47
+					w_t_check,
48 48
 					w_t_forward,
49 49
 					w_t_forward_def,
50 50
 					t_forward_uri,