Skip to content

Commit

Permalink
tm: add set_t in API
Browse files Browse the repository at this point in the history
(cherry picked from commit 5339179)
  • Loading branch information
razvancrainea committed Jul 26, 2023
1 parent 0023efa commit ff17335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/tm/t_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ typedef struct cell * (*tlookuporiginalt_f)(struct sip_msg*);
typedef struct cell * (*tgett_f)(void);
struct cell *get_t();

typedef void (*tsett_f)(struct cell *);
/* use carefully or better not at all -- current transaction is
* primarily set by lookup functions */
void set_t(struct cell *t);
Expand Down
1 change: 1 addition & 0 deletions modules/tm/tm.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ int load_tm( struct tm_binds *tmb)
tmb->t_get_trans_ident = t_get_trans_ident;
tmb->t_lookup_ident = t_lookup_ident;
tmb->t_gett = get_t;
tmb->t_sett = set_t;
tmb->t_get_e2eackt = get_e2eack_t;
tmb->t_get_picked = t_get_picked_branch;
tmb->t_set_remote_t = t_set_remote_t;
Expand Down
1 change: 1 addition & 0 deletions modules/tm/tm_load.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct tm_binds {
free_dlg_f free_dlg;
print_dlg_f print_dlg;
tgett_f t_gett;
tsett_f t_sett;
tgett_f t_get_e2eackt;
tget_picked_f t_get_picked;
tset_remotet_f t_set_remote_t;
Expand Down

0 comments on commit ff17335

Please sign in to comment.