Home
last modified time | relevance | path

Searched refs:oidata (Results 1 – 2 of 2) sorted by relevance

/external/libmtp/src/
Dptp-pack.c461 unsigned char* oidata; in ptp_pack_OI() local
465 oidata=malloc(PTP_oi_MaxLen); in ptp_pack_OI()
470 memset (oidata, 0, PTP_oi_MaxLen); in ptp_pack_OI()
471 htod32a(&oidata[PTP_oi_StorageID],oi->StorageID); in ptp_pack_OI()
472 htod16a(&oidata[PTP_oi_ObjectFormat],oi->ObjectFormat); in ptp_pack_OI()
473 htod16a(&oidata[PTP_oi_ProtectionStatus],oi->ProtectionStatus); in ptp_pack_OI()
474 htod32a(&oidata[PTP_oi_ObjectCompressedSize],oi->ObjectCompressedSize); in ptp_pack_OI()
475 htod16a(&oidata[PTP_oi_ThumbFormat],oi->ThumbFormat); in ptp_pack_OI()
476 htod32a(&oidata[PTP_oi_ThumbCompressedSize],oi->ThumbCompressedSize); in ptp_pack_OI()
477 htod32a(&oidata[PTP_oi_ThumbPixWidth],oi->ThumbPixWidth); in ptp_pack_OI()
[all …]
Dptp.c903 unsigned char* oidata=NULL; in ptp_sendobjectinfo() local
912 size=ptp_pack_OI(params, objectinfo, &oidata); in ptp_sendobjectinfo()
913 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &oidata, NULL); in ptp_sendobjectinfo()
914 free(oidata); in ptp_sendobjectinfo()
1082 unsigned char* oidata=NULL; in ptp_ek_sendfileobjectinfo() local
1091 size=ptp_pack_OI(params, objectinfo, &oidata); in ptp_ek_sendfileobjectinfo()
1092 ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &oidata, NULL); in ptp_ek_sendfileobjectinfo()
1093 free(oidata); in ptp_ek_sendfileobjectinfo()