Module: sip-router
Branch: master
Commit: 61ad14ac452293d45944f6de7dbccb7a9835d71e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=61ad14a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri May 1 14:58:49 2009 +0200
tm: unref_cell(t) added to tm api
- wrapper to UNREF(T) define
- used by K extensions (tmx module)
---
modules/tm/t_funcs.c | 5 ++++-
modules/tm/t_funcs.h | 2 ++
modules/tm/tm_load.c | 1 +
modules/tm/tm_load.h | 1 +
4 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/tm/t_funcs.c b/modules/tm/t_funcs.c
index f07b002..8e4d492 100644
--- a/modules/tm/t_funcs.c
+++ b/modules/tm/t_funcs.c
@@ -447,4 +447,7 @@ int fr_inv_avp2timer(unsigned int* timer)
return 1;
}
-
+void unref_cell(struct cell *t)
+{
+ UNREF(t);
+}
diff --git a/modules/tm/t_funcs.h b/modules/tm/t_funcs.h
index 5e3c605..994e847 100644
--- a/modules/tm/t_funcs.h
+++ b/modules/tm/t_funcs.h
@@ -150,6 +150,8 @@ int send_pr_buffer( struct retr_buf *rb, void *buf, int len);
int init_avp_params(char *fr_timer_param, char *fr_inv_timer_param);
+typedef void (*unref_cell_f)(struct cell *t);
+void unref_cell(struct cell *t);
/*
* Get the FR_{INV}_TIMER from corresponding AVP
*/
diff --git a/modules/tm/tm_load.c b/modules/tm/tm_load.c
index afb5e30..13b9f23 100644
--- a/modules/tm/tm_load.c
+++ b/modules/tm/tm_load.c
@@ -233,6 +233,7 @@ int load_tm( struct tm_binds *tmb)
tmb->generate_fromtag = generate_fromtag;
tmb->t_lookup_request = t_lookup_request;
tmb->t_check = t_check;
+ tmb->unref_cell = unref_cell;
#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 ec84143..22e7201 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -140,6 +140,7 @@ struct tm_binds {
generate_fromtag_f generate_fromtag;
tlookup_request_f t_lookup_request;
tcheck_f t_check;
+ unref_cell_f unref_cell;
#ifdef WITH_TM_CTX
tm_ctx_get_f tm_ctx_get;
#else