blob: 4b373b4aef7eba0e669726c41025496594c3203c [file] [log] [blame]
Harald Weltedfe6c7d2010-02-20 16:24:02 +01001#include <osmocore/talloc.h>
Harald Welte (local)d19e58b2009-08-15 02:30:58 +02002#include <openbsc/gsm_data.h>
3
Harald Welte30d2ebd2009-12-24 09:43:25 +01004extern void *tall_msgb_ctx;
Harald Welte (local)d19e58b2009-08-15 02:30:58 +02005extern void *tall_fle_ctx;
6extern void *tall_locop_ctx;
7extern void *tall_gsms_ctx;
8extern void *tall_subscr_ctx;
9extern void *tall_sub_req_ctx;
10extern void *tall_call_ctx;
11extern void *tall_paging_ctx;
12extern void *tall_sigh_ctx;
13extern void *tall_tqe_ctx;
14extern void *tall_trans_ctx;
15extern void *tall_map_ctx;
16extern void *tall_upq_ctx;
Harald Welte026a6c32009-12-24 10:04:09 +010017extern void *tall_ctr_ctx;
Harald Welte (local)d19e58b2009-08-15 02:30:58 +020018
19void talloc_ctx_init(void)
20{
Harald Welte30d2ebd2009-12-24 09:43:25 +010021 tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb");
Holger Hans Peter Freytheracf8a0c2010-03-29 08:47:44 +020022 tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0,
Harald Welte (local)d19e58b2009-08-15 02:30:58 +020023 "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 Welte02cbff02009-12-24 10:07:36 +010035 tall_ctr_ctx = talloc_named_const(tall_bsc_ctx, 0, "counter");
Harald Welte (local)d19e58b2009-08-15 02:30:58 +020036}