2010-04-05 11:26:09 +00:00
|
|
|
#ifndef _L23_APP_H
|
|
|
|
#define _L23_APP_H
|
|
|
|
|
2010-12-27 13:51:13 +00:00
|
|
|
struct option;
|
|
|
|
|
2010-12-26 20:29:51 +00:00
|
|
|
/* Options supported by the l23 app */
|
|
|
|
enum {
|
|
|
|
L23_OPT_SAP = 1,
|
|
|
|
L23_OPT_ARFCN = 2,
|
|
|
|
L23_OPT_TAP = 4,
|
|
|
|
L23_OPT_VTY = 8,
|
|
|
|
L23_OPT_DBG = 16,
|
2012-03-01 21:45:51 +00:00
|
|
|
L23_OPT_VTYIP = 32,
|
2010-12-26 20:29:51 +00:00
|
|
|
};
|
|
|
|
|
2010-04-05 11:26:09 +00:00
|
|
|
/* initialization, called once when starting the app, before entering
|
|
|
|
* select loop */
|
2010-04-25 16:28:24 +00:00
|
|
|
extern int l23_app_init(struct osmocom_ms *ms);
|
2023-01-12 12:00:09 +00:00
|
|
|
extern int (*l23_app_work)(struct osmocom_ms *ms);
|
|
|
|
extern int (*l23_app_exit)(struct osmocom_ms *ms);
|
2010-04-05 11:26:09 +00:00
|
|
|
|
2010-12-26 18:15:48 +00:00
|
|
|
/* configuration options */
|
|
|
|
struct l23_app_info {
|
|
|
|
const char *copyright;
|
|
|
|
const char *contribution;
|
2010-12-26 20:29:51 +00:00
|
|
|
|
2010-12-27 07:58:57 +00:00
|
|
|
char *getopt_string;
|
2010-12-26 20:29:51 +00:00
|
|
|
int (*cfg_supported)();
|
2010-12-27 07:58:57 +00:00
|
|
|
int (*cfg_print_help)();
|
2010-12-27 13:51:13 +00:00
|
|
|
int (*cfg_getopt_opt)(struct option **options);
|
2010-12-27 07:58:57 +00:00
|
|
|
int (*cfg_handle_opt)(int c,const char *optarg);
|
2010-12-26 18:15:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct l23_app_info *l23_app_info();
|
|
|
|
|
2010-04-05 11:26:09 +00:00
|
|
|
#endif /* _L23_APP_H */
|