Harald Welte | 9ee4825 | 2009-07-23 21:25:08 +0200 | [diff] [blame] | 1 | #ifndef _TRANSACT_H |
| 2 | #define _TRANSACT_H |
| 3 | |
| 4 | #include <openbsc/gsm_data.h> |
| 5 | #include <openbsc/gsm_subscriber.h> |
| 6 | |
Harald Welte | b8b4073 | 2009-07-23 21:58:40 +0200 | [diff] [blame^] | 7 | struct gsm_trans *trans_find_by_id(struct gsm_subscriber *subscr, |
| 8 | u_int8_t proto, u_int8_t trans_id); |
Harald Welte | 9ee4825 | 2009-07-23 21:25:08 +0200 | [diff] [blame] | 9 | struct gsm_trans *trans_find_by_callref(struct gsm_network *net, |
| 10 | u_int32_t callref); |
| 11 | |
| 12 | struct gsm_trans *trans_alloc(struct gsm_subscriber *subscr, |
| 13 | u_int8_t protocol, u_int8_t trans_id, |
| 14 | u_int32_t callref); |
| 15 | void trans_free(struct gsm_trans *trans); |
| 16 | |
Harald Welte | 78283ef | 2009-07-23 21:36:44 +0200 | [diff] [blame] | 17 | int trans_assign_trans_id(struct gsm_subscriber *subscr, |
| 18 | u_int8_t protocol, u_int8_t ti_flag); |
Harald Welte | 9ee4825 | 2009-07-23 21:25:08 +0200 | [diff] [blame] | 19 | #endif |