aboutsummaryrefslogtreecommitdiffstats
path: root/src/bnetz/bnetz.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-07-19 20:33:48 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2016-07-24 12:31:06 +0200
commit5bbbe11666720511a1079c042da12baa350737d9 (patch)
treec4c32631c364b67de546531f571674ee5b185cfa /src/bnetz/bnetz.h
parentce86f62b1188eb3ffd206ee7d1205eee92efa6d7 (diff)
B-Netz: Rework on dialing start digit: New unknown type added
Diffstat (limited to 'src/bnetz/bnetz.h')
-rw-r--r--src/bnetz/bnetz.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bnetz/bnetz.h b/src/bnetz/bnetz.h
index 0ecfec6..62bd18d 100644
--- a/src/bnetz/bnetz.h
+++ b/src/bnetz/bnetz.h
@@ -31,6 +31,13 @@ enum dial_mode {
DIAL_MODE_NUMBER2,
};
+/* current dialing type (metering support) */
+enum dial_type {
+ DIAL_TYPE_NOMETER,
+ DIAL_TYPE_METER,
+ DIAL_TYPE_UNKNOWN,
+};
+
/* current state of paging mobile station */
enum page_mode {
PAGE_MODE_NUMBER,
@@ -53,7 +60,7 @@ typedef struct bnetz {
/* all bnetz states */
enum bnetz_state state; /* main state of sender */
enum dial_mode dial_mode; /* sub state while dialing is received */
- int dial_metering; /* set, if phone supports metering pulses */
+ enum dial_type dial_type; /* defines if mobile supports metering pulses */
char dial_number[14]; /* dial string received */
int dial_pos; /* current position while receiving digits */
char station_id[6]; /* current station ID */