IBM Version 4 Universal Remote User Manual


 
void Create_Prod_Def_Obj()
{
Qsz_Prd_Inf_t prod_info; /ᑍ Product information ᑍ/
Qsz_Prd_Opt_t prod_opt_list; /ᑍ Product option list ᑍ/
Qsz_Lng_Lod_t prod_lang_load; /ᑍ Product language load list ᑍ/
Qus_EC_t error_code; /ᑍ Error code parameter ᑍ/
char text_desc[5]; /ᑍ Text description ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Fill in the product information. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
memset(&prod_info,' ',sizeof(prod_info));
memcpy(prod_info.PID,"ABCABC",7);
memcpy(prod_info.Rls_Lvl,"V3R1M",6);
memcpy(prod_info.Msg_File,"ABCMSG ",1);
memcpy(prod_info.Fst_Cpyrt,"ᑍCURRENT ",1);
memcpy(prod_info.Cur_Cpyrt,"ᑍCURRENT ",1);
memcpy(prod_info.Rls_Date,"94121",6);
memcpy(prod_info.Alw_Mult_Rls,"ᑍNO ",4);
memcpy(prod_info.Reg_ID_Type,"ᑍPHONE ",1);
memcpy(prod_info.Reg_ID_Val,"57253927 ",14);
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Fill in the product option list. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
memset(&prod_opt_list,' ',sizeof(prod_opt_list));
memcpy(prod_opt_list.Opt,"",4);
memcpy(prod_opt_list.Msg_ID,"ABC1",7);
memcpy(prod_opt_list.Alw_Dyn_Nam,"ᑍNODYNNAM ",1);
memcpy(prod_opt_list.Cod_Lod,"51",4);
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Fill in the product language load list. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
memset(&prod_lang_load,' ',sizeof(prod_lang_load));
memcpy(prod_lang_load.Lng_Lod,"2924 ",8);
memcpy(prod_lang_load.Opt,"",4);
memset(text_desc,' ',5);
memcpy(text_desc,"Product ABC",11);
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Initialize the error code to have the API send errors through ᑍ/
/ᑍ the error code parameter. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
error_code.Bytes_Provided=sizeof(error_code);
QSZCRTPD("ABC5 ABC ", /ᑍ Product definition name ᑍ/
&prod_info, /ᑍ Product definition info ᑍ/
&prod_opt_list, /ᑍ Product option list ᑍ/
1, /ᑍ Number of options ᑍ/
&prod_lang_load, /ᑍ Language load list ᑍ/
1, /ᑍ Number languages ᑍ/
text_desc, /ᑍ Text description ᑍ/
"ᑍUSE ", /ᑍ Public authority ᑍ/
&error_code); /ᑍ Error code ᑍ/
if (error_code.Bytes_Available > )
{
printf("Failed in QSZCRTPD API with error: %.7s",
error_code.Exception_Id);
B-130 System API Programming V4R1