diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-07 12:15:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-06-07 12:36:42 +0200 |
commit | 54b4979de6ee0340694dc7cef85ddce9cf2e6aa6 (patch) | |
tree | a27038671f27f2628f8745bbdebf77fae1eb9b3b /tests/e1inp_ipa_bsc_test.c | |
parent | 177094b4c988f126ead93a5d3f25b4bedefa2d97 (diff) |
src: add libosmo_abis_init(void *ctx) to set the talloc context
This function is called during initialization, so we can set what's
the talloc context for the application and the library.
Diffstat (limited to 'tests/e1inp_ipa_bsc_test.c')
-rw-r--r-- | tests/e1inp_ipa_bsc_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/e1inp_ipa_bsc_test.c b/tests/e1inp_ipa_bsc_test.c index 5ef725e..96ecec9 100644 --- a/tests/e1inp_ipa_bsc_test.c +++ b/tests/e1inp_ipa_bsc_test.c @@ -1,6 +1,10 @@ #include <stdio.h> +#include <talloc.h> +#include <osmocom/abis/abis.h> #include <osmocom/abis/e1_input.h> +static void *tall_test; + static int rx_cb(struct msgb *msg, struct e1inp_ts *ts) { printf("received data\n"); @@ -31,7 +35,8 @@ int main(void) struct e1inp_line *line; struct e1inp_ts *sign_ts; - e1inp_init(); + tall_test = talloc_named_const(NULL, 1, "e1inp_test"); + libosmo_abis_init(tall_test); #define LINENR 0 |