summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/common
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther2010-12-27 08:58:57 +0100
committerHolger Hans Peter Freyther2010-12-27 19:01:37 +0100
commit63c0e6d1996733d107434585fbef5e888b3075ed (patch)
tree37973849e32a30cdd224d1873944212408f3913d /src/host/layer23/include/osmocom/bb/common
parentlayer23: Not every application supports every option add enum (diff)
downloadosmocom-63c0e6d1996733d107434585fbef5e888b3075ed.tar.gz
osmocom-63c0e6d1996733d107434585fbef5e888b3075ed.tar.xz
osmocom-63c0e6d1996733d107434585fbef5e888b3075ed.zip
layer23: Make the logfile configurable with cell_log
Be able to add extra (short) options from the 'applet' to the main application. Use this to print the help mentioning app specific options, pass the getopt string and handle the command line parsing for it. Change cell_log to keep the logname in the app_cell_log.c and then access it from the cell_log.c implementation.
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/l23_app.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/l23_app.h b/src/host/layer23/include/osmocom/bb/common/l23_app.h
index 46141e1..fcfd4bd 100644
--- a/src/host/layer23/include/osmocom/bb/common/l23_app.h
+++ b/src/host/layer23/include/osmocom/bb/common/l23_app.h
@@ -21,7 +21,10 @@ struct l23_app_info {
const char *copyright;
const char *contribution;
+ char *getopt_string;
int (*cfg_supported)();
+ int (*cfg_print_help)();
+ int (*cfg_handle_opt)(int c,const char *optarg);
};
extern struct l23_app_info *l23_app_info();