diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 08:58:57 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-27 19:01:37 +0100 |
commit | 63c0e6d1996733d107434585fbef5e888b3075ed (patch) | |
tree | 37973849e32a30cdd224d1873944212408f3913d /src/host/layer23/include | |
parent | 738f9d892aa99639c9148643923505f748e72937 (diff) |
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')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/l23_app.h | 3 |
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 46141e13..fcfd4bdf 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(); |