[SR-Dev] git:master: tm: which cancel exported via TM API

Daniel-Constantin Mierla miconda at gmail.com
Sun May 3 15:38:33 CEST 2009


Module: sip-router
Branch: master
Commit: d8d0b92dfed5e41b8952325da1509d91bfa611cf
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d8d0b92dfed5e41b8952325da1509d91bfa611cf

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun May  3 15:18:21 2009 +0200

tm: which cancel exported via TM API

---

 modules/tm/t_cancel.h |    1 +
 modules/tm/tm_load.c  |    1 +
 modules/tm/tm_load.h  |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/tm/t_cancel.h b/modules/tm/t_cancel.h
index 2ae96f2..d3ff20a 100644
--- a/modules/tm/t_cancel.h
+++ b/modules/tm/t_cancel.h
@@ -84,6 +84,7 @@ typedef int(*cancel_uacs_f)( struct cell *t, branch_bm_t cancel_bm,
 								int flags );
 typedef int (*cancel_all_uacs_f)(struct cell *trans, int how);
 
+typedef void (*which_cancel_f)(struct cell *t, branch_bm_t *cancel_bm );
 
 
 /* 
diff --git a/modules/tm/tm_load.c b/modules/tm/tm_load.c
index 13b9f23..22e1782 100644
--- a/modules/tm/tm_load.c
+++ b/modules/tm/tm_load.c
@@ -234,6 +234,7 @@ int load_tm( struct tm_binds *tmb)
 	tmb->t_lookup_request = t_lookup_request;
 	tmb->t_check = t_check;
 	tmb->unref_cell = unref_cell;
+	tmb->which_cancel = which_cancel;
 
 #ifdef WITH_TM_CTX
 	tmb->tm_ctx_get = tm_ctx_get;
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index 22e7201..54c0b9a 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -141,6 +141,7 @@ struct tm_binds {
 	tlookup_request_f t_lookup_request;
 	tcheck_f t_check;
 	unref_cell_f unref_cell;
+	which_cancel_f which_cancel;
 #ifdef WITH_TM_CTX
 	tm_ctx_get_f tm_ctx_get;
 #else




More information about the sr-dev mailing list