summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-07-27 14:53:44 +0800
committerHarald Welte <laforge@gnumonks.org>2013-07-27 16:00:07 +0800
commite861700c3eeb5ef8c3d903b8d903ef79ed25de38 (patch)
tree63a85410b87692e32a1792d2086cc510a6044c39
parent317cee0464ad2ace81f9e6311f2d6948ad11b2f6 (diff)
osmo_ss7.hrl: add type annotations
-rw-r--r--include/osmo_ss7.hrl18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/osmo_ss7.hrl b/include/osmo_ss7.hrl
index 587e9ec..80dcb3e 100644
--- a/include/osmo_ss7.hrl
+++ b/include/osmo_ss7.hrl
@@ -1,18 +1,20 @@
+-type role() :: asp | sg.
+
-record(sigtran_peer, {
ip,
- port,
+ port :: 1..65535,
point_code
}).
-record(sigtran_link, {
- type,
- name,
- linkset_name,
- sls,
- local,
- remote,
- role
+ type :: atom(),
+ name :: string(),
+ linkset_name :: string(),
+ sls :: non_neg_integer(),
+ local :: record(sigtran_peer),
+ remote :: record(sigtran_peer),
+ role :: role()
}).