Searched refs:SupportedValue (Results 1 – 4 of 4) sorted by relevance
/external/libmtp/src/ |
D | ptp-pack.c | 902 dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD() 903 if (!dpd->FORM.Enum.SupportedValue) in ptp_unpack_DPD() 906 memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_DPD() 908 …ret = ptp_unpack_DPV (params, data, &offset, dpdlen, &dpd->FORM.Enum.SupportedValue[i], dpd->DataT… in ptp_unpack_DPD() 993 dpd->FORM.Enum.SupportedValue = malloc(N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_Sony_DPD() 994 if (!dpd->FORM.Enum.SupportedValue) in ptp_unpack_Sony_DPD() 997 memset (dpd->FORM.Enum.SupportedValue,0 , N*sizeof(dpd->FORM.Enum.SupportedValue[0])); in ptp_unpack_Sony_DPD() 999 …ret = ptp_unpack_DPV (params, data, poffset, dpdlen, &dpd->FORM.Enum.SupportedValue[i], dpd->DataT… in ptp_unpack_Sony_DPD() 1079 …dst->FORM.Enum.SupportedValue = malloc (sizeof(dst->FORM.Enum.SupportedValue[0])*src->FORM.Enum.Nu… in duplicate_DevicePropDesc() 1081 …duplicate_PropertyValue (&src->FORM.Enum.SupportedValue[i], &dst->FORM.Enum.SupportedValue[i], src… in duplicate_DevicePropDesc() [all …]
|
D | libmtp.c | 870 uint16_t bestfit = opd->FORM.Enum.SupportedValue[0].u16; in adjust_u16() 873 if (val == opd->FORM.Enum.SupportedValue[i].u16) { in adjust_u16() 877 if (opd->FORM.Enum.SupportedValue[i].u16 < val) { in adjust_u16() 878 bestfit = opd->FORM.Enum.SupportedValue[i].u16; in adjust_u16() 915 uint32_t bestfit = opd->FORM.Enum.SupportedValue[0].u32; in adjust_u32() 918 if (val == opd->FORM.Enum.SupportedValue[i].u32) { in adjust_u32() 922 if (opd->FORM.Enum.SupportedValue[i].u32 < val) { in adjust_u32() 923 bestfit = opd->FORM.Enum.SupportedValue[i].u32; in adjust_u32() 1021 allowed_vals->i8vals[i] = opd.FORM.Enum.SupportedValue[i].i8; in LIBMTP_Get_Allowed_Property_Values() 1024 allowed_vals->u8vals[i] = opd.FORM.Enum.SupportedValue[i].u8; in LIBMTP_Get_Allowed_Property_Values() [all …]
|
D | ptp.c | 709 dpd->FORM.Enum.SupportedValue = malloc (n * sizeof(PTPPropertyValue)); in parse_9301_propdesc() 713 …parse_9301_value (params, s, type, &dpd->FORM.Enum.SupportedValue[i]); /* should turn ' ' into \0?… in parse_9301_propdesc() 1067 if (dpd->FORM.Enum.SupportedValue) { in ptp_free_devicepropdesc() 1069 ptp_free_devicepropvalue (dpd->DataType, dpd->FORM.Enum.SupportedValue+i); in ptp_free_devicepropdesc() 1070 free (dpd->FORM.Enum.SupportedValue); in ptp_free_devicepropdesc() 1093 if (opd->FORM.Enum.SupportedValue) { in ptp_free_objectpropdesc() 1095 ptp_free_devicepropvalue (opd->DataType, opd->FORM.Enum.SupportedValue+i); in ptp_free_objectpropdesc() 1096 free (opd->FORM.Enum.SupportedValue); in ptp_free_objectpropdesc() 2404 dpd->FORM.Enum.SupportedValue = malloc (sizeof (PTPPropertyValue)*dpd->FORM.Enum.NumberOfValues); in ptp_canon_eos_getdevicepropdesc() 2405 memcpy (dpd->FORM.Enum.SupportedValue, in ptp_canon_eos_getdevicepropdesc() [all …]
|
D | ptp.h | 1176 PTPPropertyValue *SupportedValue; /* malloced */ member
|