Lines Matching refs:propval
1261 PTPPropertyValue propval; in get_string_from_object() local
1273 if (prop->propval.str != NULL) in get_string_from_object()
1274 return strdup(prop->propval.str); in get_string_from_object()
1279 ret = ptp_mtp_getobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_STR); in get_string_from_object()
1281 if (propval.str != NULL) { in get_string_from_object()
1282 retstring = (char *) strdup(propval.str); in get_string_from_object()
1283 free(propval.str); in get_string_from_object()
1304 PTPPropertyValue propval; in get_u64_from_object() local
1316 return prop->propval.u64; in get_u64_from_object()
1320 &propval, in get_u64_from_object()
1323 retval = propval.u64; in get_u64_from_object()
1343 PTPPropertyValue propval; in get_u32_from_object() local
1355 return prop->propval.u32; in get_u32_from_object()
1359 &propval, in get_u32_from_object()
1362 retval = propval.u32; in get_u32_from_object()
1381 PTPPropertyValue propval; in get_u16_from_object() local
1395 return prop->propval.u16; in get_u16_from_object()
1399 &propval, in get_u16_from_object()
1402 retval = propval.u16; in get_u16_from_object()
1422 PTPPropertyValue propval; in get_u8_from_object() local
1436 return prop->propval.u8; in get_u8_from_object()
1440 &propval, in get_u8_from_object()
1443 retval = propval.u8; in get_u8_from_object()
1463 PTPPropertyValue propval; in set_object_string() local
1476 propval.str = (char *) string; in set_object_string()
1477 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_STR); in set_object_string()
1499 PTPPropertyValue propval; in set_object_u32() local
1513 propval.u32 = value; in set_object_u32()
1514 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT32); in set_object_u32()
1535 PTPPropertyValue propval; in set_object_u16() local
1548 propval.u16 = value; in set_object_u16()
1549 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT16); in set_object_u16()
1570 PTPPropertyValue propval; in set_object_u8() local
1583 propval.u8 = value; in set_object_u8()
1584 ret = ptp_mtp_setobjectpropvalue(params, object_id, attribute_id, &propval, PTP_DTC_UINT8); in set_object_u8()
2218 params->objects[i].oi.ParentObject = prop->propval.u32; in get_all_metadata_fast()
2222 params->objects[i].oi.ObjectFormat = prop->propval.u16; in get_all_metadata_fast()
2229 params->objects[i].oi.ObjectCompressedSize = (uint32_t) prop->propval.u64; in get_all_metadata_fast()
2231 params->objects[i].oi.ObjectCompressedSize = prop->propval.u32; in get_all_metadata_fast()
2235 params->objects[i].oi.StorageID = prop->propval.u32; in get_all_metadata_fast()
2239 if (prop->propval.str != NULL) in get_all_metadata_fast()
2240 params->objects[i].oi.Filename = strdup(prop->propval.str); in get_all_metadata_fast()
2383 file->filesize = prop->propval.u64; in obj2file()
2385 file->filesize = prop->propval.u32; in obj2file()
3331 PTPPropertyValue propval; in LIBMTP_Get_Friendlyname() local
3342 &propval, in LIBMTP_Get_Friendlyname()
3348 if (propval.str != NULL) { in LIBMTP_Get_Friendlyname()
3349 retstring = strdup(propval.str); in LIBMTP_Get_Friendlyname()
3350 free(propval.str); in LIBMTP_Get_Friendlyname()
3365 PTPPropertyValue propval; in LIBMTP_Set_Friendlyname() local
3372 propval.str = (char *) friendlyname; in LIBMTP_Set_Friendlyname()
3375 &propval, in LIBMTP_Set_Friendlyname()
3394 PTPPropertyValue propval; in LIBMTP_Get_Syncpartner() local
3405 &propval, in LIBMTP_Get_Syncpartner()
3411 if (propval.str != NULL) { in LIBMTP_Get_Syncpartner()
3412 retstring = strdup(propval.str); in LIBMTP_Get_Syncpartner()
3413 free(propval.str); in LIBMTP_Get_Syncpartner()
3433 PTPPropertyValue propval; in LIBMTP_Set_Syncpartner() local
3440 propval.str = (char *) syncpartner; in LIBMTP_Set_Syncpartner()
3443 &propval, in LIBMTP_Set_Syncpartner()
3503 PTPPropertyValue propval; in LIBMTP_Get_Batterylevel() local
3516 ret = ptp_getdevicepropvalue(params, PTP_DPC_BatteryLevel, &propval, PTP_DTC_UINT8); in LIBMTP_Get_Batterylevel()
3523 *current_level = propval.u8; in LIBMTP_Get_Batterylevel()
3569 PTPPropertyValue propval; in get_device_unicode_property() local
3582 &propval, in get_device_unicode_property()
3593 tmp = malloc((propval.a.count + 1)*sizeof(uint16_t)); in get_device_unicode_property()
3594 for (i = 0; i < propval.a.count; i++) { in get_device_unicode_property()
3595 tmp[i] = propval.a.v[i].u16; in get_device_unicode_property()
3598 tmp[propval.a.count] = 0x0000U; in get_device_unicode_property()
3599 free(propval.a.v); in get_device_unicode_property()
3990 file->filesize = prop->propval.u64; in LIBMTP_Get_Filelisting_With_Callback()
3992 file->filesize = prop->propval.u32; in LIBMTP_Get_Filelisting_With_Callback()
4109 file->filesize = prop->propval.u64; in LIBMTP_Get_Filemetadata()
4111 file->filesize = prop->propval.u32; in LIBMTP_Get_Filemetadata()
4232 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4233 track->title = strdup(prop->propval.str); in pick_property_to_track_metadata()
4238 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4239 track->artist = strdup(prop->propval.str); in pick_property_to_track_metadata()
4244 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4245 track->composer = strdup(prop->propval.str); in pick_property_to_track_metadata()
4250 track->duration = prop->propval.u32; in pick_property_to_track_metadata()
4253 track->tracknumber = prop->propval.u16; in pick_property_to_track_metadata()
4256 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4257 track->genre = strdup(prop->propval.str); in pick_property_to_track_metadata()
4262 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4263 track->album = strdup(prop->propval.str); in pick_property_to_track_metadata()
4268 if (prop->propval.str != NULL) in pick_property_to_track_metadata()
4269 track->date = strdup(prop->propval.str); in pick_property_to_track_metadata()
4275 track->samplerate = prop->propval.u32; in pick_property_to_track_metadata()
4278 track->nochannels = prop->propval.u16; in pick_property_to_track_metadata()
4281 track->wavecodec = prop->propval.u32; in pick_property_to_track_metadata()
4284 track->bitrate = prop->propval.u32; in pick_property_to_track_metadata()
4287 track->bitratetype = prop->propval.u16; in pick_property_to_track_metadata()
4290 track->rating = prop->propval.u16; in pick_property_to_track_metadata()
4293 track->usecount = prop->propval.u32; in pick_property_to_track_metadata()
4297 track->filesize = prop->propval.u64; in pick_property_to_track_metadata()
4299 track->filesize = prop->propval.u32; in pick_property_to_track_metadata()
5722 prop->propval.str = strdup(filedata->filename);
5724 strip_7bit_from_utf8(prop->propval.str);
5733 prop->propval.u16 = 0x0000U; /* Not protected */
5740 prop->propval.u8 = 0x00; /* It is supported, then it is consumable */
5748 prop->propval.str = strdup(filedata->filename);
5757 prop->propval.str = get_iso8601_stamp();
5876 prop->propval.str = strdup(metadata->title);
5885 prop->propval.str = strdup(metadata->album);
5894 prop->propval.str = strdup(metadata->artist);
5903 prop->propval.str = strdup(metadata->composer);
5912 prop->propval.str = strdup(metadata->genre);
5919 prop->propval.u32 = adjust_u32(metadata->duration, &opd);
5926 prop->propval.u16 = adjust_u16(metadata->tracknumber, &opd);
5935 prop->propval.str = strdup(metadata->date);
5942 prop->propval.u32 = adjust_u32(metadata->samplerate, &opd);
5949 prop->propval.u16 = adjust_u16(metadata->nochannels, &opd);
5956 prop->propval.u32 = adjust_u32(metadata->wavecodec, &opd);
5963 prop->propval.u32 = adjust_u32(metadata->bitrate, &opd);
5970 prop->propval.u16 = adjust_u16(metadata->bitratetype, &opd);
5980 prop->propval.u16 = adjust_u16(metadata->rating, &opd);
5987 prop->propval.u32 = adjust_u32(metadata->usecount, &opd);
5996 prop->propval.str = get_iso8601_stamp();
6281 prop->propval.str = newname;
7122 prop->propval.str = strdup(fname);
7124 strip_7bit_from_utf8(prop->propval.str);
7132 prop->propval.u16 = 0x0000U; /* Not protected */
7139 prop->propval.u8 = nonconsumable;
7147 prop->propval.str = strdup(name);
7156 prop->propval.str = strdup(artist);
7165 prop->propval.str = strdup(artist);
7174 prop->propval.str = strdup(composer);
7183 prop->propval.str = strdup(genre);
7193 prop->propval.str = get_iso8601_stamp();
7404 prop->propval.str = strdup(name);
7412 prop->propval.str = strdup(artist);
7421 prop->propval.str = strdup(artist);
7430 prop->propval.str = strdup(composer);
7439 prop->propval.str = strdup(genre);
7449 prop->propval.str = get_iso8601_stamp();
7715 if (prop->propval.str != NULL)
7716 alb->name = strdup(prop->propval.str);
7721 if (prop->propval.str != NULL) {
7725 alb->artist = strdup(prop->propval.str);
7730 if (prop->propval.str != NULL) {
7733 alb->artist = strdup(prop->propval.str);
7738 if (prop->propval.str != NULL)
7739 alb->composer = strdup(prop->propval.str);
7744 if (prop->propval.str != NULL)
7745 alb->genre = strdup(prop->propval.str);
8179 PTPPropertyValue propval; local
8214 propval.a.count = sampledata->size;
8215 propval.a.v = malloc(sizeof(PTPPropertyValue) * sampledata->size);
8217 propval.a.v[i].u8 = sampledata->data[i];
8221 &propval,PTP_DTC_AUINT8);
8224 free(propval.a.v);
8227 free(propval.a.v);
8273 PTPPropertyValue propval; local
8309 &propval,PTP_DTC_AUINT8);
8316 sampledata->size = propval.a.count;
8317 sampledata->data = malloc(sizeof(PTPPropertyValue) * propval.a.count);
8318 for (i = 0; i < propval.a.count; i++) {
8319 sampledata->data[i] = propval.a.v[i].u8;
8321 free(propval.a.v);