diff options
author | Harald Welte <laforge@osmocom.org> | 2020-08-02 11:54:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-08-02 11:57:55 +0200 |
commit | b3b474d8ade2c28ab8b0e3021dea87fae19b333c (patch) | |
tree | 455e341bfd152ff031633639f21da7b277c37c34 /tests/i460_mux | |
parent | eb8240d56422b23a6aa2ba62ad57c9dee19047d1 (diff) |
i460: pass more context to call-back functions
When calling a user-provided call-back function for the i460 mux
or demux, always pass a pointer to the osmo_i460_subchan the callback
relates to. This way, the user can walk the i460 data structures
to obtain information about which mux/demux instances is calling.
Change-Id: Id842c72ce371a67fe5df6694e195c281aaf607ab
Diffstat (limited to 'tests/i460_mux')
-rw-r--r-- | tests/i460_mux/i460_mux_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i460_mux/i460_mux_test.c b/tests/i460_mux/i460_mux_test.c index 53144fde..d63b2ae6 100644 --- a/tests/i460_mux/i460_mux_test.c +++ b/tests/i460_mux/i460_mux_test.c @@ -3,7 +3,8 @@ #include <osmocom/gsm/i460_mux.h> -static void bits_cb(void *user_data, const ubit_t *bits, unsigned int num_bits) +static void bits_cb(struct osmo_i460_subchan *schan, void *user_data, + const ubit_t *bits, unsigned int num_bits) { char *str = user_data; printf("demux_bits_cb '%s': %s\n", str, osmo_ubit_dump(bits, num_bits)); |