respro_util: Add rspro_gen_ConfigClientRes() function
Change-Id: Ib14bc617ed60c64d3b69094f30901f78cafba3b3
This commit is contained in:
parent
7fc64bc5b2
commit
c0097b1e55
|
@ -203,6 +203,18 @@ RsproPDU_t *rspro_gen_ConfigClientReq(const ClientSlot_t *client, uint32_t ip, u
|
|||
return pdu;
|
||||
}
|
||||
|
||||
RsproPDU_t *rspro_gen_ConfigClientRes(e_ResultCode res)
|
||||
{
|
||||
RsproPDU_t *pdu = CALLOC(1, sizeof(*pdu));
|
||||
if (!pdu)
|
||||
return NULL;
|
||||
pdu->version = 2;
|
||||
pdu->msg.present = RsproPDUchoice_PR_configClientRes;
|
||||
pdu->msg.choice.configClientRes.result = res;
|
||||
|
||||
return pdu;
|
||||
}
|
||||
|
||||
RsproPDU_t *rspro_gen_SetAtrReq(uint16_t client_id, uint16_t slot_nr, const uint8_t *atr,
|
||||
unsigned int atr_len)
|
||||
{
|
||||
|
|
|
@ -29,6 +29,7 @@ RsproPDU_t *rspro_gen_CreateMappingRes(e_ResultCode res);
|
|||
RsproPDU_t *rspro_gen_RemoveMappingReq(const ClientSlot_t *client, const BankSlot_t *bank);
|
||||
RsproPDU_t *rspro_gen_RemoveMappingRes(e_ResultCode res);
|
||||
RsproPDU_t *rspro_gen_ConfigClientReq(const ClientSlot_t *client, uint32_t ip, uint16_t port);
|
||||
RsproPDU_t *rspro_gen_ConfigClientRes(e_ResultCode res);
|
||||
RsproPDU_t *rspro_gen_SetAtrReq(uint16_t client_id, uint16_t slot_nr, const uint8_t *atr,
|
||||
unsigned int atr_len);
|
||||
RsproPDU_t *rspro_gen_TpduModem2Card(const ClientSlot_t *client, const BankSlot_t *bank,
|
||||
|
|
Loading…
Reference in New Issue