*
*/
-#ifdef ANSI
S16 cmPkDateTime
(
DateTime *dateTime, /* date and time */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkDateTime(dateTime, mBuf)
-DateTime *dateTime; /* date and time */
-Buffer *mBuf; /* message buffer */
-#endif
{
/*-- cm_gen_c_001.main_36 - added for micro seconds --*/
#ifdef SS_DATETIME_USEC
- CMCHKPK(oduUnpackUInt32, dateTime->usec, mBuf);
+ CMCHKPK(oduPackUInt32, dateTime->usec, mBuf);
#endif /*-- SS_DATETIME_USEC --*/
- CMCHKPK(oduUnpackUInt8, dateTime->tenths, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->sec, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->min, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->hour, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->year, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->day, mBuf);
- CMCHKPK(oduUnpackUInt8, dateTime->month, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->tenths, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->sec, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->min, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->hour, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->year, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->day, mBuf);
+ CMCHKPK(oduPackUInt8, dateTime->month, mBuf);
return ROK;
} /* end of cmPkDateTime */
*
*/
-#ifdef ANSI
S16 cmPkDuration
(
Duration *duration, /* duration */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkDuration(duration, mBuf)
-Duration *duration; /* duration */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKPK(oduUnpackUInt8, duration->tenths, mBuf);
- CMCHKPK(oduUnpackUInt8, duration->secs, mBuf);
- CMCHKPK(oduUnpackUInt8, duration->mins, mBuf);
- CMCHKPK(oduUnpackUInt8, duration->hours, mBuf);
- CMCHKPK(oduUnpackUInt8, duration->days, mBuf);
+ CMCHKPK(oduPackUInt8, duration->tenths, mBuf);
+ CMCHKPK(oduPackUInt8, duration->secs, mBuf);
+ CMCHKPK(oduPackUInt8, duration->mins, mBuf);
+ CMCHKPK(oduPackUInt8, duration->hours, mBuf);
+ CMCHKPK(oduPackUInt8, duration->days, mBuf);
return ROK;
} /* end of cmPkDuration */
*
*/
-#ifdef ANSI
S16 oduPackPointer
(
PTR ptr, /* pointer */
Buffer *mBuf /* message buffer */
)
-#else
-S16 oduPackPointer(ptr, mBuf)
-PTR ptr; /* pointer */
-Buffer *mBuf; /* message buffer */
-#endif
{
Data pkArray[PTRSIZE]; /* array for packing */
S16 ret; /* return code */
*
*/
-#ifdef ANSI
S16 cmPkEntityId
(
EntityId *entityId, /* entity id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkEntityId(entityId, mBuf)
-EntityId *entityId; /* entity id */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKPK(cmPkInst, entityId->inst, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkElmntId
(
ElmntId *elmntId, /* element id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkElmntId(elmntId, mBuf)
-ElmntId *elmntId; /* element id */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKPK(cmPkElmntInst3, elmntId->elmntInst3, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkMemoryId
(
MemoryId *memoryId, /* memoryId */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkMemoryId(memoryId, mBuf)
-MemoryId *memoryId; /* memoryId */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKPK(cmPkPool, memoryId->pool, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkSystemId
(
SystemId *systemId, /* system id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkSystemId(systemId, mBuf)
-SystemId *systemId; /* system id */
-Buffer *mBuf; /* message buffer */
-#endif
{
Txt *p; /* part number string */
*
*/
-#ifdef ANSI
S16 cmPkProtAddr
(
ProtAddr *pAddr, /* protocol address */
Buffer *mBuf /* buffer */
)
-#else
-S16 cmPkProtAddr(pAddr, mBuf)
-ProtAddr *pAddr; /* protocol address */
-Buffer *mBuf; /* buffer */
-#endif
{
uint8_t j; /* Index */
#ifdef CM_ARI2
- CMCHKPK(oduUnpackUInt32, pAddr->autoSysId, mBuf);
+ CMCHKPK(oduPackUInt32, pAddr->autoSysId, mBuf);
CMCHKPK(oduPackBool, pAddr->autoSysIdPres, mBuf);
#endif /* CM_ARI2 */
for (j = pAddr->len; j; j--)
- CMCHKPK(oduUnpackUInt8, pAddr->address[j - 1], mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->address[j - 1], mBuf);
- CMCHKPK(oduUnpackUInt8, pAddr->preLen, mBuf);
- CMCHKPK(oduUnpackUInt8, pAddr->len, mBuf);
- CMCHKPK(oduUnpackUInt16, pAddr->protType, mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->preLen, mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->len, mBuf);
+ CMCHKPK(oduPackUInt16, pAddr->protType, mBuf);
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkProtAddrTbl
(
ProtAddrTbl *protAddr, /* protocol address table */
Buffer *mBuf /* buffer */
)
-#else
-S16 cmPkProtAddrTbl(protAddr, mBuf)
-ProtAddrTbl *protAddr; /* protocol address table */
-Buffer *mBuf; /* buffer */
-#endif
{
uint8_t i; /* index */
uint8_t j; /* Index */
pAddr = &(protAddr->addr[i - 1]);
#ifdef CM_ARI2
- CMCHKPK(oduUnpackUInt32, pAddr->autoSysId, mBuf);
+ CMCHKPK(oduPackUInt32, pAddr->autoSysId, mBuf);
CMCHKPK(oduPackBool, pAddr->autoSysIdPres, mBuf);
#endif /* CM_ARI2 */
for (j = pAddr->len; j; j--)
- CMCHKPK(oduUnpackUInt8, pAddr->address[j - 1], mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->address[j - 1], mBuf);
- CMCHKPK(oduUnpackUInt8, pAddr->preLen, mBuf);
- CMCHKPK(oduUnpackUInt8, pAddr->len, mBuf);
- CMCHKPK(oduUnpackUInt16, pAddr->protType, mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->preLen, mBuf);
+ CMCHKPK(oduPackUInt8, pAddr->len, mBuf);
+ CMCHKPK(oduPackUInt16, pAddr->protType, mBuf);
}
- CMCHKPK(oduUnpackUInt8, protAddr->count, mBuf);
+ CMCHKPK(oduPackUInt8, protAddr->count, mBuf);
return ROK;
} /* end of cmPkProtAddrTbl */
*
*/
-#ifdef ANSI
S16 cmPkAddrs
(
Addrs *addrs, /* address */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkAddrs(addrs, mBuf)
-Addrs *addrs; /* address */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint8_t i; /* loop counter */
for (i = addrs->length; i; i--)
{
- CMCHKPK(oduUnpackUInt8, addrs->strg[i-1], mBuf);
+ CMCHKPK(oduPackUInt8, addrs->strg[i-1], mBuf);
}
- CMCHKPK(oduUnpackUInt8, addrs->length, mBuf);
+ CMCHKPK(oduPackUInt8, addrs->length, mBuf);
return ROK;
} /* end of cmPkAddrs */
*
*/
-#ifdef ANSI
S16 cmPkShrtAddrs
(
ShrtAddrs *addrs, /* address */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkShrtAddrs(addrs, mBuf)
-ShrtAddrs *addrs; /* address */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint8_t i; /* loop counter */
for (i = addrs->length; i; i--)
{
- CMCHKPK(oduUnpackUInt8, addrs->strg[i-1], mBuf);
+ CMCHKPK(oduPackUInt8, addrs->strg[i-1], mBuf);
}
- CMCHKPK(oduUnpackUInt8, addrs->length, mBuf);
+ CMCHKPK(oduPackUInt8, addrs->length, mBuf);
return ROK;
} /* end of cmPkShrtAddrs */
*
*/
-#ifdef ANSI
S16 cmPkAddrMask
(
uint8_t *mask, /* pointer to address mask array */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkAddrMask(mask, mBuf)
-uint8_t *mask; /* pointer to address mask array */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i; /* counter */
/* pack address mask */
for (i = (ADRLEN - 1); i >= 0; i--)
{
- CMCHKPK(oduUnpackUInt8, mask[i], mBuf);
+ CMCHKPK(oduPackUInt8, mask[i], mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkBndCfg
(
BndCfg *bndCfg, /* bndCfg */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkBndCfg(bndCfg, mBuf)
-BndCfg *bndCfg; /* bndCfg */
-Buffer *mBuf; /* message buffer */
-#endif
{
Txt *p; /* temporary */
CMCHKPK(cmPkRegion, bndCfg->region, mBuf);
CMCHKPK(cmPkInst, bndCfg->inst, mBuf);
CMCHKPK(cmPkEnt, bndCfg->ent, mBuf);
- CMCHKPK(oduUnpackUInt8, bndCfg->wdw, mBuf);
- CMCHKPK(oduUnpackUInt8, bndCfg->flcTyp, mBuf);
- CMCHKPK(oduUnpackUInt8, bndCfg->bufOwnshp, mBuf);
+ CMCHKPK(oduPackUInt8, bndCfg->wdw, mBuf);
+ CMCHKPK(oduPackUInt8, bndCfg->flcTyp, mBuf);
+ CMCHKPK(oduPackUInt8, bndCfg->bufOwnshp, mBuf);
for (p = bndCfg->usrId; *p; p++);
for (; p != bndCfg->usrId; p--);
* File: cm_gen.c
*
*/
-#ifdef ANSI
S16 cmPkPst
(
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmPkPst(pst, mBuf)
-Pst *pst;
-Buffer *mBuf;
-#endif
{
CMCHKPK(cmPkEvent, pst->event, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkElmtHdr
(
ElmtHdr *m, /* element header */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkElmtHdr(m, mBuf)
-ElmtHdr *m; /* element header */
-Buffer *mBuf; /* message buffer */
-#endif
{
#if (LCAMT || ATM_BISUP)
- CMCHKPK(oduUnpackUInt16, m->compInd, mBuf);
+ CMCHKPK(oduPackUInt16, m->compInd, mBuf);
#endif /* LCAMT || ATM_BISUP */
#if (LCAMT || ATM_BISUP)
/* Pack action indicator field */
if (m->pres)
{
- CMCHKPK(oduUnpackUInt8, m->actnInd, mBuf);
+ CMCHKPK(oduPackUInt8, m->actnInd, mBuf);
}
#endif
*
*/
-#ifdef ANSI
S16 cmPkTknUInt8
(
TknUInt8 *tknUInt8, /* token uint8_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknUInt8(tknUInt8, mBuf)
-TknUInt8 *tknUInt8; /* token uint8_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknUInt8->pres)
{
/* Value */
- CMCHKPK(oduUnpackUInt8, tknUInt8->val, mBuf);
+ CMCHKPK(oduPackUInt8, tknUInt8->val, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknUInt8->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknUInt8->pres, mBuf);
return ROK;
} /* end of cmPkTknUInt8 */
*
*/
-#ifdef ANSI
S16 cmPkTknS8
(
TknS8 *tknS8, /* token S8 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknS8(tknS8, mBuf)
-TknS8 *tknS8; /* token S8 */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknS8->pres)
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknS8->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknS8->pres, mBuf);
return ROK;
} /* end of cmPkTknS8 */
*
*/
-#ifdef ANSI
S16 cmPkTknUInt16
(
TknUInt16 *tknUInt16, /* token uint16_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknUInt16(tknUInt16, mBuf)
-TknUInt16 *tknUInt16; /* token uint16_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknUInt16->pres)
{
/* Value */
- CMCHKPK(oduUnpackUInt16, tknUInt16->val, mBuf);
+ CMCHKPK(oduPackUInt16, tknUInt16->val, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknUInt16->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknUInt16->pres, mBuf);
return ROK;
} /* end of cmPkTknUInt16 */
*
*/
-#ifdef ANSI
S16 cmPkTknUInt32
(
TknUInt32 *tknUInt32, /* token uint32_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknUInt32(tknUInt32, mBuf)
-TknUInt32 *tknUInt32; /* token uint32_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknUInt32->pres)
{
/* Value */
- CMCHKPK(oduUnpackUInt32, tknUInt32->val, mBuf);
+ CMCHKPK(oduPackUInt32, tknUInt32->val, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknUInt32->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknUInt32->pres, mBuf);
return ROK;
} /* end of cmPkTknUInt32 */
*
*/
-#ifdef ANSI
S16 cmPkTknStr
(
TknStr *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr(tknStr, mBuf)
-TknStr *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Value */
for (i = 0; i < (S16) tknStr->len; i++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[i], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[i], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStr */
*
*/
-#ifdef ANSI
S16 cmPkTknStrM
(
TknStrM *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrM(tknStr, mBuf)
-TknStrM *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Value */
for (i = 0; i < (S16) tknStr->len; i++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[i], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[i], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrM */
*
*/
-#ifdef ANSI
S16 cmPkTknStrS
(
TknStrS *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrS(tknStr, mBuf)
-TknStrS *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Value */
for (i = 0; i < (S16) tknStr->len; i++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[i], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[i], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrS */
*
*/
-#ifdef ANSI
S16 cmPkTknStrE
(
TknStrE *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrE(tknStr, mBuf)
-TknStrE *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Value */
for (i = 0; i < (S16) tknStr->len; i++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[i], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[i], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrE */
*
*/
-#ifdef ANSI
S16 cmPkPnNodeId
(
PnNodeId *src, /* source PNNI Node Id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkPnNodeId (src, mBuf)
-PnNodeId *src; /* source PNNI Node Id */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i;
for (i = PN_NODEID_LEN - 1; i >= 0; i--)
{
- CMCHKPK(oduUnpackUInt8, src->id[i], mBuf);
+ CMCHKPK(oduPackUInt8, src->id[i], mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkTknStr4
(
TknStr4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr4(tknStr, mBuf)
-TknStr4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr12
(
TknStr12 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr12(tknStr, mBuf)
-TknStr12 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr32
(
TknStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr32(tknStr, mBuf)
-TknStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr64
(
TknStr64 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr64(tknStr, mBuf)
-TknStr64 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr132
(
TknStr132 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr132(tknStr, mBuf)
-TknStr132 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr256
(
TknStr256 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr256(tknStr, mBuf)
-TknStr256 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknOid
(
TknOid *tknOid, /* Object Identifier token */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknOid(tknOid, mBuf)
-TknOid *tknOid; /* Object Identifier token */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint16_t i;
/* cm_gen_c_001.main_33: changes for TknOid value from uint16_t to uint32_t
* with compilation flag TKNOID_UINT16 */
#ifndef TKNOID_UINT16
- CMCHKPK(oduUnpackUInt32, tknOid->val[i], mBuf);
+ CMCHKPK(oduPackUInt32, tknOid->val[i], mBuf);
#else
- CMCHKPK(oduUnpackUInt16, tknOid->val[i], mBuf);
+ CMCHKPK(oduPackUInt16, tknOid->val[i], mBuf);
#endif /* !TKNOID_UINT16 */
}
/* Pack the length */
- CMCHKPK(oduUnpackUInt8, tknOid->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknOid->len, mBuf);
}
/* Pack the token header */
- CMCHKPK(oduUnpackUInt8, tknOid->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknOid->pres, mBuf);
return ROK;
} /* end of cmPkTknOid */
*
*/
-#ifdef ANSI
S16 cmPkTknS32
(
TknS32 *tknS32, /* token S32 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknS32(tknS32, mBuf)
-TknS32 *tknS32; /* token S32 */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknS32->pres)
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknS32->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknS32->pres, mBuf);
return ROK;
} /* end of cmPkTknS32 */
*
*/
-#ifdef ANSI
S16 cmPkHeader
(
Header *header, /* header */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkHeader(header, mBuf)
-Header *header; /* header */
-Buffer *mBuf; /* message buffer */
-#endif
{
#ifdef LMINT3
#endif /* LMINT3 */
CMCHKPK(cmPkElmntId, &header->elmId, mBuf);
CMCHKPK(cmPkEntityId, &header->entId, mBuf);
- CMCHKPK(oduUnpackUInt16, header->seqNmb, mBuf);
- CMCHKPK(oduUnpackUInt8, header->version, mBuf);
- CMCHKPK(oduUnpackUInt8, header->msgType, mBuf);
- CMCHKPK(oduUnpackUInt16, header->msgLen, mBuf);
+ CMCHKPK(oduPackUInt16, header->seqNmb, mBuf);
+ CMCHKPK(oduPackUInt8, header->version, mBuf);
+ CMCHKPK(oduPackUInt8, header->msgType, mBuf);
+ CMCHKPK(oduPackUInt16, header->msgLen, mBuf);
return ROK;
} /* end of cmPkHeader */
*
*/
-#ifdef ANSI
S16 cmPkCmStatus
(
CmStatus *sta, /* status structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkCmStatus(sta, mBuf)
-CmStatus *sta; /* status structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKPK(oduUnpackUInt16, sta->reason, mBuf);
- CMCHKPK(oduUnpackUInt16, sta->status, mBuf);
+ CMCHKPK(oduPackUInt16, sta->reason, mBuf);
+ CMCHKPK(oduPackUInt16, sta->status, mBuf);
return ROK;
} /* end of cmPkCmStatus */
*
*/
-#ifdef ANSI
S16 cmPkCmAlarm
(
CmAlarm *alarm, /* alarm structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkCmAlarm(alarm, mBuf)
-CmAlarm *alarm; /* alarm structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKPK(oduUnpackUInt16, alarm->cause, mBuf);
- CMCHKPK(oduUnpackUInt16, alarm->event, mBuf);
- CMCHKPK(oduUnpackUInt16, alarm->category, mBuf);
+ CMCHKPK(oduPackUInt16, alarm->cause, mBuf);
+ CMCHKPK(oduPackUInt16, alarm->event, mBuf);
+ CMCHKPK(oduPackUInt16, alarm->category, mBuf);
CMCHKPK(cmPkDateTime, &alarm->dt, mBuf);
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkSmCfg
(
SmCfg *smCfg, /* stack manager */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkSmCfg(smCfg, mBuf)
-SmCfg *smCfg; /* stack manager */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKPK(cmPkSelector, smCfg->selector, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTmrCfg
(
TmrCfg *tmrCfg, /* timer configuration */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTmrCfg(tmrCfg, mBuf)
-TmrCfg *tmrCfg; /* timer configuration */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKPK(oduUnpackUInt16, tmrCfg->val, mBuf);
+ CMCHKPK(oduPackUInt16, tmrCfg->val, mBuf);
CMCHKPK(oduPackBool, tmrCfg->enb, mBuf);
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkTknBuf
(
TknBuf *tknBuf, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknBuf(tknBuf, mBuf)
-TknBuf *tknBuf; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
if(tknBuf->pres)
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknBuf->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknBuf->pres, mBuf);
return ROK;
} /* end of cmPkTknBuf */
*
*/
-#ifdef ANSI
S16 cmPkIntf
(
CmIntf *intf, /* interface info */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkIntf(intf, mBuf)
-CmIntf *intf; /* interface info */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKPK(cmPkIntfId, intf->intfId, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkDateTime
(
DateTime *dateTime, /* date/time structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkDateTime(dateTime, mBuf)
-DateTime *dateTime; /* date/time structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKUNPK(oduPackUInt8, &dateTime->month, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->day, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->year, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->hour, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->min, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->sec, mBuf);
- CMCHKUNPK(oduPackUInt8, &dateTime->tenths, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->month, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->day, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->year, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->hour, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->min, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->sec, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dateTime->tenths, mBuf);
/*-- added for micro seconds --*/
#ifdef SS_DATETIME_USEC
- CMCHKUNPK(oduPackUInt32, &dateTime->usec, mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &dateTime->usec, mBuf);
#endif /*-- SS_DATETIME_USEC --*/
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkDuration
(
Duration *duration, /* duration structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkDuration(duration, mBuf)
-Duration *duration; /* duration structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKUNPK(oduPackUInt8, &duration->days, mBuf);
- CMCHKUNPK(oduPackUInt8, &duration->hours, mBuf);
- CMCHKUNPK(oduPackUInt8, &duration->mins, mBuf);
- CMCHKUNPK(oduPackUInt8, &duration->secs, mBuf);
- CMCHKUNPK(oduPackUInt8, &duration->tenths, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &duration->days, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &duration->hours, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &duration->mins, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &duration->secs, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &duration->tenths, mBuf);
return ROK;
} /* end of cmUnpkDuration */
*
*/
-#ifdef ANSI
S16 oduUnpackPointer
(
PTR *ptr, /* duration structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 oduUnpackPointer(ptr, mBuf)
-PTR *ptr; /* duration structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- uint16_t tmp16; /* temporary value */
- uint32_t tmp32; /* temporary value */
- Data unpkArray[PTRSIZE]; /* unpacking array */
- S16 ret; /* return code */
+ uint16_t tmp16 =0; /* temporary value */
+ uint32_t tmp32 =0; /* temporary value */
+ Data unpkArray[PTRSIZE]; /* unpacking array */
+ S16 ret =ROK; /* return code */
#if (defined(ALPHA) || defined(BIT_64))
- uint64_t tmp64;
+ uint64_t tmp64 =0;
#endif
*
*/
-#ifdef ANSI
S16 cmUnpkEntityId
(
EntityId *entityId, /* entity id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkEntityId(entityId, mBuf)
-EntityId *entityId; /* entity id */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkEnt, &entityId->ent, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkElmntId
(
ElmntId *elmntId, /* element id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkElmntId(elmntId, mBuf)
-ElmntId *elmntId; /* element id */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkElmnt, &elmntId->elmnt, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkMemoryId
(
MemoryId *memoryId, /* memoryId */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkMemoryId(memoryId, mBuf)
-MemoryId *memoryId; /* memoryId */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkRegion, &memoryId->region, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkSystemId
(
SystemId *systemId, /* system id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkSystemId(systemId, mBuf)
-SystemId *systemId; /* system id */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i; /* loop counter */
MsgLen len;
*
*/
-#ifdef ANSI
S16 cmUnpkProtAddr
(
ProtAddr *pAddr, /* protocol address */
Buffer *mBuf /* buffer */
)
-#else
-S16 cmUnpkProtAddr(pAddr, mBuf)
-ProtAddr *pAddr; /* protocol address table */
-Buffer *mBuf; /* buffer */
-#endif
{
uint8_t j; /* Index */
- CMCHKUNPK(oduPackUInt16, &(pAddr->protType), mBuf);
- CMCHKUNPK(oduPackUInt8, &(pAddr->len), mBuf);
- CMCHKUNPK(oduPackUInt8, &(pAddr->preLen), mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &(pAddr->protType), mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &(pAddr->len), mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &(pAddr->preLen), mBuf);
for (j =0; j < pAddr->len; j++)
- CMCHKUNPK(oduPackUInt8, &pAddr->address[j], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &pAddr->address[j], mBuf);
#ifdef CM_ARI2
CMCHKUNPK(oduUnpackBool, &(pAddr->autoSysIdPres), mBuf);
- CMCHKUNPK(oduPackUInt32, &(pAddr->autoSysId), mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &(pAddr->autoSysId), mBuf);
#endif /* CM_ARI2 */
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkProtAddrTbl
(
ProtAddrTbl *protAddr, /* protocol address table */
Buffer *mBuf /* buffer */
)
-#else
-S16 cmUnpkProtAddrTbl(protAddr, mBuf)
-ProtAddrTbl *protAddr; /* protocol address table */
-Buffer *mBuf; /* buffer */
-#endif
{
uint8_t i; /* index */
uint8_t j; /* Index */
ProtAddr *pAddr; /* Protocol Address */
- CMCHKUNPK(oduPackUInt8, &protAddr->count, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &protAddr->count, mBuf);
for (i = 0; i < protAddr->count; i++)
{
pAddr = &(protAddr->addr[i]);
- CMCHKUNPK(oduPackUInt16, &(pAddr->protType), mBuf);
- CMCHKUNPK(oduPackUInt8, &(pAddr->len), mBuf);
- CMCHKUNPK(oduPackUInt8, &(pAddr->preLen), mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &(pAddr->protType), mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &(pAddr->len), mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &(pAddr->preLen), mBuf);
for (j =0; j < pAddr->len; j++)
- CMCHKUNPK(oduPackUInt8, &pAddr->address[j], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &pAddr->address[j], mBuf);
#ifdef CM_ARI2
CMCHKUNPK(oduUnpackBool, &(pAddr->autoSysIdPres), mBuf);
- CMCHKUNPK(oduPackUInt32, &(pAddr->autoSysId), mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &(pAddr->autoSysId), mBuf);
#endif /* CM_ARI2 */
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkAddrs
(
Addrs *addrs, /* address */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkAddrs(addrs, mBuf)
-Addrs *addrs; /* address */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint8_t i; /* loop counter */
- CMCHKUNPK(oduPackUInt8, &addrs->length, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &addrs->length, mBuf);
if (addrs->length > ADRLEN)
return RFAILED;
for(i = 0; i < addrs->length; i++)
{
- CMCHKUNPK(oduPackUInt8, &addrs->strg[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &addrs->strg[i], mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkShrtAddrs
(
ShrtAddrs *addrs, /* address */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkShrtAddrs(addrs, mBuf)
-ShrtAddrs *addrs; /* address */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint8_t i; /* loop counter */
- CMCHKUNPK(oduPackUInt8, &addrs->length, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &addrs->length, mBuf);
if (addrs->length > SHRTADRLEN)
return RFAILED;
for(i = 0; i < addrs->length; i++)
{
- CMCHKUNPK(oduPackUInt8, &addrs->strg[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &addrs->strg[i], mBuf);
}
return ROK;
} /* end of cmUnpkShrtAddrs */
*
*/
-#ifdef ANSI
S16 cmUnpkAddrMask
(
uint8_t *mask, /* pointer to address mask */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkAddrMask(mask, mBuf)
-uint8_t *mask; /* pointer to address mask */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i; /* counter */
/* unpack address mask */
for (i = 0; i< ADRLEN; i++)
{
- CMCHKUNPK(oduPackUInt8, &mask[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &mask[i], mBuf);
}
return ROK;
} /* end of cmUnpkAddrMask */
*
*/
-#ifdef ANSI
S16 cmUnpkBndCfg
(
BndCfg *bndCfg, /* bndCfg */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkBndCfg(bndCfg, mBuf)
-BndCfg *bndCfg; /* bndCfg */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i; /* loop counter */
for (i = 0; bndCfg->usrId[i]; i++);
CMCHKUNPK(cmUnpkTxt, bndCfg->usrId+i, mBuf);
- CMCHKUNPK(oduPackUInt8, &bndCfg->bufOwnshp, mBuf);
- CMCHKUNPK(oduPackUInt8, &bndCfg->flcTyp, mBuf);
- CMCHKUNPK(oduPackUInt8, &bndCfg->wdw, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &bndCfg->bufOwnshp, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &bndCfg->flcTyp, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &bndCfg->wdw, mBuf);
CMCHKUNPK(cmUnpkEnt, &bndCfg->ent, mBuf);
CMCHKUNPK(cmUnpkInst, &bndCfg->inst, mBuf);
CMCHKUNPK(cmUnpkRegion, &bndCfg->region, mBuf);
* File: cm_gen.c
*
*/
-#ifdef ANSI
S16 cmUnpkPst
(
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkPst(pst, mBuf)
-Pst *pst;
-Buffer *mBuf;
-#endif
{
#ifdef TDS_ROLL_UPGRADE_SUPPORT
*
*/
-#ifdef ANSI
S16 cmUnpkElmtHdr
(
ElmtHdr *m, /* element header */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkElmtHdr(m, mBuf)
-ElmtHdr *m; /* element header */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Present */
/* Unpack action indicator field */
if (m->pres)
{
- CMCHKUNPK(oduPackUInt8, &m->actnInd, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &m->actnInd, mBuf);
}
#endif
#if (LCAMT || ATM_BISUP)
- CMCHKUNPK(oduPackUInt16, &m->compInd, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &m->compInd, mBuf);
#endif /* LCAMT || ATM_BISUP */
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkTknUInt8
(
TknUInt8 *tknUInt8, /* token uint8_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknUInt8(tknUInt8, mBuf)
-TknUInt8 *tknUInt8; /* token uint8_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknUInt8->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknUInt8->pres, mBuf);
if (tknUInt8->pres)
{
/* Value */
- CMCHKUNPK(oduPackUInt8, &tknUInt8->val, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknUInt8->val, mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkTknS8
(
TknS8 *tknS8, /* token S8 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknS8(tknS8, mBuf)
-TknS8 *tknS8; /* token S8 */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknS8->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknS8->pres, mBuf);
if (tknS8->pres)
{
*
*/
-#ifdef ANSI
S16 cmUnpkTknUInt16
(
TknUInt16 *tknUInt16, /* token uint16_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknUInt16(tknUInt16, mBuf)
-TknUInt16 *tknUInt16; /* token uint16_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknUInt16->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknUInt16->pres, mBuf);
if (tknUInt16->pres)
{
/* Value */
- CMCHKUNPK(oduPackUInt16, &tknUInt16->val, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknUInt16->val, mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkTknUInt32
(
TknUInt32 *tknUInt32, /* token uint32_t */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknUInt32(tknUInt32, mBuf)
-TknUInt32 *tknUInt32; /* token uint32_t */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknUInt32->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknUInt32->pres, mBuf);
if (tknUInt32->pres)
{
/* Value */
- CMCHKUNPK(oduPackUInt32, &tknUInt32->val, mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &tknUInt32->val, mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr
(
TknStr *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr(tknStr, mBuf)
-TknStr *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if (tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (i = (tknStr->len - 1); i >= 0; i--)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[i], mBuf);
}
}
else
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrM
(
TknStrM *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrM(tknStr, mBuf)
-TknStrM *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if (tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (i = (tknStr->len - 1); i >= 0; i--)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[i], mBuf);
}
}
else
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrS
(
TknStrS *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrS(tknStr, mBuf)
-TknStrS *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if (tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (i = (tknStr->len - 1); i >= 0; i--)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[i], mBuf);
}
}
else
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrE
(
TknStrE *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrE(tknStr, mBuf)
-TknStrE *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
Cntr i; /* counter */
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if (tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (i = (tknStr->len - 1); i >= 0; i--)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[i], mBuf);
}
}
else
*
*/
-#ifdef ANSI
S16 cmUnpkPnNodeId
(
PnNodeId *dst, /* source PNNI Node Id */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkPnNodeId (dst, mBuf)
-PnNodeId *dst; /* source PNNI Node Id */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 i;
for (i = 0; i < PN_NODEID_LEN; i++)
{
- CMCHKUNPK(oduPackUInt8, &dst->id[i], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &dst->id[i], mBuf);
}
return ROK;
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr4
(
TknStr4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr4(tknStr, mBuf)
-TknStr4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr12
(
TknStr12 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr12(tknStr, mBuf)
-TknStr12 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr32
(
TknStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr32(tknStr, mBuf)
-TknStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr64
(
TknStr64 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr64(tknStr, mBuf)
-TknStr64 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr132
(
TknStr132 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr132(tknStr, mBuf)
-TknStr132 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr256
(
TknStr256 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr256(tknStr, mBuf)
-TknStr256 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknOid
(
TknOid *tknOid, /* Object Identifier token */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknOid(tknOid, mBuf)
-TknOid *tknOid; /* Object Identifier token */
-Buffer *mBuf; /* message buffer */
-#endif
{
uint16_t i;
/* Unpack the token header */
- CMCHKUNPK(oduPackUInt8, &tknOid->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknOid->pres, mBuf);
if (tknOid->pres == TRUE)
{
/* Unpack the length */
- CMCHKUNPK(oduPackUInt8, &tknOid->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknOid->len, mBuf);
/* Pack the value */
for (i = 1; i <= (uint16_t)tknOid->len; i++)
/* cm_gen_c_001.main_33: changes for TknOid value from uint16_t to uint32_t
* with compilation flag TKNOID_UINT16 */
#ifndef TKNOID_UINT16
- CMCHKUNPK(oduPackUInt32, &tknOid->val[tknOid->len - i], mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &tknOid->val[tknOid->len - i], mBuf);
#else
- CMCHKUNPK(oduPackUInt16, &tknOid->val[tknOid->len - i], mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknOid->val[tknOid->len - i], mBuf);
#endif /* !TKNOID_UINT16 */
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknS32
(
TknS32 *tknS32, /* token S32 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknS32(tknS32, mBuf)
-TknS32 *tknS32; /* token S32 */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknS32->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknS32->pres, mBuf);
if (tknS32->pres)
{
*
*/
-#ifdef ANSI
S16 cmUnpkHeader
(
Header *header, /* header structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkHeader(header, mBuf)
-Header *header; /* header structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKUNPK(oduPackUInt16, &header->msgLen, mBuf);
- CMCHKUNPK(oduPackUInt8, &header->msgType, mBuf);
- CMCHKUNPK(oduPackUInt8, &header->version, mBuf);
- CMCHKUNPK(oduPackUInt16, &header->seqNmb, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &header->msgLen, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &header->msgType, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &header->version, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &header->seqNmb, mBuf);
CMCHKUNPK(cmUnpkEntityId, &header->entId, mBuf);
CMCHKUNPK(cmUnpkElmntId, &header->elmId, mBuf);
#ifdef LMINT3
*
*/
-#ifdef ANSI
S16 cmUnpkCmStatus
(
CmStatus *sta, /* status structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkCmStatus(sta, mBuf)
-CmStatus *sta; /* status structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
- CMCHKUNPK(oduPackUInt16, &sta->status, mBuf);
- CMCHKUNPK(oduPackUInt16, &sta->reason, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &sta->status, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &sta->reason, mBuf);
return ROK;
} /* end of cmUnpkCmStatus */
*
*/
-#ifdef ANSI
S16 cmUnpkCmAlarm
(
CmAlarm *alarm, /* alarm structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkCmAlarm(alarm, mBuf)
-CmAlarm *alarm; /* alarm structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkDateTime, &alarm->dt, mBuf);
- CMCHKUNPK(oduPackUInt16, &alarm->category, mBuf);
- CMCHKUNPK(oduPackUInt16, &alarm->event, mBuf);
- CMCHKUNPK(oduPackUInt16, &alarm->cause, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &alarm->category, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &alarm->event, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &alarm->cause, mBuf);
return ROK;
} /* end of cmUnpkCmAlarm */
*
*/
-#ifdef ANSI
S16 cmUnpkSmCfg
(
SmCfg *smCfg, /* stack manager */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkSmCfg(smCfg, mBuf)
-SmCfg *smCfg; /* stack manager */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkEnt, &smCfg->ent, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTmrCfg
(
TmrCfg *tmrCfg, /* timer configuration */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTmrCfg(tmrCfg, mBuf)
-TmrCfg *tmrCfg; /* timer configuration */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(oduUnpackBool, &tmrCfg->enb, mBuf);
- CMCHKUNPK(oduPackUInt16, &tmrCfg->val, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tmrCfg->val, mBuf);
return ROK;
} /* end of cmUnpkTmrCfg */
*
*/
-#ifdef ANSI
S16 cmUnpkTknBuf
(
TknBuf *tknBuf, /* token string */
Buffer **tBuf /* message buffer */
)
-#else
-S16 cmUnpkTknBuf(tknBuf, tBuf)
-TknBuf *tknBuf; /* token string */
-Buffer **tBuf; /* message buffer */
-#endif
{
Buffer *mBuf;
mBuf = *tBuf;
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknBuf->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknBuf->pres, mBuf);
if(tknBuf->pres)
{
*
*/
-#ifdef ANSI
S16 cmUnpkIntf
(
CmIntf *intf, /* interface info */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkIntf(intf, mBuf)
-CmIntf *intf; /* interface info */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMCHKUNPK(cmUnpkIntfVer, &intf->intfVer, mBuf);