osmo_ss7.hrl: add type annotations

This commit is contained in:
Harald Welte 2013-07-27 14:53:44 +08:00
parent 317cee0464
commit e861700c3e
1 changed files with 10 additions and 8 deletions

View File

@ -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()
}).