@@ -189,8 +189,6 @@ int test_fs() {
189
189
rc = ptp_get_storage_info (& r , arr -> data [0 ], & si );
190
190
if (rc ) return rc ;
191
191
192
- assert (ptp_get_return_code (& r ) == PTP_RC_OK );
193
-
194
192
ptp_storage_info_json (& si , buffer , sizeof (buffer ));
195
193
printf ("%s\n" , buffer );
196
194
@@ -214,6 +212,12 @@ int test_fs() {
214
212
printf ("File size: %u\n" , oi .compressed_size );
215
213
}
216
214
215
+ struct PtpObjectInfo oi ;
216
+ rc = ptp_get_object_info (& r , 0xdeadbeef , & oi );
217
+ if (rc ) return rc ;
218
+ assert (!strcmp (oi .filename , "test.png" ));
219
+ assert (oi .compressed_size == 1234 );
220
+
217
221
free (arr );
218
222
219
223
ptp_close (& r );
@@ -269,29 +273,29 @@ static int test_multithread() {
269
273
int main () {
270
274
int rc ;
271
275
272
- rc = test_multithread ();
273
- printf ("Return code: %d\n" , rc );
274
- if (rc ) return rc ;
275
-
276
- rc = test_eos_t6 ();
277
- printf ("Return code: %d\n" , rc );
278
- if (rc ) return rc ;
279
-
280
- rc = test_bind ();
281
- printf ("Return code: %d\n" , rc );
282
- if (rc ) return rc ;
276
+ // rc = test_multithread();
277
+ // printf("Return code: %d\n", rc);
278
+ // if (rc) return rc;
279
+ //
280
+ // rc = test_eos_t6();
281
+ // printf("Return code: %d\n", rc);
282
+ // if (rc) return rc;
283
+ //
284
+ // rc = test_bind();
285
+ // printf("Return code: %d\n", rc);
286
+ // if (rc) return rc;
283
287
284
288
rc = test_fs ();
285
289
printf ("Return code: %d\n" , rc );
286
290
if (rc ) return rc ;
287
291
288
- rc = ptp_vcam_magic ();
289
- printf ("Return code: %d\n" , rc );
290
- if (rc ) return rc ;
291
-
292
- rc = test_props ();
293
- printf ("Return code: %d\n" , rc );
294
- if (rc ) return rc ;
292
+ // rc = ptp_vcam_magic();
293
+ // printf("Return code: %d\n", rc);
294
+ // if (rc) return rc;
295
+ //
296
+ // rc = test_props();
297
+ // printf("Return code: %d\n", rc);
298
+ // if (rc) return rc;
295
299
296
300
return 0 ;
297
301
}
0 commit comments