Lines Matching refs:ptp
0 /* ptp.c
26 #include "ptp.h"
98 #include "ptp-pack.c"
111 * PTPContainer* ptp - general ptp container
117 * Performs PTP transaction. ptp is a PTPContainer with appropriate fields
133 * Upon success PTPContainer* ptp contains PTP Response Phase container with
137 ptp_transaction_new (PTPParams* params, PTPContainer* ptp,
143 if ((params==NULL) || (ptp==NULL))
146 ptp->Transaction_ID=params->transaction_id++;
147 ptp->SessionID=params->session_id;
149 CHECK_PTP_RC(params->sendreq_func (params, ptp));
155 ret = params->senddata_func(params, ptp,
170 ret = params->getdata_func(params, ptp, handler);
189 CHECK_PTP_RC(params->getresp_func(params, ptp));
190 if (ptp->Transaction_ID != params->transaction_id-1) {
192 if ((ptp->Code == PTP_OC_OpenSession) && tries--)
196 ptp->Transaction_ID, params->transaction_id-1
202 return ptp->Code;
356 ptp_transaction (PTPParams* params, PTPContainer* ptp,
372 ret = ptp_transaction_new (params, ptp, flags, sendlen, &handler);
411 PTPContainer ptp;
416 PTP_CNT_INIT(ptp);
417 ptp.Code=PTP_OC_GetDeviceInfo;
418 ptp.Nparam=0;
420 ret=ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, &handler);
432 PTPContainer ptp;
438 PTP_CNT_INIT(ptp);
439 ptp.Code=PTP_OC_CANON_EOS_GetDeviceInfoEx;
440 ptp.Nparam=0;
443 ret=ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, &handler);
464 PTPContainer ptp;
471 PTP_CNT_INIT(ptp);
472 ptp.Code=code;
473 ptp.Nparam=n_param;
477 (&ptp.Param1)[i] = va_arg(args, uint32_t);
480 return ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
496 PTPContainer ptp;
511 PTP_CNT_INIT(ptp);
512 ptp.Code=PTP_OC_OpenSession;
513 ptp.Param1=session;
514 ptp.Nparam=1;
515 ret=ptp_transaction_new(params, &ptp, PTP_DP_NODATA, 0, NULL);
553 PTPContainer ptp;
557 PTP_CNT_INIT(ptp);
558 ptp.Code=PTP_OC_GetStorageIDs;
559 ptp.Nparam=0;
561 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &sids, &len);
582 PTPContainer ptp;
586 PTP_CNT_INIT(ptp);
587 ptp.Code=PTP_OC_GetStorageInfo;
588 ptp.Param1=storageid;
589 ptp.Nparam=1;
591 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &si, &len);
617 PTPContainer ptp;
621 PTP_CNT_INIT(ptp);
622 ptp.Code=PTP_OC_GetObjectHandles;
623 ptp.Param1=storage;
624 ptp.Param2=objectformatcode;
625 ptp.Param3=associationOH;
626 ptp.Nparam=3;
628 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &oh, &len);
668 PTPContainer ptp;
671 PTP_CNT_INIT(ptp);
672 ptp.Code=PTP_OC_GetNumObjects;
673 ptp.Param1=storage;
674 ptp.Param2=objectformatcode;
675 ptp.Param3=associationOH;
676 ptp.Nparam=3;
678 ret=ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
680 if (ptp.Nparam >= 1)
681 *numobs = ptp.Param1;
703 PTPContainer ptp;
707 PTP_CNT_INIT(ptp);
708 ptp.Code=PTP_OC_GetObjectInfo;
709 ptp.Param1=handle;
710 ptp.Nparam=1;
712 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &oi, &len);
732 PTPContainer ptp;
735 PTP_CNT_INIT(ptp);
736 ptp.Code=PTP_OC_GetObject;
737 ptp.Param1=handle;
738 ptp.Nparam=1;
740 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, &len);
757 PTPContainer ptp;
759 PTP_CNT_INIT(ptp);
760 ptp.Code=PTP_OC_GetObject;
761 ptp.Param1=handle;
762 ptp.Nparam=1;
763 return ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, handler);
780 PTPContainer ptp;
785 PTP_CNT_INIT(ptp);
786 ptp.Code=PTP_OC_GetObject;
787 ptp.Param1=handle;
788 ptp.Nparam=1;
789 ret = ptp_transaction_new(params, &ptp, PTP_DP_GETDATA, 0, &handler);
811 PTPContainer ptp;
814 PTP_CNT_INIT(ptp);
815 ptp.Code=PTP_OC_GetPartialObject;
816 ptp.Param1=handle;
817 ptp.Param2=offset;
818 ptp.Param3=maxbytes;
819 ptp.Nparam=3;
821 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, &len);
838 PTPContainer ptp;
841 PTP_CNT_INIT(ptp);
842 ptp.Code=PTP_OC_GetThumb;
843 ptp.Param1=handle;
844 ptp.Nparam=1;
845 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, object, &len);
861 PTPContainer ptp;
864 PTP_CNT_INIT(ptp);
865 ptp.Code=PTP_OC_DeleteObject;
866 ptp.Param1=handle;
867 ptp.Param2=ofc;
868 ptp.Nparam=2;
869 ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
902 PTPContainer ptp;
906 PTP_CNT_INIT(ptp);
907 ptp.Code=PTP_OC_SendObjectInfo;
908 ptp.Param1=*store;
909 ptp.Param2=*parenthandle;
910 ptp.Nparam=2;
913 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &oidata, NULL);
915 *store=ptp.Param1;
916 *parenthandle=ptp.Param2;
917 *handle=ptp.Param3;
935 PTPContainer ptp;
937 PTP_CNT_INIT(ptp);
938 ptp.Code=PTP_OC_SendObject;
939 ptp.Nparam=0;
941 return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &object, NULL);
958 PTPContainer ptp;
960 PTP_CNT_INIT(ptp);
961 ptp.Code=PTP_OC_SendObject;
962 ptp.Nparam=0;
963 return ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, handler);
981 PTPContainer ptp;
986 PTP_CNT_INIT(ptp);
987 ptp.Code=PTP_OC_SendObject;
988 ptp.Nparam=0;
989 ret = ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, &handler);
999 PTPContainer ptp;
1004 PTP_CNT_INIT(ptp);
1005 ptp.Code=PTP_OC_GetDevicePropDesc;
1006 ptp.Param1=propcode;
1007 ptp.Nparam=1;
1009 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &dpd, &len);
1020 PTPContainer ptp;
1027 PTP_CNT_INIT(ptp);
1028 ptp.Code=PTP_OC_GetDevicePropValue;
1029 ptp.Param1=propcode;
1030 ptp.Nparam=1;
1032 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &dpv, &len);
1042 PTPContainer ptp;
1047 PTP_CNT_INIT(ptp);
1048 ptp.Code=PTP_OC_SetDevicePropValue;
1049 ptp.Param1=propcode;
1050 ptp.Nparam=1;
1052 ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &dpv, NULL);
1081 PTPContainer ptp;
1085 PTP_CNT_INIT(ptp);
1086 ptp.Code=PTP_OC_EK_SendFileObjectInfo;
1087 ptp.Param1=*store;
1088 ptp.Param2=*parenthandle;
1089 ptp.Nparam=2;
1092 ret=ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &oidata, NULL);
1094 *store=ptp.Param1;
1095 *parenthandle=ptp.Param2;
1096 *handle=ptp.Param3;
1106 * Gets the serial number from the device. (ptp serial)
1114 PTPContainer ptp;
1116 PTP_CNT_INIT(ptp);
1117 ptp.Code = PTP_OC_EK_GetSerial;
1118 ptp.Nparam = 0;
1119 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
1128 * Sets the serial number of the device. (ptp serial)
1136 PTPContainer ptp;
1138 PTP_CNT_INIT(ptp);
1139 ptp.Code = PTP_OC_EK_SetSerial;
1140 ptp.Nparam = 0;
1141 return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
1148 PTPContainer ptp;
1150 PTP_CNT_INIT(ptp);
1151 ptp.Code = 0x9007;
1152 ptp.Nparam = 0;
1153 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
1160 PTPContainer ptp;
1163 PTP_CNT_INIT(ptp);
1164 ptp.Code = 0x9009;
1165 ptp.Nparam = 0;
1166 ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
1167 *p1 = ptp.Param1;
1168 *p2 = ptp.Param2;
1176 PTPContainer ptp;
1178 PTP_CNT_INIT(ptp);
1179 ptp.Code = 0x900c;
1180 ptp.Nparam = 0;
1181 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
1198 PTPContainer ptp;
1203 PTP_CNT_INIT(ptp);
1204 ptp.Code = PTP_OC_EK_SetText;
1205 ptp.Nparam = 0;
1208 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
1227 PTPContainer ptp;
1229 PTP_CNT_INIT(ptp);
1230 ptp.Code=PTP_OC_EK_SendFileObject;
1231 ptp.Nparam=0;
1233 return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &object, NULL);
1250 PTPContainer ptp;
1252 PTP_CNT_INIT(ptp);
1253 ptp.Code=PTP_OC_EK_SendFileObject;
1254 ptp.Nparam=0;
1255 return ptp_transaction_new(params, &ptp, PTP_DP_SENDDATA, size, handler);
1289 PTPContainer ptp;
1291 PTP_CNT_INIT(ptp);
1292 ptp.Code=PTP_OC_CANON_GetPartialObjectInfo;
1293 ptp.Param1=handle;
1294 ptp.Param2=p2;
1295 ptp.Nparam=2;
1296 ret=ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
1297 *size=ptp.Param1;
1298 *rp2=ptp.Param2;
1315 PTPContainer ptp;
1318 PTP_CNT_INIT(ptp);
1319 ptp.Code=PTP_OC_CANON_GetMACAddress;
1320 ptp.Nparam=0;
1322 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, mac, &size);
1343 PTPContainer ptp;
1348 PTP_CNT_INIT(ptp);
1349 ptp.Code=PTP_OC_CANON_GetDirectory;
1350 ptp.Nparam=0;
1351 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &dir, &size);
1354 ret = ptp_unpack_canon_directory(params, dir, ptp.Param1, handles, oinfos, flags);
1374 PTPContainer ptp;
1377 PTP_CNT_INIT(ptp);
1378 ptp.Code = PTP_OC_CANON_GetTreeInfo;
1379 ptp.Nparam = 1;
1380 ptp.Param1 = 0xf;
1381 ret = ptp_transaction(params, &ptp, PTP_DP_NODATA, 0, NULL, NULL);
1382 if ((ret == PTP_RC_OK) && (ptp.Nparam>0))
1383 *out = ptp.Param1;
1400 PTPContainer ptp;
1403 PTP_CNT_INIT(ptp);
1404 ptp.Code = PTP_OC_CANON_GetPairingInfo;
1405 ptp.Nparam = 1;
1406 ptp.Param1 = nr;
1409 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
1431 PTPContainer ptp;
1437 PTP_CNT_INIT(ptp);
1438 ptp.Code = PTP_OC_CANON_GetTreeSize;
1439 ptp.Nparam = 0;
1440 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &out, &size);
1479 PTPContainer ptp;
1484 PTP_CNT_INIT(ptp);
1485 ptp.Code=PTP_OC_CANON_CheckEvent;
1486 ptp.Nparam=0;
1488 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &evdata, &len);
1580 PTPContainer ptp;
1587 PTP_CNT_INIT(ptp);
1588 ptp.Code = PTP_OC_CANON_EOS_GetEvent;
1589 ptp.Nparam = 0;
1590 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
1628 PTPContainer ptp;
1633 PTP_CNT_INIT(ptp);
1634 ptp.Code = PTP_OC_CANON_EOS_GetStorageIDs;
1635 ptp.Nparam = 0;
1636 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &sids, &len);
1645 PTPContainer ptp;
1650 PTP_CNT_INIT(ptp);
1651 ptp.Code = PTP_OC_CANON_EOS_GetStorageInfo;
1652 ptp.Nparam = 1;
1653 ptp.Param1 = p1;
1654 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
1678 PTPContainer ptp;
1682 PTP_CNT_INIT(ptp);
1683 ptp.Code = PTP_OC_CANON_EOS_GetPartialObject;
1684 ptp.Nparam = 3;
1685 ptp.Param1 = oid;
1686 ptp.Param2 = offset;
1687 ptp.Param3 = xsize;
1688 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, &size);
1694 PTPContainer ptp;
1696 PTP_CNT_INIT(ptp);
1697 ptp.Code = PTP_OC_CANON_EOS_SetDevicePropValueEx;
1698 ptp.Nparam = 0;
1699 return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
1706 PTPContainer ptp;
1712 PTP_CNT_INIT(ptp);
1713 ptp.Code = PTP_OC_CANON_EOS_SetDevicePropValueEx;
1714 ptp.Nparam = 0;
1767 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
1797 PTPContainer ptp;
1801 PTP_CNT_INIT(ptp);
1802 ptp.Code=PTP_OC_CANON_GetPartialObjectEx;
1803 ptp.Param1=handle;
1804 ptp.Param2=offset;
1805 ptp.Param3=size;
1806 ptp.Param4=pos;
1807 ptp.Nparam=4;
1809 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &len);
1812 *readnum=ptp.Param1;
1837 PTPContainer ptp;
1840 PTP_CNT_INIT(ptp);
1841 ptp.Code=PTP_OC_CANON_GetViewfinderImage;
1842 ptp.Nparam=0;
1843 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, image, &len);
1844 if (ret==PTP_RC_OK) *size=ptp.Param1;
1869 PTPContainer ptp;
1873 PTP_CNT_INIT(ptp);
1874 ptp.Code=PTP_OC_CANON_GetChanges;
1875 ptp.Nparam=0;
1877 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &len);
1913 PTPContainer ptp;
1917 PTP_CNT_INIT(ptp);
1918 ptp.Code=PTP_OC_CANON_GetObjectInfoEx;
1919 ptp.Param1=store;
1920 ptp.Param2=p2;
1921 ptp.Param3=parent;
1922 ptp.Param4=handle;
1923 ptp.Nparam=4;
1925 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &len);
1928 *entnum=ptp.Param1;
1964 PTPContainer ptp;
1968 PTP_CNT_INIT (ptp);
1969 ptp.Code=PTP_OC_CANON_GetObjectHandleByName;
1970 ptp.Nparam=0;
1975 ret=ptp_transaction (params, &ptp, PTP_DP_SENDDATA, (len+1)*2+1, &data, NULL);
1977 *objectid = ptp.Param1;
1999 PTPContainer ptp;
2003 PTP_CNT_INIT(ptp);
2004 ptp.Code = PTP_OC_CANON_GetCustomizeData;
2005 ptp.Param1 = themenr;
2006 ptp.Nparam = 1;
2007 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2013 PTPContainer ptp;
2016 PTP_CNT_INIT(ptp);
2017 ptp.Code = PTP_OC_NIKON_CurveDownload;
2018 ptp.Nparam = 0;
2019 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2036 PTPContainer ptp;
2043 PTP_CNT_INIT(ptp);
2044 ptp.Code = PTP_OC_NIKON_GetVendorPropCodes;
2045 ptp.Nparam = 0;
2046 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &xdata, &xsize);
2057 PTPContainer ptp;
2060 PTP_CNT_INIT(ptp);
2061 ptp.Code = PTP_OC_NIKON_GetFileInfoInBlock;
2062 ptp.Nparam = 3;
2063 ptp.Param1 = p1;
2064 ptp.Param2 = p2;
2065 ptp.Param3 = p3;
2066 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2082 PTPContainer ptp;
2084 PTP_CNT_INIT(ptp);
2085 ptp.Code=PTP_OC_NIKON_GetLiveViewImg;
2086 ptp.Nparam=0;
2087 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2104 PTPContainer ptp;
2107 PTP_CNT_INIT(ptp);
2108 ptp.Code=PTP_OC_NIKON_GetPreviewImg;
2109 ptp.Nparam=0;
2110 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, xdata, xsize);
2112 if (ptp.Nparam > 0)
2113 *handle = ptp.Param1;
2131 PTPContainer ptp;
2133 PTP_CNT_INIT(ptp);
2134 ptp.Code=PTP_OC_CANON_EOS_GetViewFinderData;
2135 ptp.Nparam=1;
2136 ptp.Param1=0x00100000; /* from trace */
2137 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2155 PTPContainer ptp;
2160 PTP_CNT_INIT(ptp);
2161 ptp.Code=PTP_OC_NIKON_CheckEvent;
2162 ptp.Nparam=0;
2164 ret = ptp_transaction (params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
2187 PTPContainer ptp;
2189 PTP_CNT_INIT(ptp);
2190 ptp.Code=PTP_OC_NIKON_GetDevicePTPIPInfo;
2191 ptp.Nparam=0;
2192 return ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, data, size);
2208 PTPContainer ptp;
2217 PTP_CNT_INIT(ptp);
2218 ptp.Code=PTP_OC_NIKON_GetProfileAllData;
2219 ptp.Nparam=0;
2222 CHECK_PTP_RC(ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size));
2310 PTPContainer ptp;
2386 PTP_CNT_INIT(ptp);
2387 ptp.Code=PTP_OC_NIKON_SendProfileData;
2388 ptp.Nparam=1;
2389 ptp.Param1=profilenr;
2390 return ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
2410 PTPContainer ptp;
2415 PTP_CNT_INIT(ptp);
2416 ptp.Code=PTP_OC_MTP_GetObjectPropsSupported;
2417 ptp.Nparam = 1;
2418 ptp.Param1 = ofc;
2419 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
2442 PTPContainer ptp;
2447 PTP_CNT_INIT(ptp);
2448 ptp.Code=PTP_OC_MTP_GetObjectPropDesc;
2449 ptp.Nparam = 2;
2450 ptp.Param1 = opc;
2451 ptp.Param2 = ofc;
2452 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
2476 PTPContainer ptp;
2482 PTP_CNT_INIT(ptp);
2483 ptp.Code=PTP_OC_MTP_GetObjectPropValue;
2484 ptp.Nparam = 2;
2485 ptp.Param1 = oid;
2486 ptp.Param2 = opc;
2487 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &data, &size);
2511 PTPContainer ptp;
2516 PTP_CNT_INIT(ptp);
2517 ptp.Code=PTP_OC_MTP_SetObjectPropValue;
2518 ptp.Nparam = 2;
2519 ptp.Param1 = oid;
2520 ptp.Param2 = opc;
2522 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, &data, NULL);
2530 PTPContainer ptp;
2535 PTP_CNT_INIT(ptp);
2536 ptp.Code=PTP_OC_MTP_GetObjectReferences;
2537 ptp.Param1=handle;
2538 ptp.Nparam=1;
2539 ret=ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &dpv, &dpvlen);
2557 PTPContainer ptp;
2562 PTP_CNT_INIT(ptp);
2563 ptp.Code = PTP_OC_MTP_SetObjectReferences;
2564 ptp.Param1 = handle;
2565 ptp.Nparam = 1;
2567 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, size, (unsigned char **)&dpv, NULL);
2576 PTPContainer ptp;
2580 PTP_CNT_INIT(ptp);
2581 ptp.Code = PTP_OC_MTP_GetObjPropList;
2582 ptp.Param1 = handle;
2583 ptp.Param2 = 0x00000000U; /* 0x00000000U should be "all formats" */
2584 ptp.Param3 = 0xFFFFFFFFU; /* 0xFFFFFFFFU should be "all properties" */
2585 ptp.Param4 = 0x00000000U;
2586 ptp.Param5 = 0x00000000U;
2587 ptp.Nparam = 5;
2588 ret = ptp_transaction(params, &ptp, PTP_DP_GETDATA, 0, &opldata, &oplsize);
2600 PTPContainer ptp;
2604 PTP_CNT_INIT(ptp);
2605 ptp.Code = PTP_OC_MTP_SendObjectPropList;
2606 ptp.Param1 = *store;
2607 ptp.Param2 = *parenthandle;
2608 ptp.Param3 = (uint32_t) objecttype;
2609 ptp.Param4 = (uint32_t) (objectsize >> 32);
2610 ptp.Param5 = (uint32_t) (objectsize & 0xffffffffU);
2611 ptp.Nparam = 5;
2615 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, oplsize, &opldata, NULL);
2617 *store = ptp.Param1;
2618 *parenthandle = ptp.Param2;
2619 *handle = ptp.Param3;
2628 PTPContainer ptp;
2632 PTP_CNT_INIT(ptp);
2633 ptp.Code = PTP_OC_MTP_SetObjPropList;
2634 ptp.Nparam = 0;
2637 ret = ptp_transaction(params, &ptp, PTP_DP_SENDDATA, oplsize, &opldata, NULL);
2683 /* ptp structures freeing functions */