blob: 5a0c6587a0eedb3380de00cb62c0961ca35f09b4 [file] [log] [blame]
Linus Walleij06542122007-10-14 22:13:48 +000012007-10-15 Linus Walleij <triad@df.lth.se>
2
3 * src/libusb-glue.c: repair headers, don't just ignore them.
4
Linus Walleija91f8892007-10-04 21:25:22 +000052007-10-04 Linus Walleij <triad@df.lth.se>
6
7 * src/libusb-glue.c: rm some pointless confusing defines
8 inherited from libgphoto2.
Linus Walleij2ec6ff52007-10-04 22:20:43 +00009 * configure.ac: bump to 0.2.2
10 * src/Makefile.am: interface to libmtp.so.6.0.2 (compatible)
11 * Release as 0.2.2. Now is as good time as ever. Release
12 early and release often.
Linus Walleija91f8892007-10-04 21:25:22 +000013
Linus Walleij41e75b22007-10-03 21:58:06 +0000142007-10-03 Linus Walleij <triad@df.lth.se>
15
16 * src/libusb-glue.c: tag the OLD Creative devices with
17 DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL, after clear
18 indications that it was broken when retrieveing folders
19 on all those devices. The newer devices (those supporting
20 32bit object size) presumably does not have this limitation.
21
Linus Walleijca2a1702007-10-02 20:41:45 +0000222007-10-02 Linus Walleij <triad@df.lth.se>
23
24 * src/libmtp.c: devices which represented file size with a
25 32bit value (some Creative devices) would return a bananas
Linus Walleij1d877372007-10-02 21:21:57 +000026 file size. Fixed it up by...
27 * src/libmtp.h.in: recycling the uint8_t "interface"
Linus Walleijddaba2f2007-10-02 21:20:30 +000028 field in the device struct as a holder of the object size
29 for the device. This will make the new library binary
30 compatible with version 0.2.1 since no-one should *ever*
31 dereference that value (which used to be the USB interface
32 number and is now the object size).
Linus Walleijca2a1702007-10-02 20:41:45 +000033 * examples/files.c: display 64bit file sizes in hex correctly.
34
Richard Low99a93e82007-09-29 08:16:08 +0000352007-09-29 Richard Low <richard@wentnet.com>
36
37 * src/libmtp.c: avoid crash on failed connect
38
Linus Walleij8e3af002007-09-28 19:21:54 +0000392007-09-28 Linus Walleij <triad@df.lth.se>
40
41 * src/libusb-glue.h: introduce a new device flag for devices that
42 have broken PTP headers, first encountered on the Creative
43 ZEN 8GB.
44 * src/libusb-glue.c: attempt to begin to work around the broken
45 PTP headers.
46
Linus Walleij29f03ba2007-09-25 19:22:12 +0000472007-09-25 Linus Walleij <triad@df.lth.se>
48
49 * src/libusb-glue.h: add a new device flag for devices that don't
50 like it if you release the interface (or try to clear endpoints).
51 * src/libusb-glue.c: dito, implement this flag, tag all SanDisk
52 Sansa devices with it except for the Linux-based Sansa Connect.
53
Richard Low61edc1a2007-09-23 10:35:48 +0000542007-09-23 Richard Low <richard@wentnet.com>
55
56 * src/libusb-glue.c: updated some device flags, removed second
57 call to ptp_getdeviceinfo
58 * src/libmtp.c: property cache fixes
59
Linus Walleij7783b9b2007-09-22 22:10:44 +0000602007-09-23 Linus Walleij <triad@df.lth.se>
61
62 * src/libmtp.c: wrapped updating of playlists and albums into an
63 abstract function so we do it consistently. Added support for
64 tagging on modification date to files, tracks, playlists and
65 albums.
66
Linus Walleij580aff72007-09-21 13:02:19 +0000672007-09-21 Linus Walleij <triad@df.lth.se>
68
69 * src/libusb-glue.c: flag the Samsung YH-820 with
70 DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL after tests by Stephan
71 Fabel.
72
Linus Walleijda17cda2007-09-18 21:12:05 +0000732007-09-18 Linus Walleij <triad@df.lth.se>
74
75 * src/libusb-glue.c: stop the endpoint unhalting/unstalling when
76 closing the USB device. It was AYBABTU the Samsungs
77 (and others).
78
Linus Walleij724f0102007-09-17 20:10:12 +0000792007-09-17 Linus Walleij <triad@df.lth.se>
80
81 * src/libusb-glue.c: silenced weirdo error message.
82
Linus Walleijb644b412007-09-16 21:46:02 +0000832007-09-16 Linus Walleij <triad@df.lth.se>
84
85 * src/ptp.c: cancellation working *as it should*
86 * src/ptp.h: dito.
87 * src/libusb-glue.c: dito.
88 * src/libusb-glue.h: dito.
89 * src/libmtp.c: dito.
90 * src/libmtp.h.in: new error code for cancellation.
91
Richard Lowe9f205f2007-09-16 16:25:50 +0000922007-09-16 Richard Low <richard@wentnet.com>
93
94 * src/libusb-glue.c: only read descriptors for devices we
95 don't know since it breaks on some devices
Richard Lowd7bcab52007-09-16 16:30:20 +000096 * src/libmtp.c: a couple of bugs fixed in metadata retreival
Richard Lowe9f205f2007-09-16 16:25:50 +000097
Linus Walleij3e418e22007-09-15 20:30:14 +0000982007-09-15 Linus Walleij <triad@df.lth.se>
99
100 * src/ptp.c: get cancellation of xfers working.
101 * src/libusb-glue.c: dito.
102 * src/libusb-glue.h: dito.
103 * src/libmtp.c: dito.
104
Linus Walleijf43558d2007-09-14 17:59:20 +00001052007-09-14 Linus Walleij <triad@df.lth.se>
106
107 * src/ptp.h: sync in upstream to get cancellation prototypes.
Linus Walleijbd3bf9e2007-09-14 19:31:54 +0000108 * src/libusb-glue.c: first try to implement cancellation.
Linus Walleij997d3ec2007-09-14 21:29:54 +0000109 * src/libmtp.c: dito. Bugfix to one of Marcus' realloc():s.
Linus Walleijf43558d2007-09-14 17:59:20 +0000110
Linus Walleij1e9a0332007-09-12 19:35:56 +00001112007-09-12 Marcus Meissner <meissner@suse.de>
112
113 * src/ptp-pack.c: sync to upstream, rewrote packing to use
114 a static array to be qsort():ed when reading in proplists.
115 * src/ptp.c: reflect changes.
116 * src/ptp.h: reflect changes.
117 * src/libmtp.c: reflect changes.
118
Linus Walleij71b8c0f2007-09-06 09:09:14 +00001192007-09-06 Linus Walleij <triad@df.lth.se>
120
121 * examples/hotplug.c: edit up into a udev ruleset that is
122 inexorably complicated but probably compatible with most
123 udev versions out there. Now please DON'T update udev
124 styles again!
125
Richard Low17cec172007-09-05 20:43:51 +00001262007-09-05 Richard Low <richard@wentnet.com>
127
128 * src/libmtp.c: album fixups
129
Linus Walleij50d47a52007-09-05 07:59:40 +00001302007-09-05 Linus Walleij <triad@df.lth.se>
131
132 * examples/hotplug.c: use old udev style by default, use new
133 if requested explicitly by a -U switch.
134
Linus Walleij6bf68b42007-09-03 22:50:02 +00001352007-09-04 Linus Walleij <triad@df.lth.se>
136
137 * src/libmtp.c: make sure we query recursively supplying each
138 storage ID in turn, so we spin over storages. Also check
139 what storage may be available to store a file, if the first
140 one fails, try the next!
141
Linus Walleija0b7d042007-08-31 23:57:31 +00001422007-09-01 Linus Walleij <triad@df.lth.se>
143
144 * src/ptp-pack.c: make the resulting MTP proplist sorted by
145 object ID.
Linus Walleij70ac9772007-09-01 18:59:28 +0000146 * hotplug.sh.in: explicitly call BASH instead of just sh. Warn
147 if script is not run as root.
Linus Walleija0b7d042007-08-31 23:57:31 +0000148
Linus Walleijf4592072007-08-29 10:19:25 +00001492007-08-29 Linus Walleij <triad@df.lth.se>
150
151 * examples/Makefile.am: move include define from AM_CFLAGS to
152 AM_CPPFLAGS (as it should be) bug found by Petar Petrov
153 <pesho.petrov@gmail.com>.
Linus Walleijb0ab5482007-08-29 21:08:54 +0000154 * src/libusb-glue.c: strange misleading message corrected. Fix
155 up the horrid interface passing back-and-forward and confusing.
156 * src/libusb-glue.h: dito.
157 * src/libmtp.c: rid interface references, that's a USB issue!
158 * src/libmtp.h.in: flag interface number in device struct as retired.
Linus Walleijf4592072007-08-29 10:19:25 +0000159
Linus Walleij1b87ea72007-08-28 07:53:09 +00001602007-08-28 Linus Walleij <triad@df.lth.se>
161
162 * src/libmtp.c: retire the horrid, broken, stream send facility that
163 does not work on any device since they all want to know the file
Linus Walleij8533bf72007-08-28 10:03:59 +0000164 size in advance. Add in some code to fall back on the recursive
165 metadata retrieveal if getting the whole long list fails.
Linus Walleij6d0cf972007-08-28 09:48:19 +0000166 * src/libusb-glue.c: tag all Sansas as having broken GetObjectPropList
Linus Walleijc4108242007-08-28 20:38:27 +0000167 when all tags for all objects are requested. Scan each INTERFACE
168 of the device for device descriptors.
Linus Walleij1b87ea72007-08-28 07:53:09 +0000169
Linus Walleijd3b78572007-08-24 21:28:24 +00001702007-08-24 Linus Walleij <triad@df.lth.se>
171
172 * src/libusb-glue.h: new device flag to strip all non-7bit chars from
173 filenames on some lame devices.
174 * src/libusb-glue.c: tag the Philips Shoqbox with this flag.
175 * src/libmtp.c: strip the non-7bit chars from filenames if that
176 flag is set.
177 * src/unicode.h: introduce a 7bit-strip helper function.
178 * src/unicode.c: dito.
179
Linus Walleij29559562007-08-22 21:38:04 +00001802007-08-22 Linus Walleij <triad@df.lth.se>
181
182 * src/libmtp.c: deal with setting of metadata sets for u16/u32:s that
183 are ranges or enums, rounding and twiddling if need be. This is
184 needed because some new devices (like the TrekStor Sweez,
185 has duration defined as a range: MIN 0, MAX 65535000, STEP 1
186 and Sandisk Sansa c240 has duration as range: MIN 0, MAX 2147483000,
187 STEP 1000) whereas old devices would just accept any value.
188
Richard Lowd47b9212007-08-16 21:14:23 +00001892007-08-16 Richard Low <richard@wentnet.com>
190
191 * src/ptp-pack.c: allow packing of NULL strings
192
rreardon21a3a9d2007-08-15 10:56:31 +00001932007-08-15 Robert Reardon <rreardon@monkshatch.vispa.com>
194
195 * src/libmtp.c: return device max values for representative
rreardon65b47322007-08-15 15:17:54 +0000196 samples.
rreardon21a3a9d2007-08-15 10:56:31 +0000197
Richard Low92cb2692007-08-15 09:35:23 +00001982007-08-15 Richard Low <richard@wentnet.com>
199
200 * src/libusb-glue.c: added Philips Shoqbox
201
Linus Walleij53c5f4e2007-08-13 08:27:58 +00002022007-08-13 Linus Walleij <triad@df.lth.se>
203
204 * src/ptp.c: sync to upstream.
205
Linus Walleijdb906232007-08-07 15:59:09 +00002062007-08-07 Linus Walleij <triad@df.lth.se>
207
208 * configure.ac: bump to 0.2.1.
209 * src/Makefile.am: interface to libmtp.so.6.0.1.
210 * Release libmtp 0.2.1!
211
Linus Walleijdbcc8242007-08-05 22:31:26 +00002122007-08-06 Linus Walleij <triad@df.lth.se>
213
Linus Walleije23000a2007-08-06 20:47:17 +0000214 * configure.ac: tag on the large file support compilation flag.
Linus Walleij07795772007-08-06 18:44:06 +0000215 * src/libmtp.c: smack up the data file transfer function so it
216 works again and *finally* should support 64bit sizes!
Linus Walleijd2778d12007-08-06 19:24:58 +0000217 Then wrapped the track sending function around the file
218 sending function so there is no more pointless code duplication
Linus Walleij05358382007-08-06 20:46:35 +0000219 giving rise to ever more bugs. Enable LFS, Large File Support so
220 we can handle 64bit files properly.
221 * examples/sendtr.c: shape up print-outs, LFS support.
Linus Walleijd2778d12007-08-06 19:24:58 +0000222 * examples/sendfile.c: dito.
Linus Walleij07795772007-08-06 18:44:06 +0000223
2242007-08-06 Linus Walleij <triad@df.lth.se>
225
Linus Walleijdbcc8242007-08-05 22:31:26 +0000226 * src/ptp.c: fixed a stray error print bug.
227 * src/libmtp.c: overhaul of all proplist setting to follow the same
228 design pattern. Probably fixed a few opd memory leaks along the road.
229
Richard Lowfd86bd12007-08-05 09:41:06 +00002302007-08-05 Richard Low <richard@wentnet.com>
231
232 * src/libmtp.c: send 64 bit filesize
233
Linus Walleijd9d28d52007-08-04 19:01:18 +00002342007-08-04 Linus Walleij <triad@df.lth.se>
235
236 * src/libmtp.c: fix up the 64bit filesize and tracksize support.
237 There were some bugs...
Linus Walleij529d08f2007-08-04 19:20:00 +0000238 * src/Makefile.am: tweak interface revision so that we produce
239 libmtp.so.6 now.
240 * configure.ac: bump library revision to 0.2.0.
Linus Walleij2f049902007-08-04 20:02:39 +0000241 * examples/hotplug.c: switch to use ATTR{} instead of SYSFS{}
Linus Walleijdbcc8242007-08-05 22:31:26 +0000242 * Release libmtp 0.2.0!
Linus Walleijd9d28d52007-08-04 19:01:18 +0000243
Richard Low25bf8002007-08-04 08:36:53 +00002442007-08-04 Richard Low <richard@wentnet.com>
245
246 * src/libusb-glue.c: add Sansa m240 (a different ID to before)
247 Give the Toshiba Gigabeat S
248 DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL.
249
2502007-08-03 Marcus Meissner <meissner@suse.de>
Linus Walleij960ebb62007-08-03 21:38:34 +0000251
252 * m4/byteorder.m4: byteorder fixes.
253
Richard Lowcc265902007-07-30 20:14:12 +00002542007-07-30 Richard Low <richard@wentnet.com>
255
256 * src/ptp-pack.c: fix up array packing
257
Linus Walleijabf54752007-07-30 19:51:54 +00002582007-07-30 Linus Walleij <triad@df.lth.se>
259
260 * src/ptp-pack.c: try to get a uniform 64 bit
261 support, use some old macro code.
262
Richard Lowc3f5fc32007-07-29 09:40:50 +00002632007-07-29 Richard Low <richard@wentnet.com>
264
265 * src/libmtp.c: 64 bit filesize support for tracks
266 * src/ptp-pack.c: ditto
267 * src/ptp.h: ditto
268
Richard Low39a147a2007-07-27 20:18:01 +00002692007-07-27 Richard Low <richard@wentnet.com>
270
271 * src/libmtp.c: Some better NULL checks
272
Linus Walleijc51a4312007-07-27 06:28:39 +00002732007-07-27 Linus Walleij <triad@df.lth.se>
274
275 * examples/hotplug.c: changed subsystem from "usb_device"
276 to "usb". Presumably a change in the kernel some time ago.
277
Richard Lowbd14bf42007-07-21 11:25:11 +00002782007-07-21 Richard Low <richard@wentnet.com>
279
280 * src/libmtp.c: Correctly bail out of LIBMTP_Get_Storage
281
Linus Walleij5d533bb2007-07-17 21:48:57 +00002822007-07-17 Linus Walleij <triad@df.lth.se>
283
284 * examples/reset.c: Add a device reset program.
285 * src/libmtp.c: Add reset command.
286 * src/ptp.c: dito, and sync in upstream changes.
287 * src/ptp.h: dito, and sync in upstream changes.
288 * src/ptp-pack.c: sync in upstream changes.
289
Richard Low0fa83522007-07-17 20:05:08 +00002902007-07-17 Richard Low <richard@wentnet.com>
291
292 * src/libmtp.c: Added some more (paranoid) NULL checks
293
Richard Low8e8d9d42007-07-14 10:36:50 +00002942007-07-14 Richard Low <richard@wentnet.com>
295
296 * src/libmtp.c: Add a NULL check
297
2982007-07-13 Richard Low <richard@wentnet.com>
Richard Low14afeb72007-07-13 19:11:56 +0000299
300 * src/libusb-glue.c: add Disney MixMax
301
Linus Walleij9521e2b2007-07-10 21:50:42 +00003022007-07-11 Linus Walleij <triad@df.lth.se>
303
304 * src/libmtp.c: put in Tero's name in the preamble.
305 * src/libusb-glue.c: make the dump function sump out the zuper zecret
306 devize dezcriptorz in clear text hex.
307
Linus Walleij3e13dda2007-07-09 22:42:17 +00003082007-07-10 Linus Walleij <triad@df.lth.se>
309
Linus Walleijc51a4312007-07-27 06:28:39 +0000310 * examples/hotplug.c: force HAL OGG support on iriver devices.
311 They all have it! Also force for two other devices that does
312 this.
Linus Walleij3e13dda2007-07-09 22:42:17 +0000313
Linus Walleij2b218852007-07-07 20:16:36 +00003142007-07-07 Linus Walleij <triad@df.lth.se>
315
316 * src/libusb-glue.h: new flag for the case when getting the object
317 property list of all metadata for all objects is broken.
318 * src/libusb-glue.c: tentatively tag a Philips device with this flag.
319 * src/libmtp.c: fixed usage of returned pointers from realloc(),
320 introduce new flag.
321
tsaarnia3eb60a2007-07-06 17:41:30 +00003222007-07-05 Tero Saarni <tero.saarni@gmail.com>
323
324 * src/libmtp.c: update cache when manipulating objects instead of
325 always flushing the whole cache.
326
Linus Walleij338ade42007-07-03 20:44:08 +00003272007-07-03 Linus Walleij <triad@df.lth.se>
328
329 * src/libmtp.c: use the params->proplist metadata cache. Help
330 rid all flush_handles() you can in order to add even more to
331 the efficiency of the cache.
332
Linus Walleijf0bf4372007-07-01 21:47:38 +00003332007-07-01 Linus Walleij <triad@df.lth.se>
334
335 * src/ptp.c: sync to upstream gPhoto source.
336 * src/ptp.h: dito.
337 * src/ptp-pack.c: dito.
338 * src/libmtp.c: use the params->objectinfo object info cache to
339 speed things up considerably. This is exactly what libgphoto2
340 does so now we move closer to upstream. I believe this also
341 fixes quite a few memory leaks because we weren't freeing the
342 strings inside the objectinfo previously.
343
Linus Walleije60d56b2007-05-28 22:13:12 +00003442007-05-29 Linus Walleij <triad@df.lth.se>
345
346 * src/libmtp.c: use the set object prop list command to set album
347 props if available. Follow metadata set design pattern used for
348 tracks; check first if the object type can set name/artist/genre.
349
jefferaif28f2a12007-05-24 23:07:41 +00003502007-05-24 Jeff Mitchell <me@jefferai.com>
351
Linus Walleije60d56b2007-05-28 22:13:12 +0000352 * hotplug.sh.in: Properly install the HAL FDI rules if
jefferaie3f1bba2007-05-24 23:27:13 +0000353 the user so chooses to when prompted.
354
3552007-05-24 Jeff Mitchell <me@jefferai.com>
356
Linus Walleije60d56b2007-05-28 22:13:12 +0000357 * examples/hotplug.c: Fix/update HAL output to conform
jefferaif28f2a12007-05-24 23:07:41 +0000358 to new specs. Fix whitespacing to be consistent.
359
Richard Low34a624a2007-05-17 12:32:35 +00003602007-05-17 Richard Low <richard@wentnet.com>
361
362 * src/libusb-glue.c: added Samsung YH-920
363
Linus Walleij99466e32007-05-11 21:42:53 +00003642007-05-11 Linus Walleij <triad@df.lth.se>
365
366 * examples/hotplug.c: output a usb.ids map if need be.
367 * sync-usbids.sh: script to assist in comparing our device
368 database to the linux-usb database so we can submit new
369 entries to it more easily. Please extend this until it
370 creates automated diff:s if you can!
371
Linus Walleij229b24b2007-05-09 22:10:55 +00003722007-05-10 Linus Walleij <triad@df.lth.se>
373
374 * src/libusb-glue.c: some new devices, some rewording etc.
375
Linus Walleij4fa9d5e2007-05-05 20:35:56 +00003762007-05-05 Linus Walleij <triad@df.lth.se>
377
378 * src/libusb-glue.h: removed the DUALMODE flag, it's pointless and
379 equal to the problem solved by the UNLOAD_DRIVER flag.
380 * src/libusb-glue.c: dito, move the only DUALMODE flag into an
Linus Walleij1327a852007-05-06 19:47:38 +0000381 UNLOAD_DRIVER flag. Added Archos Gmini.
Linus Walleij4fa9d5e2007-05-05 20:35:56 +0000382
Richard Low6711f442007-05-05 19:00:59 +00003832007-05-05 Richard Low <richard@wentnet.com>
384
385 * src/libusb-glue.c: added Philips PSA610
386 * src/libmtp.c: code to recursively get object handles for each
387 assoc.
Linus Walleij4fa9d5e2007-05-05 20:35:56 +0000388 * src/ptp.h: ditto
Richard Low6711f442007-05-05 19:00:59 +0000389
Richard Low1869d272007-04-28 13:55:17 +00003902007-04-28 Richard Low <richard@wentnet.com>
391
392 * src/libusb-glue.c: new device
393
Linus Walleijeccaae02007-04-26 08:19:03 +00003942007-04-26 Linus Walleij <triad@df.lth.se>
395
Linus Walleij4fa9d5e2007-05-05 20:35:56 +0000396 * src/libusb-glue.c: memory leak: dangling, unused pointer killed.
Linus Walleijeccaae02007-04-26 08:19:03 +0000397
Linus Walleijadce4a52007-04-23 07:28:11 +00003982007-04-23 Linus Walleij <triad@df.lth.se>
399
400 * src/libmtp.h.in: extend LIBMTP_album_t to include fields for
401 artist and genre. This is sort of required so we must change
402 the API to have it working properly.
403 * src/libmtp.c: dito. Reflect changes in implementation.
404
Linus Walleij953504f2007-04-18 19:01:11 +00004052007-04-18 Linus Walleij <triad@df.lth.se>
406
407 * src/ptp.c: sync to upstream gPhoto source.
408 * src/ptp.h: dito.
409
Richard Low3637e1a2007-04-17 21:25:10 +00004102007-04-17 Richard Low <richard@wentnet.com>
411
412 * src/libusb-glue.c: new device
413
Richard Low856f3452007-04-13 11:21:26 +00004142007-04-13 Richard Low <richard@wentnet.com>
415
416 * src/libusb-glue.c: new devices
417
Linus Walleijfd531632007-04-12 19:49:58 +00004182007-04-12 Linus Walleij <triad@df.lth.se>
419
420 * examples/hotplug.c: fix GOTO style in udev map.
421
Linus Walleije73f74a2007-04-02 08:51:35 +00004222007-04-02 Linus Walleij <triad@df.lth.se>
423
424 * examples/files.c: some WIN32 64bit prefix fixup.
425 * examples/tracks.c: dito.
426
tedbullockcd9f4992007-03-29 06:00:40 +00004272007-03-28 Ted Bullock <tbullock@canada.com>
428
Linus Walleije73f74a2007-04-02 08:51:35 +0000429 * examples/*.c: Print library version number on execution of examples.
430 * src/libmtp.h.in: New version number string to aid version echoing.
tedbullockcd9f4992007-03-29 06:00:40 +0000431
Linus Walleij3968f362007-03-26 19:50:05 +00004322007-03-26 Linus Walleij <triad@df.lth.se>
433
434 * configure.ac: bump version to 0.1.5, release 0.1.5!
435 * src/Makefile.am: bump lib interface revision to libmtp.so.5.2.1,
436 backwards compatible to libmtp.so.5.
437
Richard Low057ea772007-03-24 13:37:38 +00004382007-03-24 Richard Low <richard@wentnet.com>
439
440 * src/libusb-glue.c: fixed bug in zero read code
441
Linus Walleije7df6532007-03-23 08:20:06 +00004422007-03-23 Linus Walleij <triad@df.lth.se>
443
444 * src/libmtp.c: refactored MTP property list handling code to make
445 things simple. Removed the flag for MTP enhanced: there are devices
Linus Walleij3968f362007-03-26 19:50:05 +0000446 that will not work without MTP enhanced (for example the Samsung
447 YP-K5 will only support setting object property lists, not
448 individual object properties, leaving out parts of the MTP basic
449 subset), thus we are allowed to reverse-engineer and implement this
450 for interoperability. I also made the output from
451 LIBMTP_Dump_Device_Info() considerably more verbose, plotting out
452 the ranges and possible enumerated values of all object properties.
453 For example you can see that the secret values associated with
454 Audible.com property 0xda01 is an enumerated value that can be
455 2, 3 or 4 (etc).
Linus Walleije7df6532007-03-23 08:20:06 +0000456
Richard Low15731fe2007-03-22 20:27:20 +00004572007-03-22 Richard Low <richard@wentnet.com>
458
459 * src/ptp.c: PTP_OC_MTP_SetObjPropList implementation
460 * src/ptp.h: ditto
461 * src/libmtp.c: Use PTP_OC_MTP_SetObjPropList when updating track
462 metadata.
463
Richard Lowbf2675c2007-03-18 18:20:26 +00004642007-03-18 Richard Low <richard@wentnet.com>
465
466 * src/libusb-glue.c: new devices. Some of the Samsung players may
Richard Low6c8fea42007-03-18 19:11:52 +0000467 need DEVICE_FLAG_NO_ZERO_READS to be set - I only know the YP-K5
468 needs it.
Richard Lowbf2675c2007-03-18 18:20:26 +0000469
Linus Walleij2be40c72007-03-16 15:19:44 +00004702007-03-16 Linus Walleij <triad@df.lth.se>
471
472 * src/libusb-glue.h: introducing yet another device flag for the
473 irivers bugged firmwares, this is for the Alzheimer disease that
474 cause irivers to forget that OGG files are OGG files.
475 * src/libmtp.c: dito.
476 * src/libusb-glue.c: introduce this flag for all iriver devices.
477 * examples/pathutils.c: found a (small) bug.
478
Linus Walleijd1292842007-03-12 11:52:00 +00004792007-03-12 Linus Walleij <triad@df.lth.se>
480
481 * Makefile.am: cleanup patch from Rafael Laboissiere.
Linus Walleija4942fc2007-03-12 19:23:21 +0000482 * src/libusb-glue.c: refactored device detection code to
483 immediately test if the device is in the known devices list if it
484 does not feature a MTP device descriptor. This fixes the problem
485 of not being able to mix devices with proper descriptors and
486 non-detected devices.
Linus Walleijd1292842007-03-12 11:52:00 +0000487
Linus Walleijc2c96972007-03-07 08:12:31 +00004882007-03-07 Linus Walleij <triad@df.lth.se>
489
490 * src/libusb-glue.c: remove libgphoto2 functions that we
491 don't use.
Linus Walleij45a86372007-03-07 09:36:19 +0000492 * src/libusb-glue.h: export the free_mtpdevice_list() function,
493 new signature of find_usb_devices().
494 * src/libmtp.c: shrink code, pass as list of devices instead of
495 several huge arrays between libmtp.c and USB glue layer in
496 libusb-glue.c using the nifty list struct defined in libusb-glue.h.
Linus Walleijd24a7ab2007-03-07 21:48:43 +0000497 * Eventually release libmtp 0.1.4.
Linus Walleijc2c96972007-03-07 08:12:31 +0000498
Linus Walleijbfcb7922007-03-06 20:14:04 +00004992007-03-06 Linus Walleij <triad@df.lth.se>
500
501 * src/libusb-glue.c: rewrote one more function to be
502 non-recursive, perhaps I found the remaining bug, just
503 cannot see that right now, will test tomorrow.
504
Linus Walleijf27d1cd2007-03-05 14:23:00 +00005052007-03-05 Linus Walleij <triad@df.lth.se>
506
507 * src/libmtp.c: rewrite recursive function to linear.
508 * src/libusb-glue.h: create a wrapper type for the
509 device list instead of abusing the libusb device "next"
510 field in our code.
511 * src/libusb-glue.c: rewrite all recursive functions to
512 linear, use wrapper objects, don't copy the libusb device
513 struct, instead just store a pointer to it. This magically
514 solved a bug...
515
Linus Walleij82265222007-03-04 19:47:08 +00005162007-03-04 Linus Walleij <triad@df.lth.se>
517
518 * src/Makefile.am: bump library interface to libmtp.so.5.2.0
519 backwards compatible with any libmtp.so.5 interface, for
520 imminent libmtp 0.1.4 release.
521
tedbullock848009b2007-03-03 23:20:12 +00005222007-03-03 Ted Bullock <tbullock@canada.com>
tedbullock36f2afb2007-03-03 22:16:44 +0000523
524 * src/libusb-glue.c: Don't echo warnings about reading a single
Linus Walleij82265222007-03-04 19:47:08 +0000525 extra byte on devices in which DEVICE_FLAG_NO_ZERO_READS has
526 been set
tedbullock848009b2007-03-03 23:20:12 +0000527 * src/libmtp.c: New API function to retrieve the number of devices
Linus Walleij82265222007-03-04 19:47:08 +0000528 in a list of connected devices
tedbullock848009b2007-03-03 23:20:12 +0000529 * src/libmtp.h: New API function to retrieve the number of devices
Linus Walleij82265222007-03-04 19:47:08 +0000530 in a list of connected devices
tedbullock848009b2007-03-03 23:20:12 +0000531 * examples/detect.c: Use new API function to count number of devices
Linus Walleij82265222007-03-04 19:47:08 +0000532 that were detected
tedbullock36f2afb2007-03-03 22:16:44 +0000533
tedbullock848009b2007-03-03 23:20:12 +00005342007-03-03 Linus Walleij <triad@df.lth.se>
Linus Walleij049f50c2007-03-03 20:30:43 +0000535
536 * src/libusb-glue.h: Tiresome ramblings to explain exactly what
tedbullock848009b2007-03-03 23:20:12 +0000537 the (now renamed) device flag DEVICE_FLAG_NO_ZERO_READS really
Linus Walleij049f50c2007-03-03 20:30:43 +0000538 means.
539 * src/libusb-glue.c: Renamed flag. Indent code :-) Reading the code
540 and being impressed by our ability to iron out the root cause
Linus Walleij4cec9872007-03-03 21:00:53 +0000541 of this kinda weird thing... Fix a few compile warnings.
Linus Walleij049f50c2007-03-03 20:30:43 +0000542
Richard Low4fd59d62007-03-03 16:34:37 +00005432007-03-03 Richard Low <richard@wentnet.com>
544
545 * src/libusb-glue.c: (hopefully) fixed iRiver read errors. Enabled
546 get object prop lists for Clix since it appears to work.
547 * src/libusb-glue.h: ditto
548 * src/ptp.h: ditto
549
Linus Walleij8a5b8852007-02-28 14:25:39 +00005502007-02-28 Linus Walleij <triad@df.lth.se>
551
552 * src/ptp.h: Upstream accepted our patch so synced it in.
553
Linus Walleij07fde342007-02-27 06:09:46 +00005542007-02-27 Linus Walleij <triad@df.lth.se>
555
556 * src/ptp.c: Synced in upstream version which removes the
557 offending line.
Linus Walleij56b037f2007-02-27 08:04:01 +0000558 * src/libmtp.c: replaces strcmp() for strcasecmp() in folder
559 detection since Windows and some devices (such as iRivers)
560 ignore case and user capital letters for default folders.
Linus Walleij07fde342007-02-27 06:09:46 +0000561
tedbullock6c060952007-02-26 19:07:23 +00005622007-02-22 Ted Bullock <tbullock@canada.com>
563
Linus Walleij07fde342007-02-27 06:09:46 +0000564 * src/ptp.c: Comment out line in ptp_exit_fd_handler that was
565 closing a file descriptor. This is not the responsibility of
566 the PTP Layer. Defect and solution found by Rob Reardon
tedbullock6c060952007-02-26 19:07:23 +0000567
Linus Walleij304433d2007-02-26 08:02:47 +00005682007-02-26 Linus Walleij <triad@df.lth.se>
569
Linus Walleij07fde342007-02-27 06:09:46 +0000570 * src/libmtp.c: Implement a check for PTP_OC_MTP_SetObjectPropValue
571 in the LIBMTP_Update_Track_Metadata() function, there are
572 obviously devices that do not support this, but only
573 PTP_OC_MTP_SetObjPropList instead (such as the Samsung YH 925-GS),
574 but we haven't implemented that yet. Problems are
Linus Walleij304433d2007-02-26 08:02:47 +0000575 atleast reported correctly now.
576
Richard Low4eb01122007-02-24 10:11:32 +00005772007-02-24 Richard Low <richard@wentnet.com>
578
579 * src/libusb-glue.c: Fix incorrect transfer sizes causing zero
580 write issues
581
Linus Walleij039d1dd2007-02-23 22:34:07 +00005822007-02-23 Linus Walleij <triad@df.lth.se>
583
584 * src/libmtp.c: Undeprecate getting first device code.
585
Richard Low0f794762007-02-23 22:06:27 +00005862007-02-23 Richard Low <richard@wentnet.com>
587
588 * src/libmtp.c: Fix crash when no devices connected
589
tedbullock2b45f2e2007-02-23 20:16:37 +00005902007-02-23 Ted Bullock <tbullock@canada.com>
591
592 * examples/detect.c: Stub out probe functionality
Richard Low0f794762007-02-23 22:06:27 +0000593 * src/libusb-glue.c: Remove old uni-device cruft code
594 * src/libusb-glue.h: Remove old uni-device cruft code
tedbullock433d2172007-02-23 22:39:12 +0000595 * Replace LIBMTP_ERROR_N0_DEVICE_ATTACHED with
596 LIBMTP_ERROR_NO_DEVICE_ATTACHED across entire project
tedbullock2b45f2e2007-02-23 20:16:37 +0000597
tedbullock20eb8202007-02-23 00:33:36 +00005982007-02-22 Ted Bullock <tbullock@canada.com>
599
600 * examples/albums.c: Updated to use new multi device code
tedbullock51649202007-02-23 03:04:33 +0000601 * examples/tracks.c: Updated to use new multi device code
602 * examples/files.c: Updated to use new multi device code
tedbullock20eb8202007-02-23 00:33:36 +0000603
tedbullocke7713642007-02-18 23:10:09 +00006042007-02-18 Ted Bullock <tbullock@canada.com>
605
606 * src/libmtp.c: Altered the function LIBMTP_Get_First_Device
Linus Walleij039d1dd2007-02-23 22:34:07 +0000607 to wrap around the multi device API. Also added deprecation
608 warnings to avoid using this function
tedbullocke7713642007-02-18 23:10:09 +0000609
Richard Lowd284f072007-02-17 08:52:41 +00006102007-02-17 Richard Low <richard@wentnet.com>
611
Richard Low02724f62007-02-17 09:47:26 +0000612 * src/libusb-glue.c: Debug output fixes and read/write sizes changed
Richard Low507e7fe2007-02-17 09:04:42 +0000613 * src/libmtp.c: memset params to 0 to avoid freeing unalloced
614 memory
Richard Low02724f62007-02-17 09:47:26 +0000615 * src/ptp.h: read/write sizes changed
Richard Lowd284f072007-02-17 08:52:41 +0000616
rreardonbc730092007-02-15 14:32:20 +00006172007-02-15 Robert Reardon <rreardon@monkshatch.vispa.com>
rreardon34511b12007-02-15 14:27:56 +0000618
619 * src/libmtp.c: Fix a segfault in new error handling code.
620
Linus Walleij68b19c02007-02-15 11:50:37 +00006212007-02-15 Linus Walleij <triad@df.lth.se>
622
623 * src/libmtp.c: Adding some sanity checks to error stack code.
Linus Walleij3d78c4c2007-02-15 12:18:12 +0000624 * examples/newplaylist.c: LGPL boilerplate, crediting Robert.
625 * examples/playlists.c: LGPL boilerplate.
626 * examples/sendfile.c: LGPL boilerplate, crediting me and Chris.
627 * examples/sendtr.c: LGPL boilerplate, crediting me, Chris,
628 Shaun, Enrique.
629 * examples/thumb.c: LGPL boilerplate, crediting Robert.
630 * examples/tracks.c: LGPL boilerplate.
631 * examples/trexist.c: LGPL boilerplate, crediting noone.
Linus Walleij68b19c02007-02-15 11:50:37 +0000632
tedbullock69a445b2007-02-15 07:41:04 +00006332007-02-15 Ted Bullock <tbullock@canada.com>
634
635 * examples/folders.c: Updated to use new multi device code
636 * src/libmtp.c: Fixed potential memory leaks
Linus Walleij57c2eff2007-02-15 12:02:04 +0000637 * src/libusb-glue.c: Fixed potential memory leaks and fixed device
638 release segfault for multiple devices
tedbullock69a445b2007-02-15 07:41:04 +0000639
tedbullock0f033cb2007-02-14 20:56:54 +00006402007-02-14 Ted Bullock <tbullock@canada.com>
641
Linus Walleij57c2eff2007-02-15 12:02:04 +0000642 * src/libusb-glue.c: Wrote three new recursive functions to avoid
643 extreme levels of multiple indirection and to clean the code up
644 a bit for multiple devices.
645 * examples/detect.c: Adjusted function calls to use new multiple
646 device code.
tedbullock0f033cb2007-02-14 20:56:54 +0000647 * src/libmtp.h.in: Added prototype for LIBMTP_Release_Device_List
648
Linus Walleij2d3f7b82007-02-14 09:24:20 +00006492007-02-12 Ted Bullock <tbullock@canada.com>
650
651 * src/libmtp.c: Two new functions (create_usb_mtp_devices and
Linus Walleij57c2eff2007-02-15 12:02:04 +0000652 LIBMTP_Get_Connected_Devices) to add support for multiple devices
653 to client applications
Linus Walleij2d3f7b82007-02-14 09:24:20 +0000654 * src/libmtp.h: Added LIBMTP_Get_Connected_Devices as a publicly
Linus Walleij57c2eff2007-02-15 12:02:04 +0000655 accessible function
Linus Walleij2d3f7b82007-02-14 09:24:20 +0000656 *libusb-glue.c: Renamed connect_mtp_devices to find_usb_devices
657 *libusb-glue.h: Renamed connect_mtp_devices to find_usb_devices
658
Linus Walleij2a1e3a42007-02-12 08:18:31 +00006592007-02-09 Ted Bullock <tbullock@canada.com>
660
661 * src/libusb-glue.c: Addressed a number of potential memory leaks in
Linus Walleij57c2eff2007-02-15 12:02:04 +0000662 the new multiple device code
Linus Walleij2a1e3a42007-02-12 08:18:31 +0000663
Linus Walleij7b7a0e22007-02-05 18:22:27 +00006642007-02-05 Linus Walleij <triad@df.lth.se>
665
666 * src/libmtp.h.in: LGPL boilerplate.
667 * src/libusb-glue.h: LGPL boilerplate.
668 * src/unicode.h: LGPL boilerplate.
669 * src/util.h: LGPL boilerplate.
Linus Walleij543badf2007-02-05 19:07:38 +0000670 * examples/albumart.c: LGPL boilerplate, crediting Andy.
671 * examples/pathutils.h: LGPL boilerplate, crediting Chris.
672 * examples/pathutils.c: LGPL boilerplate, crediting me and Chris.
673 * examples/common.h: LGPL boilerplate.
674 * examples/albums.c: LGPL boilerplate, crediting Chris.
675 * examples/connect.c: LGPL boilerplate, crediting Chris.
676 * examples/delfile.c: LGPL boilerplate, crediting me and Chris.
677 * examples/detect.c: LGPL boilerplate.
678 * examples/emptyfolders.c: LGPL boilerplate, crediting Andy.
679 * examples/files.c: LGPL boilerplate.
680 * examples/folders.c: LGPL boilerplate.
681 * examples/format.c: LGPL boilerplate.
682 * examples/getfile.c: LGPL boilerplate, crediting me and Chris.
683 * examples/getplaylist.c: LGPL boilerplate.
684 * examples/hotplug.c: LGPL boilerplate, crediting me and Marcus.
685 * examples/newfolder.c: LGPL boilerplate, crediting me and Chris.
Linus Walleij7b7a0e22007-02-05 18:22:27 +0000686
Linus Walleija8a19cc2007-02-02 22:13:17 +00006872007-02-02 Linus Walleij <triad@df.lth.se>
688
689 * src/ptp.c: sync upstream.
690 * src/ptp.h: dito.
691 * src/ptp-pack.c: dito.
692 * src/libmtp.c: make changes necessary to handle
693 the new iconv(3) code in ptp-pack.c. People will have to
Linus Walleij073c4172007-02-02 22:26:33 +0000694 use recent stdlibc, glibc or libiconv. Also call new memory
Linus Walleij2f45d222007-02-02 22:47:39 +0000695 clean-up functions. Fix LGPL boilerplate text.
696 * src/unicode.c: Fix LGPL boilerplate text.
697 * src/utils.c: Fix LGPL boilerplate text.
698 * src/libusb-glue.c: Fix LGPL boilerplate text.
Linus Walleija8a19cc2007-02-02 22:13:17 +0000699
Linus Walleij550d6d52007-01-24 14:32:51 +00007002007-01-24 Ted Bullock <tbullock@canada.com>
701
702 * src/libusb-glue.c: new function to retrieve multiple device
703 instances.
704 * src/libusb-glue.h: dito.
705 * src/libmtp.h.in: new error codes.
706
Linus Walleij070e9b42007-01-22 08:49:28 +00007072007-01-22 Linus Walleij <triad@df.lth.se>
708
709 * examples/albumart.c: use the new errostack.
710 * examples/delfile.c: dito.
711 * examples/detect.c: dito.
712 * examples/emptyfolders.c: dito.
713 * examples/format.c: dito.
714 * examples/getfile.c: dito.
715 * examples/getplaylist.c: dito.
716 * examples/newfolder.c: dito.
717 * examples/newplaylist.c: dito.
718 * examples/playlists.c: dito.
719 * examples/sendfile.c: dito.
720 * examples/sendtr.c: dito.
721 * examples/thumb.c: dito.
722 * src/libmtp.c: add some errors to the stack so we can
723 see how it's to be used. (Just a first try...)
Linus Walleij552ba322007-01-22 11:49:59 +0000724 * src/libusb-glue.c: move the LIBMTP_Get_Supported_Devices()
725 function into this file cause it only return USB devices
726 anyway and could be renamed LIBMTP_Get_Supported_USB_Devices()
727 (but let's not do that renaming since it would break the API).
728 For now let's understand this is a USB-only function by
729 simply putting it in the libusb-glue.c file.
Linus Walleij070e9b42007-01-22 08:49:28 +0000730
7312007-01-22 Ted Bullock <tbullock@canada.com>
732
733 * src/libusb-glue.c: first hack at creating an interface
734 to retrieve multiple devices.
735 * src/libmtp.h.in: new error codes related to multiple devices.
736
Richard Low7059ed42007-01-21 09:33:34 +00007372007-01-21 Richard Low <richard@wentnet.com>
738
739 * src/libusb-glue.c: more new devices
740
Linus Walleij2715c442007-01-20 22:35:29 +00007412007-01-20 Linus Walleij <triad@df.lth.se>
742
743 * src/libmtp.h.in: error stack handling like in libnjb.
744 just bare bones implementation as of now but the idea
745 should be clearly visible. TODO: add a plethora of
746 errors and adjust examples to make use of the error
747 stack.
748 * src/libmtp.c: dito.
749
Richard Lowa98d0542007-01-20 12:31:07 +00007502007-01-20 Richard Low <richard@wentnet.com>
751
752 * src/libusb-glue.c: new device 'Philips PSA235'
753
Linus Walleij85a4c032007-01-16 20:42:18 +00007542007-01-16 Linus Walleij <triad@df.lth.se>
755
756 * configure.ac: bump and release 0.1.3.
757 * src/Makefile.am: bump interface REVISION. Nothing changed
758 externally really.
759
Linus Walleijd85d2bb2007-01-11 21:32:48 +00007602007-01-11 Linus Walleij <triad@df.lth.se>
761
762 * src/libmtp.sym: updated symbol table for mingw32 but does
763 anyone use this? Also I believe one could auto-generate
764 this some way, just haven't figured out how... Perhaps with
765 a funky script that massage libmtp.h if nothing else.
766
Richard Low4df32f82007-01-11 20:04:39 +00007672007-01-11 Richard Low <richard@wentnet.com>
768
769 * src/libusb-glue.c: a zero read fix
770 * src/libmtp.c: fix spelling mistake
771
Linus Walleijc49c6372007-01-09 00:18:51 +00007722007-01-09 Linus Walleij <triad@df.lth.se>
773
774 * src/libusb-glue.c: repair callbacks, structure the code just
775 a little bit.
776 * src/libmtp.c: don't assign values to writes or reads, use the
777 PTP transport intrinsics instead.
778
Linus Walleij15af8532007-01-07 12:45:20 +00007792007-01-07 Orson Teodoro <orsonteodoro@yahoo.com>
780
781 * src/ptp.h: Encoding profile.
782 * src/ptp.c: Dito.
783
Linus Walleij58b62792007-01-07 12:38:59 +00007842006-01-07 Linus Walleij <triad@df.lth.se>
785
786 * src/libusb-glue.c: (re)introduce de-halting of endpoints
787 as this is needed by VMWare emulation. Must check whether
Linus Walleijb97379b2007-01-07 12:42:20 +0000788 this causes problems for other archs! Problem was reported
789 by Orson Teodoro under i686 Gentoo, with a suggested patch.
Linus Walleij58b62792007-01-07 12:38:59 +0000790
Linus Walleija0323272007-01-07 12:21:30 +00007912006-01-07 Marcus Meissner <meissner@suse.de>
792
793 * src/ptp.c: sync to upstream libgphoto2.
794 * src/ptp.h: dito.
795 * src/ptp-pack.c: dito.
796 * libusb-glue.c: fixes to move low-level functions
797 out of ptp.c and into this libmtp-specific portion.
798 libgphoto2 has been similarly altered to use a usb.c
799 file for the low-level stuff. (This was a long needed
800 split anyway.)
801
Linus Walleij58b62792007-01-07 12:38:59 +00008022007-01-03 Richard Low <richard@wentnet.com>
Richard Low68f45882007-01-03 10:08:31 +0000803
804 * src/libusb-glue.c: fix zero write bug
Richard Lowef05b892007-01-03 21:18:56 +0000805 * src/ptp.c: ditto
Richard Low68f45882007-01-03 10:08:31 +0000806
Linus Walleij99ed83c2007-01-02 18:46:02 +00008072007-01-02 Linus Walleij <triad@df.lth.se>
808
809 * src/libusb-glue.c: fix up comments, remove things
810 refering to stuff we don't have.
811
Richard Lowb89ea942007-01-02 11:47:19 +00008122007-01-02 Richard Low <richard@wentnet.com>
813
814 * src/libmtp.c: another try at split headers/packet sizes
815 * src/ptp.c: ditto
816 * src/libusb-glue.c: ditto
817
Linus Walleijc70a6df2007-01-01 22:19:08 +00008182007-01-01 Linus Walleij <triad@df.lth.se>
819
820 * src/libmtp.c: move default setting of split headers
821 off to ptp.c open session.
822 * src/ptp.c: dito.
823
Richard Low021421e2007-01-01 18:08:57 +00008242007-01-01 Richard Low <richard@wentnet.com>
825
826 * src/libmtp.c: split headers/packet size fix
827 * src/ptp.c: ditto
828 * src/ptp.h: ditto
829 * src/libusb-glue.c: ditto
830
Linus Walleijfa2d1d12007-01-01 17:08:13 +00008312007-01-01 Orson Teodoro <orsonteodoro@yahoo.com>
832
833 * src/ptp.h: changed some WMDRMND def codes to AAVT def codes.
834 addition of AAVT error codes.
835 * src/ptp.c: changes to reflect modifications done in ptp.h
836
Linus Walleija5ab8c42006-12-31 09:25:36 +00008372006-12-31 Linus Walleij <triad@df.lth.se>
838
839 * configure.ac: bump to 0.1.2.
840 * src/Makefile.am: bump interface revision. (Compatible.)
841 * RELEASE 0.1.2.
842
Linus Walleij02ee8802006-12-30 17:27:58 +00008432006-12-30 Linus Walleij <triad@df.lth.se>
844
845 * examples/pathutils.c: reflect new filetypes.
846 * examples/sendtr.c: dito.
847
Linus Walleij5fb47132006-12-30 15:35:48 +00008482006-12-30 Orson Teodoro <orsonteodoro@yahoo.com>
849
850 * src/ptp.h: added WMDRMPD, WMDRMND, WMPPD, WPDWCN extension
851 codes. added more format object codes flac, m4a, 3gp, aac,
852 xml, xls, ppt, etc. 0x9101-0x910B identfiers are infixed
853 with WMDRMPD. Added more object properties codes (0xDCD3-0xDD72).
854 Added more device property codes.
855 Changed PTP_OFC_MTP_WindowsImageFormat to 0xb881 reflect spec.
856 * src/ptp.c: added changes to reflect new extensions, object
857 codes, device property codes.
858 * src/libmtp.c: modified mp4 to reflect it is a container format
859 not a codec. Added more descriptions in init_filemap(). mp4
860 container format is ambiguous in
861 LIBMTP_Send_File_From_File_Descriptor(). Audio? video? both?.
862 mp4 searched in video by default. Added comments about this.
863 Added support for the new format object types.
864 * src/libmtp.h.in: added constants to reflect changes to
865 init_filemap().
866
Richard Lowedd61832006-12-30 12:38:18 +00008672006-12-30 Richard Low <richard@wentnet.com>
868
869 * src/libusb-glue.c: fixed bug in debug printing
870
Richard Lowa6c924c2006-12-29 17:44:28 +00008712006-12-29 Richard Low <richard@wentnet.com>
872
873 * src/libmtp.c: Made abstract list creation to be more
874 WMP like
875 * src/libusb-glue.c: added Philips GoGear SA9200
Richard Lowa679b1c2006-12-29 20:08:14 +0000876 * src/ptp-pack.c: fixed packing bug in ptp_pack_OI
Richard Lowa6c924c2006-12-29 17:44:28 +0000877
Linus Walleij784ac3f2006-12-29 10:36:51 +00008782006-12-29 Marcus Meissner <meissner@suse.de>
879
880 * src/ptp.h: API changes for libgphoto2 to use the file
881 retrieveal functions.
882 * src/ptp.c: dito.
883 * src/libusb-glue.c: changes in libmtp reflecting the new
884 API for libgphoto2.
885
Linus Walleij8609af32006-12-28 21:25:17 +00008862006-12-28 Linus Walleij <triad@df.lth.se>
887
Linus Walleije2e21182006-12-28 22:36:59 +0000888 * configure.ac: making older autotools happy. Bump to 0.1.1.
Linus Walleij3a3d24d2006-12-28 22:35:58 +0000889 * src/Makefile.am: bump interface for release, also autotools.
890 * RELEASE libmtp 0.1.1.
Linus Walleij8609af32006-12-28 21:25:17 +0000891
Linus Walleijd6735f72006-12-19 13:38:29 +00008922006-12-19 Matthew Wilcox <matthew@wil.cx>
893
894 * src/ptp.c: fix a (serious) short file bug.
895
Richard Lowaf20b5d2006-12-17 18:00:59 +00008962006-12-17 Richard Low <richard@wentnet.com>
897
898 * src/libmtp.c: don't bail out on failures when setting
899 metadata.
900
Linus Walleij037a1252006-12-16 20:36:52 +00009012006-12-16 Linus Walleij <triad@df.lth.se>
902
903 * src/ptp.c: sync to upstream.
904 * src/ptp.h: dito.
905 * src/ptp-pack.c: dito.
906
Linus Walleijf8491912006-12-15 10:23:30 +00009072006-12-15 Linus Walleij <triad@df.lth.se>
908
909 * src/libmtp.h.in: make the format function take a storage as
910 parameter. Add comments to device storage.
911 * src/libmtp.c: dito, fix up some code and docs.
912 * examples/format.c: make the format command comply with
913 the new API.
914
Linus Walleije1ac07e2006-12-14 19:38:59 +00009152006-12-14 Linus Walleij <triad@df.lth.se>
916
917 * src/libmtp.c: make get_first_storage_freespace() always query
918 the first storage when the space is requested. And some other
919 janitorial stuff.
920
Linus Walleijb01d18b2006-12-13 12:49:15 +00009212006-12-13 Linus Walleij <triad@df.lth.se>
922
923 * src/libusb-glue.c: one more device.
924 * examples/detect.c: compilation warnings fixed.
925
rreardon3d583062006-12-13 10:10:27 +00009262006-12-13 Robert Reardon <rreardon@monkshatch.vispa.com>
927
928 * src/ptp.c: add 0xD901 flag as BuyNow property of objects.
929 * src/ptp.h: ditto.
930
Linus Walleijcd849362006-12-13 12:37:58 +00009312006-12-12 Daniel Williams <danielw@iinet.net.au>
Linus Walleij9e1b0812006-12-12 19:22:02 +0000932
933 * src/libmtp.h.in: revamped storage API.
934 * src/libmtp.c: dito.
935 * examples/detect.c: dito.
936
rreardon73d02c92006-12-12 16:45:30 +00009372006-12-12 Robert Reardon <rreardon@monkshatch.vispa.com>
rreardond2ddb632006-12-12 12:13:21 +0000938
939 * src/libmtp.c: Send_Representative_Sample() updated to
940 set image height and width, or audio duration and size.
941
Linus Walleijd0f67702006-12-07 09:56:46 +00009422006-12-07 Linus Walleij <triad@df.lth.se>
943
Linus Walleija05b9802006-12-08 08:50:30 +0000944 * src/libmtp.h.in: support firmware object type. (Dangerous.)
945 * src/libmtp.c: dito.
946
9472006-12-07 Linus Walleij <triad@df.lth.se>
948
Linus Walleijd0f67702006-12-07 09:56:46 +0000949 * src/libmtp.c: default text folder detection (used in Samsung
950 Yepp T9) also add a few "My Foo" folder strings, remove the
951 "remaining directories" kludge.
952 * src/libmtp.h.in: default text folder.
953
Linus Walleijf1b02f22006-12-06 09:03:23 +00009542006-12-06 Linus Walleij <triad@df.lth.se>
955
956 * src/libmtp.h.in: extend the respresentative sample API a bit.
957 * src/libmtp.c: dito.
958 * examples/albumart.c: free memory after use.
959 * examples/thumb.c: dito.
Linus Walleij8a08c212006-12-06 20:12:30 +0000960 * RELEASE this as libmtp 0.1.0!
Linus Walleijf1b02f22006-12-06 09:03:23 +0000961
Linus Walleijfdef4ae2006-12-05 16:15:51 +00009622006-12-04 Linus Walleij <triad@df.lth.se>
963
964 * src/ptp.c: enable split headers on sending object lists again.
965
9662006-12-04 Robert Reardon <rreardon@monkshatch.vispa.com>
rreardond11473f2006-12-05 10:18:46 +0000967
968 * src/libmtp.c: abstract Send_Representative_Sample() so
969 it can send samples for any format that supports it
970 * src/libmtp.h.in: same as above
971 * examples/albumart.c: altered to use new abstract function above
972 * example/thumb.c: sample program to upload thumbnails
973 * example/Makefile.am: add sample thumbnail program
974
Linus Walleijbdfaac22006-12-03 22:32:19 +00009752006-12-03 Linus Walleij <triad@df.lth.se>
976
977 * src/libmtp.c: check space on disk before sending
978 tracks or files.
Linus Walleij7e3f2762006-12-03 22:52:05 +0000979 * src/libmtp.h.in: refactor LIBMTP_Send_Album_Art()
980 into LIBMTP_Send_Representative_Sample().
981 * src/libmtp.c: dito.
982 * examples/albumart.c: dito.
Linus Walleijbdfaac22006-12-03 22:32:19 +0000983
Linus Walleijfa3fbe32006-12-02 20:47:32 +00009842006-12-02 Marcus Meissner <meissner@suse.de>
985
986 * examples/Makefile.am: make sure symlinks really end
987 up in the correct dir.
988
Linus Walleij6eab3b32006-11-30 22:58:21 +00009892006-11-30 Linus Walleij <triad@df.lth.se>
990
991 * src/ptp.c: make Matthews patch thread-safe and fix it
992 so it will handle more than one surplus packet.
993 * src/ptp.h: dito.
994
Richard Lowab0d22d2006-11-30 22:17:49 +00009952006-11-30 Richard Low <richard@wentent.com>
996
997 * src/libmtp.c: memset PTPObjectInfo structs to 0
998
Linus Walleij4bf38dd2006-11-30 21:27:29 +00009992006-11-30 Matthew Wilcox <matthew@wil.cx>
1000
1001 * src/ptp.c: on some devices, surplus packet data is
1002 sometimes returned during read, i.e. a header of the
1003 next package is typically attacked to the incoming
1004 data, as if someone was sending several packets at
1005 once. If this happens we buffer the surplus packet.
Linus Walleijef1e6352006-11-30 22:07:16 +00001006 * src/libusb-glue.c: revert my own mistakes by making
1007 them Windows-only.
Linus Walleij4bf38dd2006-11-30 21:27:29 +00001008
Linus Walleij9901e222006-11-30 12:28:19 +000010092006-11-30 Linus Walleij <triad@df.lth.se>
1010
Linus Walleij2978f1a2006-11-30 14:00:26 +00001011 * configure.ac: this *is* gonna be libmtp 0.1.0!
1012 * src/Makefile.am: age interface to 4-0-0 to indicate that
1013 intefaces have been removed.
Linus Walleij9901e222006-11-30 12:28:19 +00001014 * src/libmtp.h.in: removed external object interface.
1015 * src/libmtp.c: dito. Made all object manipulation functions
1016 static.
1017
Richard Lowc7d48d22006-11-29 18:24:55 +000010182006-11-29 Richard Low <richard@wentnet.com>
1019
1020 * src/libusb-glue.c: added new devices
1021
Linus Walleij7beba572006-11-29 08:56:12 +000010222006-11-29 Linus Walleij <triad@df.lth.se>
1023
1024 * src/libusb-glue.c: remove some pointless #include <>
1025 clutter, call usb_set_configuration() as needed by
1026 Windows.
1027 * src/libmtp.c: various fixups to enable use of Windows
1028 <io.h> include file.
1029 * README.windows.txt: added a quick porting guide for
1030 MSVC by Farooq Zaman.
1031
Linus Walleijcf42f452006-11-28 08:32:49 +000010322006-11-28 Linus Walleij <triad@df.lth.se>
1033
1034 * src/libmtp.h.in: removed filetype mapping API. We can handle
1035 everything inside of libmtp now so no need for this.
1036 * src/libmtp.c: dito.
1037
Linus Walleij72e9c2b2006-11-28 08:14:00 +000010382006-11-27 Linus Walleij <triad@df.lth.se>
Linus Walleij64ad9ae2006-11-27 11:23:26 +00001039
1040 * examples/files.c: unsigned int sized printout.
1041 * examples/tracks.c: sort of the same.
Linus Walleij72e9c2b2006-11-28 08:14:00 +00001042 * Makefile.am: HAL style map output by default.
Linus Walleij64ad9ae2006-11-27 11:23:26 +00001043
Richard Low6c0a6ce2006-11-26 10:42:08 +000010442006-11-26 Richard Low <richard@wentnet.com>
Linus Walleijb7426d12006-11-25 23:19:11 +00001045
Richard Low6c0a6ce2006-11-26 10:42:08 +00001046 * src/libmtp.c: object handles for proplists
1047 * src/ptp-pack.c: ditto
1048 * src/ptp.c: ditto
1049 * src/ptp.h: ditto
1050
Linus Walleijf73de152006-11-25 21:44:44 +000010512006-11-25 Marcus Meissner <marcus@jet.franken.de>
1052
1053 * examples/hotplug.c: adding HAL style XML output for
1054 the devices.
1055 * examples/Makefile.am: fixing a bug in the automake
1056 file (pathutils.h missing!)
1057 * Makefile.am: fix the problem with re-making sources
1058 (you had to run ./autogen.sh before!)
1059
Linus Walleijfe677ac2006-11-23 13:35:00 +000010602006-11-23 Linus Walleij <triad@df.lth.se>
1061
1062 * src/libusb-glue.h: add a new bug flag for devices that
1063 have broken PTP_OC_MTP_GetObjPropList implementations.
1064 * src/libusb-glue.c: state that all iRivers have this problem.
1065 * src/libmtp.c: disable the user of ptp_mtp_getobjectproplist()
1066 for these devices.
1067
10682006-11-21 Robert Reardon <rreardon@monkshatch.vispa.com>
rreardonbddc0f82006-11-21 13:44:42 +00001069
1070 * src/libmtp.c: set handle ids for new objects to 0 when
1071 creating new albums and playlists.
1072
Linus Walleij2f5ed5c2006-11-21 07:40:29 +000010732006-11-21 Linus Walleij <triad@df.lth.se>
1074
1075 * src/libmtp.c: enabled enhanced mode for metadata retrieval
1076 by default.
Linus Walleij9be685b2006-11-21 09:44:53 +00001077 * src/libmtp.c: fixed the problem with sending files using
1078 enhanced commands.
Linus Walleij2f5ed5c2006-11-21 07:40:29 +00001079
Linus Walleij277cd532006-11-20 14:57:46 +000010802006-11-20 Linus Walleij <triad@df.lth.se>
1081
1082 * src/ptp.h: sync to upstream libgphoto2
1083 * src/ptp.c: dito.
1084 * src/ptp-pack.c: dito.
Linus Walleij8ae78bb2006-11-20 21:45:52 +00001085 * src/libmtp.c: check for zerolength files/tracks.
Linus Walleij277cd532006-11-20 14:57:46 +00001086
10872006-11-20 Andy Kelk <andy@mopoke.co.uk>
mopoke31364442006-11-20 04:53:04 +00001088
1089 * src/libmtp.h.in: add "parent_id" property to LIBMTP_track_struct.
1090 * src/libmtp.c: get "parent_id" property when reading tracks.
mopoke33744bb2006-11-20 04:55:32 +00001091 * examples/emptyfolders.c: new example program for pruning empty
1092 folders. (does a dummy run by default).
mopoke31364442006-11-20 04:53:04 +00001093
Linus Walleij277cd532006-11-20 14:57:46 +000010942006-11-19 Robert Reardon <rreardon@monkshatch.vispa.com>
rreardon508705f2006-11-19 21:27:22 +00001095
rreardonbbb4e562006-11-19 22:16:11 +00001096 * src/libmtp.c: use enhanced MTP commands to create playlists and
1097 send files
rreardon508705f2006-11-19 21:27:22 +00001098 * examples/newplaylist.c: demo program for creating new playlists
rreardona7220ad2006-11-19 21:36:46 +00001099 * examples/Makefile.am: add demo newplaylists program
rreardon508705f2006-11-19 21:27:22 +00001100
Linus Walleijcd849362006-12-13 12:37:58 +000011012006-11-19 Daniel Williams <danielw@iinet.net.au>
Linus Walleij48a2d462006-11-19 14:07:59 +00001102
1103 * src/libusb-glue.c: fix error on reconnect.
1104
Linus Walleij277cd532006-11-20 14:57:46 +000011052006-11-18 Richard Low <richard@wentnet.com>
Richard Lowef925022006-11-18 09:06:10 +00001106
1107 * src/ptp.c: tidy up ptp_usb_getdata
1108
Linus Walleij277cd532006-11-20 14:57:46 +000011092006-11-17 Richard Low <richard@wentnet.com>
Richard Low91354812006-11-17 22:44:05 +00001110
1111 * src/libmtp.c: fixed parent handle for uploaded tracks
1112
Linus Walleij277cd532006-11-20 14:57:46 +000011132006-11-17 Robert Reardon <rreardon@monkshatch.vispa.com>
Linus Walleije6605692006-11-17 09:18:52 +00001114
1115 * src/libmtp.c: fixed up album art using enhanced commands.
1116
Linus Walleij277cd532006-11-20 14:57:46 +000011172006-11-16 Richard Low <richard@wentnet.com>
Richard Low8d82d2f2006-11-16 20:37:43 +00001118
1119 * src/libmtp.c: a crude implementation of ptp_mtp_getobjectproplist
1120 * src/ptp.c: ditto
1121 * src/ptp.h: ditto
1122 * src/ptp-pack.c: ditto
1123
Linus Walleij277cd532006-11-20 14:57:46 +000011242006-11-16 Robert Reardon <rreardon@monkshatch.vispa.com>
Linus Walleij9e68bc12006-11-16 15:59:18 +00001125
Linus Walleijccf28ce2006-11-16 16:06:38 +00001126 * src/libmtp.c: use enhanced MTP commands to create albums and
1127 add detection of the default album folder.
1128 * src/libmtp.h.in: add a holder for album default folder.
Linus Walleij9e68bc12006-11-16 15:59:18 +00001129
Linus Walleij277cd532006-11-20 14:57:46 +000011302006-11-15 Richard Low <richard@wentnet.com>
Richard Low8b42ca32006-11-15 08:52:17 +00001131
1132 * src/ptp-pack.c: set string buffer to correct size.
1133
Linus Walleij277cd532006-11-20 14:57:46 +000011342006-11-14 Richard Low <richard@wentnet.com>
Richard Lowe1ab2642006-11-14 08:34:49 +00001135
1136 * examples/tracks.c: really use undeprecated API entry.
1137
Linus Walleij277cd532006-11-20 14:57:46 +000011382006-11-13 Richard Low <richard@wentnet.com>, Linus Walleij <triad@df.lth.se>
Linus Walleij3fcfea52006-11-13 07:07:36 +00001139
1140 * src/libmtp.h.in: add LIBMTP_Get_Tracklisting_With_Callback()
Richard Lowdc0b6c72006-11-13 09:22:23 +00001141 and LIBMTP_Get_Filelisting_With_Callback()
Linus Walleij3fcfea52006-11-13 07:07:36 +00001142 * src/libmtp.c: dito, deprecate LIBMTP_Get_Tracklisting()
Richard Lowdc0b6c72006-11-13 09:22:23 +00001143 and LIBMTP_Get_Filelisting()
Linus Walleij3fcfea52006-11-13 07:07:36 +00001144 * examples/tracks.c: use undeprecated API entry.
Richard Lowdc0b6c72006-11-13 09:22:23 +00001145 * examples/connect.c: ditto.
1146 * examples/detect.c: ditto.
1147 * examples/files.c: ditto.
Linus Walleij3fcfea52006-11-13 07:07:36 +00001148 * src/ptp.c: working on getting object prop lists.
1149 * src/ptp.h: dito.
1150
Linus Walleij277cd532006-11-20 14:57:46 +000011512006-11-12 Richard Low <richard@wentnet.com>
Richard Lowe1f06922006-11-12 16:38:39 +00001152
1153 * src/libusb-glue.c: added Zen Vision W to devices
1154
Linus Walleij277cd532006-11-20 14:57:46 +000011552006-11-07 Richard Low <richard@wentnet.com>
Richard Low4c60f6e2006-11-07 20:36:42 +00001156
1157 * src/libmtp.c: added checks for supported properties
1158
Linus Walleij277cd532006-11-20 14:57:46 +000011592006-11-06 Richard Low <richard@wentnet.com>
Richard Low64fa3992006-11-06 21:24:11 +00001160
1161 * src/libmtp.c: added a check for NULL filenames in
1162 LIBMTP_Get_Folder_List.
1163
Linus Walleij99310d42006-11-01 08:29:39 +000011642006-11-01 Linus Walleij <triad@df.lth.se>
1165
1166 * src/libmtp.h.in: set/get uint8 to/from objects
1167 * src/libmtp.c: send object property list.
1168 * src/ptp.c: dito.
1169 * src/ptp.h: dito.
1170 * src/ptp-pack.c: dito.
1171
mopoke90be30e2006-10-30 08:47:41 +000011722006-10-29 Andy Kelk <andy@mopoke.co.uk>
1173
1174 * examples/albumart.c: simple tool for adding album art.
1175 * src/libmtp.c: graceful handling of players not supporting
1176 abstract album objects.
1177
Linus Walleij0c33ec02006-10-27 10:15:40 +000011782006-10-27 Linus Walleij <triad@df.lth.se>
1179
1180 * src/Makefile.am: bump library interface to reflect the new
1181 album methods.
1182 * configure.ac: bump to 0.0.22 for the next release.
1183
11842006-10-27 Andy Kelk <andy@mopoke.co.uk>
1185
1186 * src/libmtp.c: add support form abstract audio/video albums.
1187 * src/libmtp.h.in: dito.
1188
Linus Walleij7347d0f2006-10-23 07:23:39 +000011892006-10-23 Linus Walleij <triad@df.lth.se>
1190
1191 * src/libmtp.c: retire opcode rendering (moved to ptp.c)
1192 * src/ptp.c: sync to upstream.
1193 * src/ptp.h: dito.
1194 * src/ptp-pack.c: dito.
1195
Linus Walleij9efe75f2006-10-20 09:09:45 +000011962006-10-20 Linus Walleij <triad@df.lth.se>
1197
1198 * Release 0.0.21 to get all the new device support out.
1199
Linus Walleij501ba4d2006-10-16 06:17:04 +000012002006-10-16 Linus Walleij <triad@df.lth.se>
1201
1202 * configure.ac: bump to 0.0.21.
1203 * src/libusb-glue.c: add code to unload a kernel driver for
1204 the primary interface if it is already in use under Linux.
1205 * src/libusb-glue.h: add a device flag to make this possible.
1206
Linus Walleij37253292006-10-11 08:38:14 +000012072006-10-11 Linus Walleij <triad@df.lth.se>
1208
1209 * examples/delfile.c: patch from Chris Debenham
1210 straingtening out the command-line interface a bit
1211 more.
1212
Linus Walleij43ff8fc2006-10-10 11:16:53 +000012132006-10-10 Linus Walleij <triad@df.lth.se>
1214
Linus Walleij37253292006-10-11 08:38:14 +00001215 * examples/delfile.c: patch from Chris Debenham to make
1216 this command take an optional filename as parameter
1217 instead of file ID.
Linus Walleij43ff8fc2006-10-10 11:16:53 +00001218
Linus Walleij955e6ba2006-09-26 16:55:10 +000012192006-09-26 Linus Walleij <triad@df.lth.se>
1220
1221 * libmtp.pc.in: require libusb instead of just linking it.
1222 * configure.ac: bump release to 0.0.20 and release.
1223
Linus Walleijb1318d12006-09-25 14:59:26 +000012242006-09-25 Linus Walleij <triad@df.lth.se>
1225
1226 * examples/evolution-sync.sh: example script to illustrate
1227 to to transfer calendar, task and contact information
1228 to a device supporting this.
1229
Linus Walleij4ef39e62006-09-19 14:11:52 +000012302006-09-19 Linus Walleij <triad@df.lth.se>
1231
1232 * src/libmtp.h.in: fixed attribute IDs to be 16bit.
1233 * src/libmtp.c: dito.
1234 * examples/sendfile.c: support vcard3.
1235
Linus Walleijf248fdd2006-09-16 20:11:40 +000012362006-09-16 Linus Walleij <triad@df.lth.se>
1237
1238 * configure.ac: bump to 0.0.19 and release. There are some
1239 new devices as well.
Linus Walleij5b5c7852006-09-16 20:23:37 +00001240 * src/unicode.c: retire unused code.
Linus Walleijf248fdd2006-09-16 20:11:40 +00001241
Linus Walleijb8bfcb22006-09-13 12:14:28 +000012422006-09-13 Linus Walleij <triad@df.lth.se>
1243
1244 * examples/format.c: formatting test program.
1245 * examples.Makefile.am: added format.
1246
Linus Walleij13374a42006-09-13 11:55:30 +000012472006-09-13 Andy Kelk <andy@mopoke.co.uk>
1248
1249 * src/libmtp.h.in: added interface to format storage.
1250 * src/libmtp.c: dito.
1251 * src/ptp.c: dito.
1252 * src/ptp.h: dito.
1253
Linus Walleijd31e6192006-09-12 07:55:27 +000012542006-09-12 Linus Walleij <triad@df.lth.se>
1255
1256 * configure.ac: bump release. Released 0.0.18 yesterday.
1257 * src/libmtp.c: do not try to read battery max level unless
1258 the device supports it. (Bug occurred on Toshiba Gigabeat
1259 P10.)
1260
Linus Walleijd5d51c82006-09-11 06:57:50 +000012612006-09-11 Linus Walleij <triad@df.lth.se>
1262
1263 * src/libusb-glue.c: messed around a bit with device descriptor
1264 detection so as to bring closer to libgphoto2 detection algorithm.
1265 I've seen things that might be false positives, possibly USB mass
1266 storage devices with additional MSFT descriptors to indicate they
1267 have Janus DRM.
1268 * src/libmtp.c: use UCS-2-INTERNAL if we're not on glibc. glibc
1269 knows that UCS-2 is in machine endianness but Darwin and *BSD does
1270 not. Detect C library and switch accordingly.
1271 * src/unicode.c: retire old unicode code only keep things we cannot
1272 live without. Remove the own internal UCS-2 conversion engine and
1273 the internal iconv() engine and use the one already available in
1274 PTPParams.
1275 * src/unicode.h: dito.
1276
Linus Walleij0558ac52006-09-07 06:55:03 +000012772006-09-07 Linus Walleij <triad@df.lth.se>
1278
1279 * src/libusb-glue.h: added device flags so we can make
1280 the code behave differently on certain devices.
1281 * src/libusb-glue.c: dito, plus removed some debug prints.
1282 * src/libmtp.c: docs.
1283 * src/libmtp.h.in: added device_flags to device list struct.
1284 * src/Makefile.am: bumped to compatible library interface.
1285 * configure.ac: bump version to 0.0.18 (0.0.17 released
1286 yesterday).
1287
Richard Low6ec2cc12006-09-06 16:59:16 +000012882006-09-06 Richard Low <richard@wentnet.com>
1289
1290 * src/libusb-glue.c: changed packet sizes to improve
1291 transfer speeds.
1292 * src/libmtp.c: changed packet sizes to improve transfer
1293 transfer speeds. Also stopped extra ptp_getobjectinfo
1294 calls when getting directories on connect.
1295
Linus Walleij7f0c72e2006-09-06 13:01:58 +000012962006-09-06 Linus Walleij <triad@df.lth.se>
1297
1298 * src/libusb-glue.c: fixed some endpoint size detection
1299 and sending special file sizes stuff. Real hairy bug...
1300 Also messed around a bit with the callbacks.
1301 * src/libmtp.c: changes for callback size detection.
1302
Linus Walleija9310fa2006-09-04 06:47:42 +000013032006-09-04 Linus Walleij <triad@df.lth.se>
1304
1305 * src/libmtp.c: bug in streaming code, use defined USB_BULK_HDR_SIZE
1306 instead of magic values.
1307
Linus Walleijd7aa5b22006-09-02 11:52:31 +000013082006-09-02 Linus Walleij <triad@df.lth.se>
1309
Linus Walleijcd3eb3d2006-09-02 21:33:22 +00001310 * src/libmtp.c: add some code to have
1311 LIBMTP_Send_File_From_File_Descriptor() accept a stream
1312 if size is set to (uint64_t) -1, plus documentation fixes.
1313 I don't think the streaming code will work but whoever want
1314 to experiment with it has a place to start.
1315 * examples/refactortest.c: removed. Who uses this?
Linus Walleijd7aa5b22006-09-02 11:52:31 +00001316
Linus Walleijda9500d2006-08-30 13:17:06 +000013172006-08-30 Linus Walleij <triad@df.lth.se>
1318
1319 * configure.ac: version bump.
1320 * src/libmtp.c: more debug prints.
1321 * src/libusb-glue.c: new iRiver device called Clix. By
1322 the way I released libmtp 0.0.16 yesterday.
1323
Linus Walleija823a702006-08-27 21:27:46 +000013242006-08-28 Linus Walleij <triad@df.lth.se>
1325
1326 * configure.ac: version bump.
1327 * src/ptp-pack.c: upstream has committed my patch giving full
1328 unicode support in libgphoto2 ptp2 camlib. No need for
1329 any more ugly workarounds, plus we now have full unicode
1330 filenames!
1331 * src/ptp.c: dito.
1332 * src/ptp.h: dito.
1333 * src/libmtp.c: revamp to use the new unicode support in
1334 libgphoto2.
1335 * src/unicode.c: remove unused functionality.
1336 * src/unicode.h: dito.
1337
Linus Walleijee73ef22006-08-27 19:56:00 +000013382006-08-27 Linus Walleij <triad@df.lth.se>
1339
1340 * configure.ac: version bump. Release all these fixes
1341 as 0.0.15.
1342 * src/libusb-glue.c: fixed sucky errors. Added callback
1343 code when reading files.
1344 * src/libusb-glue.h: const correctness.
1345 * src/libmtp.h.in: finally fixup the type on the callbacks.
1346 * src/libmtp.c: more accurate sending callbacks. Callbacks
1347 when getting files also, working correctly. Typeing of
1348 callbacks now OK.
1349 * examples/getfile.c: some display bar cosmetic fixup.
1350 * TODO: lots of the things todo are now done.
1351
Linus Walleijd214b9b2006-08-26 22:08:37 +000013522006-08-26 Linus Walleij <triad@df.lth.se>
1353
1354 * configure.ac: version bump.
1355 * src/libmtp.c: fix bug and reinstate callbacks.
1356 * src/libusb-glue.h: dito.
1357 * src/libusb-glue.c: dito.
1358
Linus Walleije7f44be2006-08-25 19:32:29 +000013592006-08-25 Linus Walleij <triad@df.lth.se>
1360
1361 * src/libmtp.c: use the new file descriptor sender function.
1362 Going to release this as 0.0.13.
1363 * src/ptp.c: upstream accepted patches synced in.
1364 * src/ptp.h: dito.
1365
Linus Walleijeab650b2006-08-21 23:26:37 +000013662006-08-22 Linus Walleij <triad@df.lth.se>
1367
Linus Walleij80d134a2006-08-22 21:41:37 +00001368 * src/libusb-glue.c: found a real nasty endpoint bug,
1369 code from libgphoto2 was assuming max packet size of
1370 512 bytes while it is 64 when a USB 2.0 device is
1371 plugged into an UHCI hub.
1372
13732006-08-22 Linus Walleij <triad@df.lth.se>
1374
Linus Walleijeab650b2006-08-21 23:26:37 +00001375 * configure.ac: bump to 0.0.13, also released 0.0.12 now.
1376
Linus Walleij924236a2006-08-20 22:17:58 +000013772006-08-21 Linus Walleij <triad@df.lth.se>
1378
1379 * src/libmtp.c: fixup mmap() usage and add madvise()
Linus Walleij96c62432006-08-21 10:04:02 +00001380 as result of experiments by Gavin McCullagh. Upstream
1381 accept patch to get files directly to file descriptor.
Linus Walleij3ec86312006-08-21 13:25:24 +00001382 Move iconv() converters into device struct for thread
1383 safety.
Linus Walleij96c62432006-08-21 10:04:02 +00001384 * src/ptp.c: sync to upstream which merges patch to get
1385 file directly to file descriptor.
1386 * src/ptp.h: dito.
Linus Walleij3ec86312006-08-21 13:25:24 +00001387 * src/unicode.c: move iconv() converters into the device
1388 struct for thread safety.
1389 * src/unicode.h: dito.
Linus Walleij924236a2006-08-20 22:17:58 +00001390
Linus Walleij30658792006-08-19 22:18:55 +000013912006-08-20 Linus Walleij <triad@df.lth.se>
1392
1393 * src/libmtp.h.in: set friendly name and sync partner,
1394 rename ownername to friendlyname.
1395 * src/libmtp.c: dito.
1396 * examples/detect.c: reflect changes.
1397 * src/Makefile.am: interface is incompatible so age it.
1398
Linus Walleijfae27482006-08-19 20:13:25 +000013992006-08-19 Linus Walleij <triad@df.lth.se>
1400
1401 * src/libmtp.h.in: add function to get syncronization
1402 partner for the device.
1403 * src/libmtp.c: dito.
1404 * examples/detect.c: use that function.
1405 * src/Makefile.am: backward-compatible interface bump.
1406
Linus Walleij16571dc2006-08-17 20:27:46 +000014072006-08-17 Linus Walleij <triad@df.lth.se>
1408
1409 * configure.ac: bump to 0.0.12 and require iconv.h.
1410
14112006-08-16 Linus Walleij <triad@df.lth.se>
1412
1413 * src/unicode.c: remove bigendian weirdness and switch
1414 to using iconv() instead.
1415 * src/unicode.h: dito.
1416 * src/libmtp.c: reflect changes.
1417
Linus Walleij3e188f12006-08-09 20:46:05 +000014182006-08-09 Linus Walleij <triad@df.lth.se>
1419
1420 * Release libmtp 0.0.11.
1421
Linus Walleij2eb884b2006-08-04 19:17:36 +000014222006-08-04 Linus Walleij <triad@df.lth.se>
1423
1424 * src/libmtp.c: patch from Dan Aloni to make sendfile
1425 use mmap and avoid memory drainage.
Linus Walleij9eb3d312006-08-04 19:25:59 +00001426 * src/libusb-glue.c: patch from Andy Kelk to avoid
1427 exit():ing when the interface cannot be claimed.
Linus Walleij232943d2006-08-04 19:26:53 +00001428 * configure.ac: version bump.
Linus Walleij2eb884b2006-08-04 19:17:36 +00001429
Linus Walleijaa4b0752006-07-26 22:21:04 +000014302006-07-27 Linus Walleij <triad@df.lth.se>
1431
1432 * Release libmtp 0.0.10.
1433
Linus Walleij17b55ea2006-07-26 13:54:00 +000014342006-07-26 Linus Walleij <triad@df.lth.se>
1435
1436 * src/libusb-glue.c: new SanDisk devices.
Linus Walleij00cf0642006-07-26 20:40:59 +00001437 * src/libmtp.c: only set metdata properties supported by
1438 the device, duh.
Linus Walleijaa4b0752006-07-26 22:21:04 +00001439 * src/ptp.c: sync to upstream.
1440 * src/ptp.h: sync to upstream.
1441 * configure.ac: bump to 0.0.10.
Linus Walleij17b55ea2006-07-26 13:54:00 +00001442
Linus Walleijc187cb92006-06-22 17:58:13 +000014432006-06-22 Linus Walleij <triad@df.lth.se>
1444
1445 * Release libmtp 0.0.9.
1446
Linus Walleij8ab54262006-06-21 07:12:28 +000014472006-06-21 Linus Walleij <triad@df.lth.se>
1448
1449 * src/libmtp.h.in: added function to retrieve supported
1450 filetypes.
1451 * src/libmtp.c: ditto.
1452 * examples/detect.c: use that function.
1453
Linus Walleijcf223e62006-06-19 09:31:53 +000014542006-06-19 Linus Walleij <triad@df.lth.se>
1455
1456 * src/unicode.c: support all endianness, detect
1457 byte-order-mark
1458 * src/unicode.h: ditto.
1459 * src/libmtp.c: ditto.
1460 * examples/detect.c: use proper tempfile function.
1461 * src/libmtp.h.in: add some more track properties.
1462 * src/libmtp.c: ditto.
1463 * examples/tracks.c: ditto.
1464
Linus Walleij2e4b5f92006-06-16 14:00:49 +000014652006-06-16 Linus Walleij <triad@df.lth.se>
1466
1467 * src/libmtp.h.in: new interfaces for single metadata post
1468 retrieveal.
1469 * src/libmtp.c: ditto.
1470 * examples/playlists.c: display track info using the new
1471 individual track metadata retrieveal method.
1472 * examples/getplaylist.c: ditto.
1473
Linus Walleij05ccbe72006-06-13 07:46:58 +000014742006-06-13 Linus Walleij <triad@df.lth.se>
1475
1476 * src/libmtp.h.in: added default folders to device struct.
Linus Walleij545c7792006-06-13 15:22:30 +00001477 Add some new function prototypes.
Linus Walleij05ccbe72006-06-13 07:46:58 +00001478 * src/libmtp.c: discover and use the default folders if
Linus Walleij545c7792006-06-13 15:22:30 +00001479 we can find them. Retrieve device secure time and cert
1480 out of sheer curiosity.
1481 * src/ptp.c: sync to libgphoto2 with my patches.
1482 * src/ptp.h: ditto.
Linus Walleij05ccbe72006-06-13 07:46:58 +00001483
Linus Walleij438bd7f2006-06-08 11:35:44 +000014842006-06-07 Linus Walleij <triad@df.lth.se>
1485
1486 * src/libmtp.h.in: new playlist API and refactorings.
1487 * src/libmtp.c: ditto, and refactorings.
1488 * src/unicode.h: const correctness.
1489 * src/unicode.c: ditto.
1490 * examples/playlists.c: new example program.
1491 * configure.ac: bump to 0.0.9
1492 * src/Makefile.am: bump library interface.
1493
Linus Walleij52e3ac52006-06-05 10:30:00 +000014942006-06-05 Linus Walleij <triad@df.lth.se>
1495
1496 * examples/sendtr.c: fixed annoying bug that made this
1497 program totally useless.
1498 * src/libmtp.c: cosmetics.
1499 * configure.ac: bump to 0.0.8.
1500
Linus Walleij345a3372006-06-03 20:55:25 +000015012006-06-03 Linus Walleij <triad@df.lth.se>
1502
1503 * src/libmtp.c: metadata bugs, album name and genre
1504 confused. Fixe it and released libmtp 0.0.7.
1505
Linus Walleijdc09dc02006-06-01 14:23:41 +000015062006-06-01 Linus Walleij <triad@df.lth.se>
1507
1508 * Released libmtp 0.0.6.
1509
Linus Walleij549ec4d2006-05-31 19:59:52 +000015102006-05-31 Linus Walleij <triad@df.lth.se>
1511
1512 * src/libmtp.c: fixed mapping for JPEG vs JFIF
1513 * src/libmtp.h.in: added proper type for JPEG
1514 * examples/sendfile.c: send proper JPEG type
1515
Linus Walleijd3fdd972006-05-30 15:51:37 +000015162006-05-30 Flavien Lebarbe <flavien+libmtp@lebarbe.net>
1517
1518 * src/libmtp.c: fixed a bug in update metadata due to
1519 bad use of return code.
1520 * src/libusb-glue.c: fixed a loop exiting problem with
1521 good 'ol GOTO.
1522
Linus Walleij9b1fcd92006-05-29 08:35:29 +000015232006-05-29 Linus Walleij <triad@df.lth.se>
1524
1525 * src/libusb-glue.c: one more device.
1526 * doc/examples.h: produce correct documentation.
1527 * configure.ac: bump to 0.0.6.
Linus Walleijf67bca92006-05-29 09:33:39 +00001528 * src/ptp.c: sync to libgphoto2.
1529 * src/ptp.h: ditto.
1530 * src/ptp-pack.c: ditto.
Linus Walleijf0f3d482006-05-29 14:10:21 +00001531 * src/libmtp.c: fixed all filetype API related functions
1532 not to use any PTP intrinsic defines at all, made all
1533 parameters to functions use the internal libmtp interface
1534 enumerations and definitions. Removed LIBMTP_Release():
1535 we can live with the memory lost during init. You're not
1536 supposed to re-initialize the device. Consequently removed
1537 the delete function that cleaned the filetype assoc list.
1538 * examples/refactortest.c: reflect changes.
Linus Walleij9b1fcd92006-05-29 08:35:29 +00001539
ravelox088180b2006-05-26 23:55:40 +000015402006-05-26 Dave Kelly <libmtp@ravelox.co.uk>
1541
1542 * src/libmtp.c: refactored object handling to be more generic
1543 * src/libmtp.h.in: ditto
1544 * examples/refactortest.c: Added simple example to use refactoring
1545 * examples/getplaylist.c: Added example to extract playlist data
Linus Walleij9b1fcd92006-05-29 08:35:29 +00001546 * src/ptp.c: Re-added ptp_get/set_objectreferences to allow
1547 for playlist handling
1548 * src/ptp.h: ditto
ravelox088180b2006-05-26 23:55:40 +00001549
Linus Walleij1fd2d272006-05-08 09:22:01 +000015502006-05-08 Linus Walleij <triad@df.lth.se>
1551
1552 * src/libmtp.h.in: add simple detection function.
1553 * src/libusb-glue.c: implement MTP "OS descriptor" for
1554 looking for MTP devices.
1555 * examples/detect.c: make it possible to do very
1556 rudimentary detection with "detect -p".
1557 * configure.ac: bump to 0.0.5.
1558
Linus Walleij685137f2006-05-07 18:09:02 +000015592006-05-07 Linus Walleij <triad@df.lth.se>
1560
1561 * COPYING: since we no longer use any parts of libptp2
1562 and only files from libgphoto2, we switch to the GNU
1563 Lesser General Public License (GNU LGPL). libptp2 is
1564 a derived work from libgphoto2, and so is libmtp, there
1565 are no remnants of libptp2 in libmtp anymore.
1566
Linus Walleij16c51f02006-05-04 13:20:22 +000015672006-05-04 Linus Walleij <triad@df.lth.se>
1568
1569 * examples/sendfile.c: fixes some more filetypes.
Linus Walleij453813c2006-05-04 19:46:43 +00001570 * src/libmtp.c: respectfully rearranged to use a filetype mapping
1571 table.
1572 * src/ptp-pack.c: real nasty unicode packing bug.
1573 * Release libmtp 0.0.4.
Linus Walleij16c51f02006-05-04 13:20:22 +00001574
Linus Walleijd6a49972006-05-02 08:24:54 +000015752006-05-02 Linus Walleij <triad@df.lth.se>
1576
1577 * src/libmtp.c: general shaping up for release. All track
1578 and file sending functions now respects a parent ID to be
1579 sent along with files and tracks.
1580 * src/libmtp.h.in: dito.
1581 * src/libusb-glue.c: dito.
1582 * examples/sendfile.c: interface dependency changes.
1583 * examples/sendtr.c: dito.
1584
Linus Walleijc60275a2006-04-30 10:58:11 +000015852006-04-30 Linus Walleij <triad@df.lth.se>
1586
1587 * src/ptp.c: sync upstream.
1588 * src/ptp.h: dito.
1589
Linus Walleij370c68d2006-04-27 14:19:01 +000015902006-04-27 Linus Walleij <triad@df.lth.se>
1591
1592 * examples/sendfile.c: first file sender program based
1593 on API implementation and changes by Chris Allegretta.
1594 * examples/Makefile.am: new program, new entry.
1595 * src/libmtp.c: reflect this new functionality.
1596 * src/libmtp.h.in: dito.
1597
Linus Walleijb02a0662006-04-25 08:05:09 +000015982006-04-25 Linus Walleij <triad@df.lth.se>
1599
1600 * Rebased the sources around libgphoto2 instead.
1601 This was a major revision...
1602 * src/ptp.c: imported libgphoto2 version verbatim.
1603 * src/ptp.h: imported libgphoto2 version, minor patch.
1604 * src/ptp-pack.c: imported libgphoto2 version, minor patch.
Linus Walleij9a96f0b2006-04-25 08:46:59 +00001605 * src/ptp-pack.h: dropped, libgphoto2 does not use it.
Linus Walleijb02a0662006-04-25 08:05:09 +00001606 * src/mtp.c: dropped, since all functions are now in ptp.c
1607 * src/mtp-pack.c: dropped, same reason.
1608 * src/mtp.h: dropped, same reason.
1609 * src/mtp-pack.h: dropped, same reason.
1610
Linus Walleije5f3ad42006-04-21 07:44:36 +000016112006-04-21 Linus Walleij <triad@df.lth.se>
1612
Linus Walleij902c0b92006-04-21 10:52:48 +00001613 * Released libmtp 0.0.3
1614 * Bumped source to 0.0.4
1615
16162006-04-21 Linus Walleij <triad@df.lth.se>
1617
Linus Walleije5f3ad42006-04-21 07:44:36 +00001618 * src/ptp-pack.c: GCC 4.x compilation patch from
1619 Diego Pettenò.
Linus Walleija06a2792006-04-21 07:52:26 +00001620 * src/libusb-glue.c: New Samsung device and some
1621 from libgphoto2.
Linus Walleij9c6ca022006-04-21 10:24:15 +00001622 * src/ptp.h: some defines from libgphoto2 to get
1623 a bit more compatible.
1624 * src/libmtp.c: Added a folder API implementation by
1625 Dave "ravelox" Kelly.
1626 * src/libmtp.h.in: dito.
1627 * examples/folders.c: dito.
1628 * examples/newfolder.c: dito.
1629 * examples/trexist.c: dito.
Linus Walleije5f3ad42006-04-21 07:44:36 +00001630
Linus Walleij6fd2f082006-03-28 07:19:22 +000016312006-03-28 Linus Walleij <triad@df.lth.se>
1632
1633 * m4/*: updated macros to work with GCC 4.1.0.
1634 * examples/hotplug.c: new program to create device
1635 ID lists.
1636 * libmtp.rules: now an auto-generated file.
1637 * libmtp.usermap: now an auto-generated file.
1638
Linus Walleijf6bc1782006-03-24 15:12:47 +000016392006-03-24 Linus Walleij <triad@df.lth.se>
1640
1641 * Beginning a file API, fixed some example program
1642 names and such.
1643
Linus Walleij6946ac52006-03-21 06:51:22 +000016442006-03-18 Linus Walleij <triad@df.lth.se>
1645
1646 * Fixed up callback interface to a simpler version,
1647 the old one was bloated stuff from libnjb anyway.
1648 Bump to 0.0.2.
1649
Linus Walleij9b28da32006-03-16 13:47:58 +000016502006-03-16 Linus Walleij <triad@df.lth.se>
1651
1652 * Fixed the .h file and implementation so you really only
1653 need this one .h file to interface the library.
1654
Linus Walleij80124062006-03-15 10:26:09 +000016552006-03-15 Linus Walleij <triad@df.lth.se>
1656
1657 * Added three device information retrieval functions.
1658
Linus Walleij15e344f2006-03-06 15:15:00 +000016592006-03-06 Linus Walleij <triad@df.lth.se>
1660
1661 * Moving some things around to structure the source. More
1662 will be needed...
1663
Linus Walleij93218602006-02-27 08:53:38 +000016642006-02-27 Linus Walleij <triad@df.lth.se>
1665
1666 * Release libmtp 0.0.1 so people have something to play with,
1667 what the heck. Probably saves someones day.
1668
Linus Walleij95698cd2006-02-24 10:40:40 +000016692006-02-24 Linus Walleij <triad@df.lth.se>
1670
1671 * Deltr example program to delete tracks, plus corresponding
1672 interface call.
1673
Linus Walleij17e39f72006-02-23 15:54:28 +000016742006-02-23 Linus Walleij <triad@df.lth.se>
1675
1676 * Fixed up sendtr program and metadata tagging function that is
1677 used after sending files.
1678
Linus Walleij394bbbe2006-02-22 16:10:53 +000016792006-02-22 Linus Walleij <triad@df.lth.se>
Linus Walleijeb8c6fe2006-02-03 09:46:22 +00001680
Linus Walleij394bbbe2006-02-22 16:10:53 +00001681 * Untested gettr.c and sendtr.c programs to get and send tracks
1682 created.
1683
Linus Walleijeb8c6fe2006-02-03 09:46:22 +000016842006-01-30 Linus Walleij <triad@df.lth.se>
1685
1686 * Created the initial GNU source directory structure.
1687 * Added the most basic files.