summaryrefslogtreecommitdiffstats
path: root/include/osmo_util.hrl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-11-04 22:25:40 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-04 22:25:40 +0100
commitdd540862daef277ea70c1fbe95b2f9892d106602 (patch)
tree82dbe071a9dd88695538e1d1338a7f99920ba082 /include/osmo_util.hrl
parentdbe1c884894a657be6f5a8826148937e005152c2 (diff)
add some simplistic type / range annotations for records in headers
Diffstat (limited to 'include/osmo_util.hrl')
-rw-r--r--include/osmo_util.hrl6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/osmo_util.hrl b/include/osmo_util.hrl
index e81d24e..f537b2c 100644
--- a/include/osmo_util.hrl
+++ b/include/osmo_util.hrl
@@ -1,8 +1,10 @@
+-type prim_spec_name() :: 'request' | 'response' | 'confirm' | 'indication'.
+
% a primitive how it is used inside the SCCP stack and to the user
-record(primitive, {
subsystem,
gen_name,
- spec_name,
- parameters
+ spec_name :: prim_spec_name(),
+ parameters :: list()
}).