split 'libosmocore' from openbsc codebase
This library is intended to collect all generic/common funcitionality
of all Osmocom.org projects, including OpenBSC but also OsmocomBB
The library currently includes the following modules:
bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer,
tlv_parse, linuxlist
msgb allocation error debugging had to be temporarily disabled as it depends on
'debug.c' functionality which at the moment remains in OpenBSC
2010-02-20 15:24:02 +00:00
|
|
|
#include <osmocore/talloc.h>
|
2009-08-15 00:30:58 +00:00
|
|
|
#include <openbsc/gsm_data.h>
|
|
|
|
|
2009-12-24 08:43:25 +00:00
|
|
|
extern void *tall_msgb_ctx;
|
2009-08-15 00:30:58 +00:00
|
|
|
extern void *tall_fle_ctx;
|
|
|
|
extern void *tall_locop_ctx;
|
2009-12-23 23:27:26 +00:00
|
|
|
extern void *tall_authciphop_ctx;
|
2009-08-15 00:30:58 +00:00
|
|
|
extern void *tall_gsms_ctx;
|
|
|
|
extern void *tall_subscr_ctx;
|
|
|
|
extern void *tall_sub_req_ctx;
|
|
|
|
extern void *tall_call_ctx;
|
|
|
|
extern void *tall_paging_ctx;
|
|
|
|
extern void *tall_sigh_ctx;
|
|
|
|
extern void *tall_tqe_ctx;
|
|
|
|
extern void *tall_trans_ctx;
|
|
|
|
extern void *tall_map_ctx;
|
|
|
|
extern void *tall_upq_ctx;
|
2009-12-24 09:04:09 +00:00
|
|
|
extern void *tall_ctr_ctx;
|
2009-08-15 00:30:58 +00:00
|
|
|
|
|
|
|
void talloc_ctx_init(void)
|
|
|
|
{
|
2009-12-24 08:43:25 +00:00
|
|
|
tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb");
|
2010-03-29 06:47:44 +00:00
|
|
|
tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0,
|
2009-08-15 00:30:58 +00:00
|
|
|
"bs11_file_list_entry");
|
|
|
|
tall_locop_ctx = talloc_named_const(tall_bsc_ctx, 0, "loc_updating_oper");
|
2009-12-23 23:27:26 +00:00
|
|
|
tall_authciphop_ctx = talloc_named_const(tall_bsc_ctx, 0, "auth_ciph_oper");
|
2009-08-15 00:30:58 +00:00
|
|
|
tall_gsms_ctx = talloc_named_const(tall_bsc_ctx, 0, "sms");
|
|
|
|
tall_subscr_ctx = talloc_named_const(tall_bsc_ctx, 0, "subscriber");
|
|
|
|
tall_sub_req_ctx = talloc_named_const(tall_bsc_ctx, 0, "subscr_request");
|
|
|
|
tall_call_ctx = talloc_named_const(tall_bsc_ctx, 0, "gsm_call");
|
|
|
|
tall_paging_ctx = talloc_named_const(tall_bsc_ctx, 0, "paging_request");
|
|
|
|
tall_sigh_ctx = talloc_named_const(tall_bsc_ctx, 0, "signal_handler");
|
|
|
|
tall_tqe_ctx = talloc_named_const(tall_bsc_ctx, 0, "subch_txq_entry");
|
|
|
|
tall_trans_ctx = talloc_named_const(tall_bsc_ctx, 0, "transaction");
|
|
|
|
tall_map_ctx = talloc_named_const(tall_bsc_ctx, 0, "trau_map_entry");
|
|
|
|
tall_upq_ctx = talloc_named_const(tall_bsc_ctx, 0, "trau_upq_entry");
|
2009-12-24 09:07:36 +00:00
|
|
|
tall_ctr_ctx = talloc_named_const(tall_bsc_ctx, 0, "counter");
|
2009-08-15 00:30:58 +00:00
|
|
|
}
|