Home
last modified time | relevance | path

Searched refs:SupportedValue (Results 1 – 4 of 4) sorted by relevance

/external/libmtp/src/
Dptp-pack.c761 dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD()
762 if (!dpd->FORM.Enum.SupportedValue) in ptp_unpack_DPD()
765 memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD()
767 …ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Enum.SupportedValue[i], dpd->DataT… in ptp_unpack_DPD()
830 opd->FORM.Enum.SupportedValue = malloc(N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
831 if (!opd->FORM.Enum.SupportedValue) in ptp_unpack_OPD()
834 memset (opd->FORM.Enum.SupportedValue,0 , N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
836 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Enum.SupportedValue[i], opd->DataT… in ptp_unpack_OPD()
1354 dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*propxcnt); in ptp_unpack_CANON_changes()
1363 dpd->FORM.Enum.SupportedValue[j].u16 = in ptp_unpack_CANON_changes()
[all …]
Dlibmtp.c793 uint16_t bestfit = opd->FORM.Enum.SupportedValue[0].u16; in adjust_u16()
796 if (val == opd->FORM.Enum.SupportedValue[i].u16) { in adjust_u16()
800 if (opd->FORM.Enum.SupportedValue[i].u16 < val) { in adjust_u16()
801 bestfit = opd->FORM.Enum.SupportedValue[i].u16; in adjust_u16()
838 uint32_t bestfit = opd->FORM.Enum.SupportedValue[0].u32; in adjust_u32()
841 if (val == opd->FORM.Enum.SupportedValue[i].u32) { in adjust_u32()
845 if (opd->FORM.Enum.SupportedValue[i].u32 < val) { in adjust_u32()
846 bestfit = opd->FORM.Enum.SupportedValue[i].u32; in adjust_u32()
944 allowed_vals->i8vals[i] = opd.FORM.Enum.SupportedValue[i].i8; in LIBMTP_Get_Allowed_Property_Values()
947 allowed_vals->u8vals[i] = opd.FORM.Enum.SupportedValue[i].u8; in LIBMTP_Get_Allowed_Property_Values()
[all …]
Dptp.c1610 dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*dpd->FORM.Enum.NumberOfValues); in ptp_canon_eos_getdevicepropdesc()
1611 memcpy (dpd->FORM.Enum.SupportedValue, in ptp_canon_eos_getdevicepropdesc()
1612 params->canon_props[i].dpd.FORM.Enum.SupportedValue, in ptp_canon_eos_getdevicepropdesc()
2723 if (dpd->FORM.Enum.SupportedValue) { in ptp_free_devicepropdesc()
2725 ptp_free_devicepropvalue (dpd->DataType, dpd->FORM.Enum.SupportedValue+i); in ptp_free_devicepropdesc()
2726 free (dpd->FORM.Enum.SupportedValue); in ptp_free_devicepropdesc()
2746 if (opd->FORM.Enum.SupportedValue) { in ptp_free_objectpropdesc()
2748 ptp_free_devicepropvalue (opd->DataType, opd->FORM.Enum.SupportedValue+i); in ptp_free_objectpropdesc()
2749 free (opd->FORM.Enum.SupportedValue); in ptp_free_objectpropdesc()
Dptp.h940 PTPPropertyValue *SupportedValue; /* malloced */ member