diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-22 15:56:49 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-22 17:06:05 +0100 |
commit | c01e90933fef6449f64db65a63590a6507bae34a (patch) | |
tree | 8757bfb928e630e32f40272509479c4137f161f0 /include/osmocom/msc | |
parent | 6a8b9c70fceba57f624c9c23c97cbb27389e4584 (diff) |
dissolve libcommon: move talloc ctx into msc_main.c, drop talloc_ctx.c
Drop tall_bsc_ctx; in mncc_sock_init(), talloc the mncc_sock_state from
gsm_network.
In tests or utils, move from using an extern tall_bsc_ctx to a local root
context pointer.
Change-Id: I92c252be1d1e7634f1653de47d37c99d77d9501c
Diffstat (limited to 'include/osmocom/msc')
-rw-r--r-- | include/osmocom/msc/gsm_data.h | 2 | ||||
-rw-r--r-- | include/osmocom/msc/gsup_client.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h index 2d1d20c19..9b6e4e4bb 100644 --- a/include/osmocom/msc/gsm_data.h +++ b/include/osmocom/msc/gsm_data.h @@ -359,8 +359,6 @@ struct gsm_sms { char text[SMS_TEXT_SIZE]; }; -extern void talloc_ctx_init(void *ctx_root); - extern void *tall_bsc_ctx; extern int ipacc_rtp_direct; diff --git a/include/osmocom/msc/gsup_client.h b/include/osmocom/msc/gsup_client.h index ce065a6e3..59e650f63 100644 --- a/include/osmocom/msc/gsup_client.h +++ b/include/osmocom/msc/gsup_client.h @@ -54,7 +54,8 @@ struct gsup_client { int got_ipa_pong; }; -struct gsup_client *gsup_client_create(const char *unit_name, +struct gsup_client *gsup_client_create(void *talloc_ctx, + const char *unit_name, const char *ip_addr, unsigned int tcp_port, gsup_client_read_cb_t read_cb, |