Home | History | Annotate | Download | only in examples

Lines Matching defs:device

3  * Example program that formats the device storage.
51 LIBMTP_mtpdevice_t *device;
57 device = LIBMTP_Get_First_Device();
58 if (device == NULL) {
63 printf("I will now format your device. This means that\n");
69 ret = LIBMTP_Format_Storage(device, device->storage);
76 printf("Failed to format device.\n");
77 LIBMTP_Dump_Errorstack(device);
78 LIBMTP_Clear_Errorstack(device);
79 LIBMTP_Release_Device(device);
83 LIBMTP_Release_Device(device);