diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 19:15:48 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 19:01:37 +0100 |
commit | 2934d0a4f4391b45e4bdb9adcbc1931b1323b986 (patch) | |
tree | c501997243ac52400a1f977c9faafff879aa00ad /src/host/layer23/src/misc | |
parent | 000066110ade5227822532989b36f11c004b193f (diff) |
layer23: Create an l23_app_info for various information and cb's
Make it possible that each l23 app can inject the copyright string,
also prepare to have callbacks for the config handling and other
places. This will be useful to add app specific config options.
Diffstat (limited to 'src/host/layer23/src/misc')
-rw-r--r-- | src/host/layer23/src/misc/app_bcch_scan.c | 11 | ||||
-rw-r--r-- | src/host/layer23/src/misc/app_cbch_sniff.c | 11 | ||||
-rw-r--r-- | src/host/layer23/src/misc/app_cell_log.c | 7 | ||||
-rw-r--r-- | src/host/layer23/src/misc/app_echo_test.c | 11 | ||||
-rw-r--r-- | src/host/layer23/src/misc/app_phone.c | 11 |
5 files changed, 51 insertions, 0 deletions
diff --git a/src/host/layer23/src/misc/app_bcch_scan.c b/src/host/layer23/src/misc/app_bcch_scan.c index 326623f4..cce22b3b 100644 --- a/src/host/layer23/src/misc/app_bcch_scan.c +++ b/src/host/layer23/src/misc/app_bcch_scan.c @@ -25,6 +25,7 @@ #include <osmocom/bb/common/l1ctl.h> #include <osmocom/bb/common/lapdm.h> #include <osmocom/bb/common/logging.h> +#include <osmocom/bb/common/l23_app.h> #include <osmocom/bb/misc/layer3.h> #include <osmocore/msgb.h> @@ -55,3 +56,13 @@ int l23_app_init(struct osmocom_ms *ms) l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); return register_signal_handler(SS_L1CTL, &signal_cb, NULL); } + +static struct l23_app_info info = { + .copyright = "Copyright (C) 2010 Harald Welte <laforge@gnumonks.org>\n", + .contribution = "Contributions by Holger Hans Peter Freyther\n", +}; + +struct l23_app_info *l23_app_info() +{ + return &info; +} diff --git a/src/host/layer23/src/misc/app_cbch_sniff.c b/src/host/layer23/src/misc/app_cbch_sniff.c index 19a9aced..9e2d1a99 100644 --- a/src/host/layer23/src/misc/app_cbch_sniff.c +++ b/src/host/layer23/src/misc/app_cbch_sniff.c @@ -26,6 +26,7 @@ #include <osmocom/bb/common/l1ctl.h> #include <osmocom/bb/common/lapdm.h> #include <osmocom/bb/common/logging.h> +#include <osmocom/bb/common/l23_app.h> #include <osmocom/bb/misc/layer3.h> #include <osmocore/msgb.h> @@ -186,3 +187,13 @@ int l23_app_init(struct osmocom_ms *ms) l1ctl_tx_dm_rel_req(ms); return register_signal_handler(SS_L1CTL, &signal_cb, NULL); } + +static struct l23_app_info info = { + .copyright = "Copyright (C) 2010 Harald Welte <laforge@gnumonks.org>\n", + .contribution = "Contributions by Holger Hans Peter Freyther\n", +}; + +struct l23_app_info *l23_app_info() +{ + return &info; +} diff --git a/src/host/layer23/src/misc/app_cell_log.c b/src/host/layer23/src/misc/app_cell_log.c index fcc2b1fd..1ab64f51 100644 --- a/src/host/layer23/src/misc/app_cell_log.c +++ b/src/host/layer23/src/misc/app_cell_log.c @@ -72,4 +72,11 @@ int l23_app_init(struct osmocom_ms *ms) return 0; } +static struct l23_app_info info = { + .copyright = "Copyright (C) 2010 Andreas Eversberg\n", +}; +struct l23_app_info *l23_app_info() +{ + return &info; +} diff --git a/src/host/layer23/src/misc/app_echo_test.c b/src/host/layer23/src/misc/app_echo_test.c index 56ab6740..c9b18958 100644 --- a/src/host/layer23/src/misc/app_echo_test.c +++ b/src/host/layer23/src/misc/app_echo_test.c @@ -25,6 +25,7 @@ #include <osmocom/bb/common/l1ctl.h> #include <osmocom/bb/common/lapdm.h> #include <osmocom/bb/common/logging.h> +#include <osmocom/bb/common/l23_app.h> #include <osmocom/bb/misc/layer3.h> #include <osmocore/msgb.h> @@ -53,3 +54,13 @@ int l23_app_init(struct osmocom_ms *ms) return 0; } + +static struct l23_app_info info = { + .copyright = "Copyright (C) 2010 Harald Welte <laforge@gnumonks.org>\n", + .contribution = "Contributions by Holger Hans Peter Freyther\n", +}; + +struct l23_app_info *l23_app_info() +{ + return &info; +} diff --git a/src/host/layer23/src/misc/app_phone.c b/src/host/layer23/src/misc/app_phone.c index 6b2c9281..85d0da9d 100644 --- a/src/host/layer23/src/misc/app_phone.c +++ b/src/host/layer23/src/misc/app_phone.c @@ -25,6 +25,7 @@ #include <osmocom/bb/common/l1ctl.h> #include <osmocom/bb/common/lapdm.h> #include <osmocom/bb/common/logging.h> +#include <osmocom/bb/common/l23_app.h> #include <osmocom/bb/misc/layer3.h> #include <osmocore/msgb.h> @@ -59,3 +60,13 @@ int l23_app_init(struct osmocom_ms *ms) l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL); return layer3_init(ms); } + +static struct l23_app_info info = { + .copyright = "Copyright (C) 2010 Harald Welte <laforge@gnumonks.org>\n", + .contribution = "Contributions by Holger Hans Peter Freyther\n", +}; + +struct l23_app_info *l23_app_info() +{ + return &info; +} |