Harald Welte | dfe6c7d | 2010-02-20 16:24:02 +0100 | [diff] [blame] | 1 | #include <osmocore/talloc.h> |
Harald Welte (local) | d19e58b | 2009-08-15 02:30:58 +0200 | [diff] [blame] | 2 | #include <openbsc/gsm_data.h> |
| 3 | |
Harald Welte | 30d2ebd | 2009-12-24 09:43:25 +0100 | [diff] [blame] | 4 | extern void *tall_msgb_ctx; |
Harald Welte (local) | d19e58b | 2009-08-15 02:30:58 +0200 | [diff] [blame] | 5 | extern void *tall_fle_ctx; |
| 6 | extern void *tall_locop_ctx; |
| 7 | extern void *tall_gsms_ctx; |
| 8 | extern void *tall_subscr_ctx; |
| 9 | extern void *tall_sub_req_ctx; |
| 10 | extern void *tall_call_ctx; |
| 11 | extern void *tall_paging_ctx; |
| 12 | extern void *tall_sigh_ctx; |
| 13 | extern void *tall_tqe_ctx; |
| 14 | extern void *tall_trans_ctx; |
| 15 | extern void *tall_map_ctx; |
| 16 | extern void *tall_upq_ctx; |
Harald Welte | 026a6c3 | 2009-12-24 10:04:09 +0100 | [diff] [blame] | 17 | extern void *tall_ctr_ctx; |
Harald Welte (local) | d19e58b | 2009-08-15 02:30:58 +0200 | [diff] [blame] | 18 | |
| 19 | void talloc_ctx_init(void) |
| 20 | { |
Harald Welte | 30d2ebd | 2009-12-24 09:43:25 +0100 | [diff] [blame] | 21 | tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb"); |
Holger Hans Peter Freyther | acf8a0c | 2010-03-29 08:47:44 +0200 | [diff] [blame] | 22 | tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0, |
Harald Welte (local) | d19e58b | 2009-08-15 02:30:58 +0200 | [diff] [blame] | 23 | "bs11_file_list_entry"); |
| 24 | tall_locop_ctx = talloc_named_const(tall_bsc_ctx, 0, "loc_updating_oper"); |
| 25 | tall_gsms_ctx = talloc_named_const(tall_bsc_ctx, 0, "sms"); |
| 26 | tall_subscr_ctx = talloc_named_const(tall_bsc_ctx, 0, "subscriber"); |
| 27 | tall_sub_req_ctx = talloc_named_const(tall_bsc_ctx, 0, "subscr_request"); |
| 28 | tall_call_ctx = talloc_named_const(tall_bsc_ctx, 0, "gsm_call"); |
| 29 | tall_paging_ctx = talloc_named_const(tall_bsc_ctx, 0, "paging_request"); |
| 30 | tall_sigh_ctx = talloc_named_const(tall_bsc_ctx, 0, "signal_handler"); |
| 31 | tall_tqe_ctx = talloc_named_const(tall_bsc_ctx, 0, "subch_txq_entry"); |
| 32 | tall_trans_ctx = talloc_named_const(tall_bsc_ctx, 0, "transaction"); |
| 33 | tall_map_ctx = talloc_named_const(tall_bsc_ctx, 0, "trau_map_entry"); |
| 34 | tall_upq_ctx = talloc_named_const(tall_bsc_ctx, 0, "trau_upq_entry"); |
Harald Welte | 02cbff0 | 2009-12-24 10:07:36 +0100 | [diff] [blame] | 35 | tall_ctr_ctx = talloc_named_const(tall_bsc_ctx, 0, "counter"); |
Harald Welte (local) | d19e58b | 2009-08-15 02:30:58 +0200 | [diff] [blame] | 36 | } |