From dd540862daef277ea70c1fbe95b2f9892d106602 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Nov 2011 22:25:40 +0100 Subject: add some simplistic type / range annotations for records in headers --- include/sccp.hrl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/sccp.hrl') diff --git a/include/sccp.hrl b/include/sccp.hrl index 83386cc..4201ce0 100644 --- a/include/sccp.hrl +++ b/include/sccp.hrl @@ -122,20 +122,22 @@ -define(SCCP_SSN_MAP_SGSN, 149). -define(SCCP_SSN_MAP_GGSN, 150). +-type sccp_msg_type() :: 0..255. +-type sccp_proto_class() :: 0..3. % a single parsed SCCP message -record(sccp_msg, { - msg_type, + msg_type :: sccp_msg_type(), parameters }). -record(global_title, { - gti, - nature_of_addr_ind, + gti :: 0..15, + nature_of_addr_ind :: 0..255, trans_type, - encoding, - numbering_plan, + encoding :: 0..15, + numbering_plan:: 0..15, phone_number }). -- cgit v1.2.3