From 738f9d892aa99639c9148643923505f748e72937 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 26 Dec 2010 21:29:51 +0100 Subject: layer23: Not every application supports every option add enum Allow each application to specify the options it is supporting. --- src/host/layer23/include/osmocom/bb/common/l23_app.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/host/layer23/include/osmocom/bb/common/l23_app.h') 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 8a248843..46141e13 100644 --- a/src/host/layer23/include/osmocom/bb/common/l23_app.h +++ b/src/host/layer23/include/osmocom/bb/common/l23_app.h @@ -1,6 +1,15 @@ #ifndef _L23_APP_H #define _L23_APP_H +/* 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, +}; + /* initialization, called once when starting the app, before entering * select loop */ extern int l23_app_init(struct osmocom_ms *ms); @@ -11,6 +20,8 @@ extern int (*l23_app_exit) (struct osmocom_ms *ms); struct l23_app_info { const char *copyright; const char *contribution; + + int (*cfg_supported)(); }; extern struct l23_app_info *l23_app_info(); -- cgit v1.2.3