diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2011-03-09 13:36:32 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-03-19 18:50:38 -0300 |
commit | 739a56696104e59d203130323d55e998b31b8d07 (patch) | |
tree | 0a24d3b02df318375b6f282c3b28be4f05ead36a /openbsc/src/osmo-bsc_nat/bsc_nat_vty.c | |
parent | 5d7ad4738640b2cbae9e00e8078bb55d488105d8 (diff) |
bsc: change bsc_vty_init to take logging categories as parameter
This change is required to finish the integration of the VTY and
the per-application logging categories that provides:
"vty: integration with logging framework"
in libosmocore.
It has been tested with osmo-nitb. The other just compiled tested.
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat_vty.c')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat_vty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c index 786db2dc2..814d9aaa5 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c @@ -29,6 +29,7 @@ #include <osmocore/talloc.h> #include <osmocore/rate_ctr.h> #include <osmocore/utils.h> +#include <osmocom/vty/logging.h> #include <osmocom/sccp/sccp.h> @@ -782,7 +783,8 @@ int bsc_nat_vty_init(struct bsc_nat *nat) /* called by the telnet interface... we have our own init above */ -int bsc_vty_init(void) +int bsc_vty_init(const struct log_info *cat) { + logging_vty_add_cmds(cat); return 0; } |