diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2020-12-28 22:25:45 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-28 22:29:01 +0100 |
commit | 0a2b257868214502e392f01ff2c3f92993bd5e4e (patch) | |
tree | c0b10b9edc77490a3e24e7cd87499cd8173e611e /include/osmocom | |
parent | 8c33d4a485f1f5742211b7c1b4ea188949b4ed06 (diff) |
Declare osmo_ctx_init() in talloc.h
This function is called automatically on the main thread, but needs to
ba called explicitly in order to run the select loop on another thread.
Make it available for applications through talloc.h
Change-Id: Ie710ca9ad01d3fadb9f4ff344a55d6c01004727b
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/talloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/talloc.h b/include/osmocom/core/talloc.h index c68a56cf..f15cd2a2 100644 --- a/include/osmocom/core/talloc.h +++ b/include/osmocom/core/talloc.h @@ -25,3 +25,5 @@ extern __thread struct osmo_talloc_contexts *osmo_ctx; * to the various _c functions like msgb_alloc_c() */ #define OTC_GLOBAL (osmo_ctx->global) #define OTC_SELECT (osmo_ctx->select) + +int osmo_ctx_init(const char *id); |