RSPRO: Add two more ResoltCodes

Change-Id: I1b665b501106a4aac90e642c11f4123e6a77868d
changes/97/13497/1
Harald Welte 4 years ago
parent a844bb07d8
commit 71752ddd2b
  1. 2
      asn1/RSPRO.asn
  2. 2
      include/osmocom/rspro/ResultCode.h
  3. 16
      src/rspro/ResultCode.c

@ -89,6 +89,8 @@ ResultCode ::= ENUMERATED {
illegalClientId (1),
illegalBankId (2),
illegalSlotId (3),
unsupportedProtocolVersion (4),
unknownSlotmap (5),
-- no card is present in given slot
cardNotPresent (100),

@ -23,6 +23,8 @@ typedef enum ResultCode {
ResultCode_illegalClientId = 1,
ResultCode_illegalBankId = 2,
ResultCode_illegalSlotId = 3,
ResultCode_unsupportedProtocolVersion = 4,
ResultCode_unknownSlotmap = 5,
ResultCode_cardNotPresent = 100,
ResultCode_cardUnresponsive = 101,
ResultCode_cardTransmissionError = 102

@ -87,26 +87,30 @@ static const asn_INTEGER_enum_map_t asn_MAP_ResultCode_value2enum_1[] = {
{ 1, 15, "illegalClientId" },
{ 2, 13, "illegalBankId" },
{ 3, 13, "illegalSlotId" },
{ 4, 26, "unsupportedProtocolVersion" },
{ 5, 14, "unknownSlotmap" },
{ 100, 14, "cardNotPresent" },
{ 101, 16, "cardUnresponsive" },
{ 102, 21, "cardTransmissionError" }
/* This list is extensible */
};
static const unsigned int asn_MAP_ResultCode_enum2value_1[] = {
4, /* cardNotPresent(100) */
6, /* cardTransmissionError(102) */
5, /* cardUnresponsive(101) */
6, /* cardNotPresent(100) */
8, /* cardTransmissionError(102) */
7, /* cardUnresponsive(101) */
2, /* illegalBankId(2) */
1, /* illegalClientId(1) */
3, /* illegalSlotId(3) */
0 /* ok(0) */
0, /* ok(0) */
5, /* unknownSlotmap(5) */
4 /* unsupportedProtocolVersion(4) */
/* This list is extensible */
};
static const asn_INTEGER_specifics_t asn_SPC_ResultCode_specs_1 = {
asn_MAP_ResultCode_value2enum_1, /* "tag" => N; sorted by tag */
asn_MAP_ResultCode_enum2value_1, /* N => "tag"; sorted by N */
7, /* Number of elements in the maps */
8, /* Extensions before this member */
9, /* Number of elements in the maps */
10, /* Extensions before this member */
1, /* Strict enumeration */
0, /* Native long size */
0

Loading…
Cancel
Save