From 63c0e6d1996733d107434585fbef5e888b3075ed Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 27 Dec 2010 08:58:57 +0100 Subject: 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. --- src/host/layer23/include/osmocom/bb/common/l23_app.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/host/layer23/include/osmocom/bb/common') 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(); -- cgit v1.2.3