2
0
Эх сурвалжийг харах

- re-arranged tmcb structure members so that even if a module compiled
without TMCB_ONSEND uses a callback from a TMCB_ONSEND compiled tm, it
will still work

Andrei Pelinescu-Onciul 18 жил өмнө
parent
commit
0776639531
1 өөрчлөгдсөн 9 нэмэгдсэн , 9 устгасан
  1. 9 9
      modules/tm/t_hooks.h

+ 9 - 9
modules/tm/t_hooks.h

@@ -325,7 +325,16 @@ struct tmcb_params {
 	struct sip_msg* req;
 	struct sip_msg* rpl;
 	void **param;
+	int code;
 #ifdef TMCB_ONSEND
+	unsigned short flags; /* set to a combination of:
+							 TMCB_RETR_F if this is a _ser_ retransmission
+							 (but not if if it's a "forwarded" retr., like a 
+							 retr. 200 Ok for example)
+							 TMCB_LOCAL_F if this is a local generated message
+							  (and not forwarded) */
+	unsigned short branch;
+	/* could also be: send_buf, dst, branch */
 	struct retr_buf* t_rbuf; /* transaction retr. buf., all the information
 								 regarding destination, data that is/was
 								 actually sent on the net, branch a.s.o is
@@ -333,16 +342,7 @@ struct tmcb_params {
 	struct dest_info* dst; /* destination */
 	str send_buf; /* what was/will be sent on the net, used for ACKs
 					(which don't have a retr_buf). */
-	short flags; /* set to a combination of:
-					TMCB_RETR_F if this is a _ser_ retransmission (but 
-					 not if if it's a "forwarded" retr., like a retr. 200 Ok
-					 for example)
-					 TMCB_LOCAL_F if this is a local generated message
-					  (and not forwarded) */
-	unsigned short branch;
-	/* could also be: send_buf, dst, branch */
 #endif
-	int code;
 };
 
 #define INIT_TMCB_PARAMS(tmcb, request, reply, r_code)\