forked from libmtp/libmtp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog
2939 lines (2132 loc) · 96.9 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2011-01-19 Linus Walleij <[email protected]>
RETIRING THIS FILE! WE HAVE MIGRATED TO GIT WHICH
PROVIDES EASY ACCESS TO THE CHANGELOG, LETS GET RID
OF THIS ANCIENT CRUFT
2011-01-09 Linus Walleij <[email protected]>
* configure.ac: bump to 1.0.4
* src/Makefile.am: bump interface to libmtp.so.8.3.4
* Release libmtp 1.0.4
2010-12-07 Linus Walleij <[email protected]>
* configure.ac: make sure the prober only compiles for
Linux.
* src/ptp.c: update to match upstream.
* src/ptp.h: dito.
* src/ptp-pack.c: dito.
2010-12-05 Linus Walleij <[email protected]>
* utils/mtp-probe.c: enhanced to use libmtp intrinsics
and e.g. OS descriptor to probe new devices from
udev.
* utils/mtp-hotplug.c: utilize mtp-probe.
* src/libmtp.h.in: add new interface used by the mtp-probe
utility to probe a certain device in a certain bus.
* src/libusb-glue.c: introduce new function to probe a
certain bus and device.
* examples/Makefile.am: reform the way of making all
executable examples prefixed with "mtp-*" just set this
name in the make target!
* configure.ac: drop the default "mtp-*" prefixing of all
programs, instead I have renamed the executables.
* Makefile.am: install the mtp-probe script in the
libexecdir, and FORCE this to be /lib/udev.
We now also install the udev rules to
$libexecdir/rules.d, which is thus also forced to
be /lib/udev/rules.d.
2010-12-01 Linus Walleij <[email protected]>
* examples/hotplug.c: drop old udev style somewhat.
* utils/: move out mtp-hotplug into its own subdir,
intend to put programs to probe devices here too.
* utils/mtp-hotplug.c: moved the hotplug program here.
* utils/check_mtp_device.sh: tentative script for
checking MTP devices.
* utils/mtp-probe.c: C program intended to check if
devices are MTP.
2010-11-24 Linus Walleij <[email protected]>
* examples/hotplug.c: set the music player environment
variable for userspace programs watching udev output to
determine what device is plugged in.
2010-10-31 Linus Walleij <[email protected]>
* src/libusb-glue.c: only reset the device if a connection
fails, then retry. We were resetting the device on every
close() - not good.
2010-10-17 Linus Walleij <[email protected]>
* src/libmtp.c: Windows file open fixes from Jelle Geerts.
* examples/sendfile.c: exit with 1 on error.
* examples/*: condensed connect subprograms to a single
header and propagate error codes.
2010-09-18 Linus Walleij <[email protected]>
* src/libmtp.c: NULL check on abstract lists, drop unused
folder variable.
2010-07-25 Linus Walleij <[email protected]>
* src/libmtp.c: if the Ogg or FLAC filetypes have been
flagged as being stored as "unknown" and the device now
indicates it supports them: remove the flag.
* src/libmtp.c: parse device extensions.
* src/libmtp.h.in: stack up device extensions in the
device struct.
2010-06-19 Richard Low <[email protected]>
* src/music-players.h: add Apple devices as supported by
PwnTunes
2010-05-23 Linus Walleij <[email protected]>
* src/libusb-glue.c: don't probe HID equipment for device
descriptors, some Kensington mice don't like that and
there generally is not point either
* src/Makefile.am: interface libmtp.so.8.3.3
* configure.ac: libmtp 1.0.3
* Release 1.0.3
2010-05-16 Richard Low <[email protected]>
* src/libusb-glue.c: usb bus location fix for Mac and disable
usb_set_altinterface on Mac
2010-04-25 Linus Walleij <[email protected]>
* src/ptp.c: sync to upstream.
* src/ptp.h: dito.
* src/playlist-spl.c: fix an issue with Samsung playlists disappearing
since they were using a custom MTP type.
* src/libmtp.c: moan about PTP devices without MTP extension
2010-04-05 Linus Walleij <[email protected]>
* src/ptp.c: sync to upstream.
* src/ptp.h: dito.
* src/ptp-pack.c: dito.
2010-02-01 Linus Walleij <[email protected]>
* src/Makefile.am: interface libmtp.so.8.3.2
* configure.ac: libmtp 1.0.2
* Release 1.0.2.
2010-01-30 Linus Walleij <[email protected]>
* examples/connect.c: bad prototype for sendtrack_.
* examples/sentr.c: bad prototype.
* src/ptp.c: sync to upstream.
* src/ptp.h: dito.
* src/ptp-pack.c: dito.
2010-01-19 Linus Walleij <[email protected]>
* src/libmtp.c: handle a root folder with a number of
0xffffffffU (-1), even if the spec says that 0x00000000
is the root folder. Add some warnings.
* src/libmtp.c: patch from Kevin Hester to fix the erroneous
setting of genre or release date to NULL on some devices.
* src/libusb-glue.c: patch to fix a bug in some multithread
contexts affecting e.g. Rhythmbox, also by Kevin Hester.
* examples/Makefile.am: fix the bad prefixing that came in
as part of the Windows fixes. Keep $(EXEEXT).
2010-01-07 Linus Walleij <[email protected]>
* src/libmtp.c: detect "My_Foo" default folders as well
as "My Foo" (underscore) as well.
2010-01-01 Linus Walleij <[email protected]>
* src/libmtp.h.in: we use time_t so include <time.h>
2009-12-16 Linus Walleij <[email protected]>
* src/libusb-glue.c: don't complain so much about the
response to command 2.
2009-11-30 Linus Walleij <[email protected]>
* src/libusb-glue.c: bus detection fix for libusb -
bus->location was not properly initialized.
2009-10-10 Linus Walleij <[email protected]>
* src/libmtp.h.in: move debugmacros to util.h
* src/util.h: dito
* libmtp.pc.in: erroneouse Libs.private, lacking ":"
2009-09-28 Nicolas VIVIEN <[email protected]>
* examples/albumart.c : add d option, to enable or not debug
ouput.
* examples/albums.c : dito.
* examples/detect.c : dito.
* src/libmtp.c : Add LIBMTP_Set_Debug function.
* src/libmtp.h.in : Add LIBMTP_Set_Debug function to API.
* src/libmtp.sym : Add LIBMTP_Set_Debug function to exported symbol.
* src/libusb-glue.h : Add LIBMTP_USB_DEBUG / LIBMTP_DATA_DEBUG macros.
* src/libusb-glue.c : Use previous macros inside of printf.
* src/playlist-spl.c : Add LIBMTP_PLST_DEBUG macro.
2009-09-25 Linus Walleij <[email protected]>
* src/libusb-glue.c: some more BlackBerry fixing from
Nicolas.
* examples/albumart.c: add p and s switches, to support
storage and parent ID:s. (Nicolas)
* examples/newplaylist.c: dito. (Nicolas)
2009-09-23 Linus Walleij <[email protected]>
* src/libmtp.c: patch from Nyall Dawson to make all
filenames unique if the device requires this.
* src/libusb-glue.h: dito.
* src/device-flags.h: dito.
* src/music-players.h: dito.
2009-09-23 Linus Walleij <[email protected]>
* src/libusb-glue.c: several patches from Nicolas Vivien to
support the BlackBerry Storm.
* src/device-flags.h: add special flag for the BlackBerry
"switch mode" command.
* src/libusb-glue.h: dito.
* src/music-players.h: tag the BlackBerry with this flag.
2009-09-21 Linus Walleij <[email protected]>
* examples/sendtr.c: patch from Andrea Grillini to support
quiet mode operation.
2009-09-12 Linus Walleij <[email protected]>
* src/libusb-glue.c: skip interfaces with != 3 endpoints
and make sure we locate 1 bulk in, 1 bulk out and 1 interrupt
endpoint on the interface, else SKIP IT. Based on a patch
from Nicolas Vivien <[email protected]>.
2009-09-12 Linus Walleij <[email protected]>
* configure.ac: bump version to libmtp 1.0.1 and release!
* src/Makefile.am: bump soversion to libmtp.so.8.3.1
2009-09-11 Linus Walleij <[email protected]>
* src/music-players.h: tag all SONY NWZ walkmen with
DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST.
2009-08-27 Linus Walleij <[email protected]>
* src/libmtp.c: modernize the album retrieveal functions
so they work just as nicely as the track/playlist etc
functions. Triggered by Nyalls excellent bug report that
showed how libmtp tried to get "composer" info for an
album eventhough the device didn't support it.
2009-08-27 Linus Walleij <[email protected]>
* src/libmtp.c: bugfixes again...
2009-08-25 Linus Walleij <[email protected]>
* src/libmtp.c: fix a bug where the metadata was cached
twice, thx to Marcus for the patch!
2009-08-23 Linus Walleij <[email protected]>
* src/ptp.c: sync to upstream
* src/ptp.h: dito.
* src/libmtp.c: patch from Thomas Schweitzer to not use
C++ reserved words like "private" and "new", this was
changed to "priv" and "newlist" making C++ happy.
* src/libusb-glue.h: inclusion guard, export functions to
C++ (whoever wants to do that...)
* src/libusb-glue.c: define USB_CLASS_PTP unless defined,
out-commented code to detect all PTP devices as MTP
devices as well.
2009-08-12 Linus Walleij <[email protected]>
* src/libusb-glue.c: patch from Simon Berg to detect PTP
interface descriptors.
* src/ptp.c: sync to upstream with correct MTP interface
detection in accordance with MTP spec.
* src/ptp.h: dito.
2009-08-02 Linus Walleij <[email protected]>
* configure.ac: tag for libmtp 1.0.0!
* src/Makefile.am: bump to compatible API/ABI
result = libmtp.so.8.3.0
* src/libmtp.c: missing flag fix from Marcus.
2009-07-24 Linus Walleij <[email protected]>
* src/device-flags.h: add a flag for unknown FLAC type.
* src/music-players.h: tag the Cowon iAudio S9 with this.
* src/libmtp.c: implement unknown FLAC type.
2009-07-24 Linus Walleij <[email protected]>
* src/music-players.h: a number of new devices.
* src/ptp.c: sync to upstream.
* src/ptp.h: sync to upstream.
* src/ptp-pack.c: sync to upstream.
2009-06-24 Linus Walleij <[email protected]>
* src/music-players.h: tag most all Samsung devices with
the UNLOAD_DRIVER flag. Broken GET_ALL info in all
Creative devices.
2009-06-20 Linus Walleij <[email protected]>
* examples/pathutils.c: detect VCF files too.
2009-06-15 Marcus Meissner <[email protected]>
* configure.ac: use the AC_SYS_LARGEFILE macro instead
of the ugly largefile hacks.
* src/libmtp.c: fix use of largefile back to the simple
functions instead.
* examples/albumart.c: dito.
* examples/sendfile.c: dito.
* examples/sendtr.c: dito.
* examples/thumb.c: dito.
2009-06-15 Linus Walleij <[email protected]>
* configure.ac: some buildsystem updates.
* INSTALL: some doc updates.
2009-06-15 Marcus Meissner <[email protected]>
* src/libmtp.c: synced to new libgphoto2 code.
* src/device-flags.h: dito.
* src/ptp.h: sync to upstream.
* src/ptp.c: dito.
* src/ptp-pack.c: dito.
The handles, the PTPObjectInfo and the MTP proplists
are now consolidated into "PTPObject"s.
This and abstraction and the resulting helper functions
allow implementation of easier dynamic operations like
I need for libgphoto2.
Some corner stones:
- PTPParams now contains the device flags itself.
(from device-flags.h) This is needed due to
ptp_object_want() needing to decide whether it can call
GetObjPropList, and it makes it cleaner.
So the ptp-bugs and device-flags handling are unified.
- PTPObjects are sorted by object handle. This allows binary
search by handle.
- New generic helper functions.
* uint16_t ptp_object_find (PTPParams *params,
uint32_t handle, PTPObject **retob)
binary searches the handle in the object list and returns
a pointer to the object.
* uint16_t ptp_object_find_or_insert (PTPParams *params,
uint32_t handle, PTPObject **retob)
binary searches the handle in the object list, inserts it
if not there yet, and returns a pointer to the object.
* uint16_t ptp_object_want (PTPParams *params, uint32_t handle,
int want, PTPObject **retob)
The most magic function, which does the "on demand" loading
of objectinfos, mtp proplists (and more).
want is a flag mask of PTPOBJECT_*_LOADED
PTPOBJECT_OBJECTINFO_LOADED clear
PTPOBJECT_CANONFLAGS_LOADED (special canon flags)
PTPOBJECT_MTPPROPLIST_LOADED mtp properties for this object
loaded
PTPOBJECT_DIRECTORY_LOADED (only used by libgphoto2 currently)
PTPOBJECT_PARENTOBJECT_LOADED this and storageid are
interesting for directory based
lookups
PTPOBJECT_STORAGEID_LOADED and can be filled out by directory
loading
* void ptp_objects_sort (PTPParams *params);
Sort the objects list if you did any modification of your own
on it and the order of object handles might not be linear
anymore.
- Multiple object information loading strategies are possible.
libmtp uses getobjecthandles() /getobjectinfo() and
getobjectproplist() loading strategies for initial setup. This
stays of course, it will just fill out the PTPObject array.
libgphoto2 now uses a per-directory getobjecthandles() /
getobjectinfo() loading approach, and I will readd the
getobjectproplist() approach.
It is open what you chose to use here. For libmtp the "load all
handles at startup" is good, dynamic loading is better for
libgphoto2.
Only rule is: The objectlist must be in order of objecthandles!
(ptp_object_sort()).
2009-06-02 Linus Walleij <[email protected]>
* examples/hotplug.c: change the udev match rule from
ATTR{dev}!="?*" to ENV{MAJOR}!="?*" at the suggestion of
Alan Jenkins, this should be faster.
* src/libusb-glue.c: include config.h (Marcus Meissner found
this is needed when you're not using iconv().)
2009-05-09 Linus Walleij <[email protected]>
* src/libmtp.c: include <config.h> for iconv() compatibility.
* src/unicode.c: dito. NOTE: this file needs fixing to work
without iconv!
* src/ptp.h: sync to upstream and get all the embedded support
for FREE!
* src/ptp.c: dito.
* src/ptp-pack.c: dito.
2009-05-06 Linus Walleij <[email protected]>
* src/ptp.h: sync to upstream.
* src/ptp.c: dito.
* src/ptp-pack.c: dito.
2009-05-06 Linus Walleij <[email protected]>
A host of Windows fixes from
Carlo Bramini <[email protected]>
With this patch everything works fine with cygwin and
Debian 5.0. Unfortunately, with MSys the "make install"
still fails at the very last actions. It happens that
everything is re-linked (strange, but not a big problem)
and for some unknown reason it loops forever when executing
"examples/hotplug > libmtp.usermap". But hopefully the
simple "make" completes without errors.
* configure.ac:
* iconv is now detected with autotools, this makes libmtp
linkable on cygwin too (previously it was not).
* the presence of Microsoft LIB.EXE is checked; if it is
absent then the MSVC libraries won't be generated.
* Added checking for some include files not available on
Windows: arpa/inet.h, byteswap.h, sys/uio.h.
* Check for presence of mkstemp: a replacement has been
written for Windows.
* examples/Makefile.am: the creation of the links failed:
I added source path and $(EXEEXT) extension for executables.
This is tested and working with Mingw+MSys, Cygwin, Debian 5.0.
* examples/albumart.c: include sys/uio.h only if it's available.
* examples/trexist.c: u_int32_t does not exists, into almost all
other parts libmtp is using uint32_t so I fixed it in that
manner. (Same for u_int64_t/uint64_t).
* examples/getfile.c: dito.
* examples/pathutils.c: dito, plus rindex() does not exist under
Windows, we must user strrchr() instead.
* examples/pathutils.h: fixes for prototypes changes made into
examples/pathutils.c
* examples/thumb.c: include sys/uio.h only if it's available.
* src/Makefile.am:
* Several fixes because the check on the presence of LIB.EXE
libmtp.sym is now prefixed by $(srcdir), this allows to
configure libmtp outside the source tree in Windows too.
* Libraries are put into LIBADD instead of LDFLAGS, this is the
right place.
* Previously the linker crashed because there was -ws2_32
instead of -lws2_32.
* src/playlist-spl.c:
* include sys/uio.h only if it's available.
* include replacement for mkstemp() function.
2009-05-03 Richard Low <[email protected]>
* src/libmtp.c: add external property types just like file
types so any property can be retrieved/set. Add function
LIBMTP_Is_Property_Supported to determine if a property is
supported for a given object type. Add function
LIBMTP_Get_Allowed_Property_Values to get alowed range/enum
of a property value. Make
LIBMTP_Get_Representative_Sample_Format get the size parameter
to allow us to determine the maximum size for a representative
sample.
* src/libmtp.h.in: ditto
* src/libusb-glue.c: update to check the handler function return
value so the handler can return PTP_ERROR_CANCEL to cancel the
transfer.
2009-05-02 Richard Low <[email protected]>
* src/ptp-pack.c: add a NULL check
2009-04-18 Richard Low <[email protected]>
* src/ptp-pack.c: add terminating NULL character
2009-04-11 Richard Low <[email protected]>
* src/libusb-glue.c: Make get_playlist_extension return type
const char *
* src/libusb-glue.h: ditto
* src/libusb-glue.c: In probe_device_descriptor, check to see if
dev->config is NULL before going round the first loop
* src/libmtp.c: Add LIBMTP_Get_File_To_Handler,
LIBMTP_Send_File_From_Handler, LIBMTP_Get_Track_To_Handler,
LIBMTP_Send_Track_From_Handler functions to get/send files/tracks
from/to handler functions. Add modificationdate to file and track
structs. Add LIBMTP_FILETYPE_ALBUM and LIBMTP_FILETYPE_PLAYLIST
filetypes.
2009-03-17 Linus Walleij <[email protected]>
* src/device-flags.h: discovered a new device that cannot even
read out battery level but still claims to be able to. Sigh.
* src/libusb-glue.h: flag macro.
* src/music-players.h: flag the Slacker.
* src/libmtp.c: avoid battery level getting on these devices.
* configure.ac: preparing for 0.3.7.
* src/Makefile.am: preparing for 0.3.7 (libmtp.so.8.2.2)
* Release libmtp 0.3.7.
2009-03-08 Linus Walleij <[email protected]>
* src/libmtp.c: refactored OGG extenstion check again, same
code in three places, broke it out and made it foolproof
(hopefully) in one single spot.
2009-03-04 Linus Walleij <[email protected]>
* src/libusb-glue.c: patch from Marcus to fix an issue
with retransmit originally reported by Florent Pillet.
2009-02-21 Linus Walleij <[email protected]>
* src/libmtp.c: some additional NULL checks from
Florent Pillet.
2009-02-18 Linus Walleij <[email protected]>
* src/libmtp.c: error report from RedHat BZ
http://bugzilla.redhat.com/show_bug.cgi?id=485627
led to strange code for detecting anonymous OGG files
being rewritten to handle NULL filenames and filenames
that do not exceed 4 chars.
2009-01-30 Linus Walleij <[email protected]>
* src/libmtp.c: store albums and playlists in the default
music folder if no default folder for albums resp.
playlists has been detected.
2009-01-22 Linus Walleij <[email protected]>
* configure.ac: bump to 0.3.6 and release.
* src/Makefile.am: interface bump to libmtp.so.8.2.1
2009-01-16 Linus Walleij <[email protected]>
* src/ptp.c: sync to upstream.
* src/ptp.h: dito.
2009-01-15 Linus Walleij <[email protected]>
* src/libmtp.c: include fixes from Yuri Pankov for *BSD.
* src/playlist-spl.c: dito.
* examples/*.c: (more or less) dito.
2009-01-14 Linus Walleij <[email protected]>
* src/device-flags.h: new device flag for broken
SendObjectPropList, as found broken in MEU202
* src/music-players.h: use the new flag.
* src/libmtp.c: implement this device flag.
* src/libusb-glue.h: dito.
2009-01-10 Linus Walleij <[email protected]>
* src/libmtp.h.in: mingw32 fixes from James Ravenscroft.
* src/libmtp.c: dito. Replaced "rindex" with "strrchr"
* src/Makefile.am: dito.
* examples/albumart.c: dito.
2009-01-06 Linus Walleij <[email protected]>
* src/Makefile.am: patch from Rafael Laboissiere removing a
build artifact in distclean.
2009-01-02 Linus Walleij <[email protected]>
* examples/connect.c: usage patch from Riley Patterson.
* examples/sendtr.c: dito. Plus only try to add track to an
album if and only if an album name was given.
* examples/newfolder.c: real bad bug fixed, didn't even work
due to bad args check.
* examples/sendfile.c: another bad bug...
* examples/common.h: include <config.h> not "config.h"
* src/unicode.h: no reason for this to include config.h!
2008-12-21 Linus Walleij <[email protected]>
* Release libmtp 0.3.5.
2008-12-15 Nathan Bullock <[email protected]>
* src/libmtp.c: get folders to a flat list and we get O(n) searching
instead of the previous O(n^2) algorithm!
2008-12-13 Linus Walleij <[email protected]>
* examples/detect.c: make mtp-detect dump out default-capabilities.xml
if such a file exists on the device.
* m4/stdint.m4: update to newer macro from libgphoto2.
* m4/byteorder.m4: update to newer macro from libgphoto2.
We find these here:
http://gphoto.svn.sourceforge.net/viewvc/gphoto/trunk/m4/
* configure.ac: fix the renamed _stdint.h too.
* Doxyfile.in: some config option got obsolete.
* libmtp.c: start to use PTP error redirection to the libmtp error
stack. This also makes it possible to stop the annoying debug prints.
* libusb-glue.c: dito.
* ptp.c: sync to upstream.
* ptp.h: sync to upstream.
2008-12-02 Linus Walleij <[email protected]>
* examples/util.c: another NULL check.
2008-11-25 Linus Walleij <[email protected]>
* src/libmtp.c: fix a bug on handling folder children with an illegal
ID of 0. Occurred in the ZEN Xi-Fi in the "Recordings" folder, when
that is created on the device.
2008-11-17 Alistair Boyle <[email protected]>
* configure.ac: change release to 0.3.5.
* libmtp.c: change metadata const*const to *const to allow playlist_id
to be modified by LIBMTP_Update_Playlist. (Samsung playlists)
* libmtp.h.in: match libmtp.c
2008-11-11 Linus Walleij <[email protected]>
* src/libmtp.c: allow for playlists with zero tracks on them,
also in update.
2008-11-09 Linus Walleij <[email protected]>
* src/ptp.h: sync from upstream.
* src/ptp.c: sync from upstream.
* src/ptp-pack.c: sync from upstream.
2008-11-07 Linus Walleij <[email protected]>
* Release libmtp 0.3.4.
* configure.ac: let's release 0.3.4.
* src/Makefile.am: compatible API and ABI.
2008-11-05 Linus Walleij <[email protected]>
* src/libmtp.c: fix the association type problem on
LIBMTP_Create_Folder(). This causes folders not to
work properly on some devices!!
2008-11-01 Linus Walleij <[email protected]>
* src/ptp.h: sync to upstream.
* src/ptp.c: sync to upstream.
* src/ptp-pack.c: introduce Richards bugfix on top of
upstream and take advantage of the ptp_debug() function.
* src/libusb-glue.c: make ptp_debug() non-static since
ptp-pack.c needs it.
2008-10-21 Linus Walleij <[email protected]>
* src/device-flags.h: actually the SanDisks cannot handle
PTP_OPC_DateModified at ALL, not even as part of the
initial update so rename the flag to something sensible.
* src/music-players.h: consequental changes.
* src/libmtp.c: disable all use of PTP_OPC_DateModified if
flag is set, not just updates.
2008-10-16 Linus Walleij <[email protected]>
* src/device-flags.h: new flag for broken updates of
PTP_OPC_DateModified.
* src/music-players.h: tag all SanDisk devices with this
flag. Bug appeared in them.
* libmtp.c: avoid updating PTP_OPC_DateModified on broken
devices.
2008-09-28 Alvin <[email protected]>
* src/libmtp.c: fix several bugs in Ogg filetype support.
2008-09-26 Richard Low <[email protected]>
* src/libmtp.c: check propdesc before setting props in
create_new_abstract_list()
2008-09-25 Linus Walleij <[email protected]>
* configure.ac: bump to 0.3.3.
* src/Makefile.am: interface to .so.8.1.0
* Release as 0.3.3.
2008-09-24 Linus Walleij <[email protected]>
* src/libmtp.h.in: add new filename setting functions, patch
from Florent Mertens <[email protected]>.
* src/libmtp.c: implementation.
* src/playlist-spl.c: consequental changes.
* src/libmtp.sym: consequental changes.
* Fixup patch from Alvin later this day.
* Note to self: remember to bump soname to .so.8.1.0.
2008-09-23 Richard Low <[email protected]>
* src/libmtp.c: check for NULL storage
* src/libusb-glue.c: return PTP_RC_OK on zero read
* src/music-players.h: give Samsung YP-10 DEVICE_FLAG_NO_ZERO_READS
2008-09-22 Linus Walleij <[email protected]>
* src/libmtp.c: make sure we don't try to fit a new file onto
a ROM storage. Add some pretty-print to FourCC codecs so
you can actually understand the enumerations.
2008-09-20 Joe Nahmias <[email protected]>
* examples/sendtr.c: added option to specify which
storage_id the track should be copied.
2008-09-20 Linus Walleij <[email protected]>
* configure.ac: bump to 0.3.2.
* src/Makefile.am: bump to libmtp.so.8.0.2, compatible
interface.
* Release this as 0.3.2 mainly to get the Creative fixes out.
2008-09-17 Linus Walleij <[email protected]>
* src/libmtp.h.in: new helper macros from
Alvin <[email protected]> plus some docs.
2008-09-12 Linus Walleij <[email protected]>
* src/music-players.h: drop bug flags off the Creative devices.
I am confident that the bugs they were masking have been
fixed now.
2008-09-07 Richard Low <[email protected]>
* src/music-players.h: added Panasonic P905i
2008-09-05 Marcus Meissner <[email protected]>
* src/libmtp.sym: update symbol export table.
* src/Makefile.am: fix up some magic for symbol export.
2008-09-04 Linus Walleij <[email protected]>
* src/libmtp.c: look up the filename for playlists if the name is
missing or not properly set. Not doing the same for albums -
these must have proper metadata.
* src/music-players.h: more players as usual.
* examples/sendtr.c: more warnings.
2008-08-31 Linus Walleij <[email protected]>
* src/ptp.h: sync to upstream.
* src/ptp.c: sync to upstream.
2008-08-30 Chris Bagwell <[email protected]>
* src/libusb-glue.c: make it possible to have per-command
or otherwise altered timeout values for different PTP
request/response sequences.
* src/libusb-glue.h: dito.
* src/libmtp.c: increase USB timeout to 30s when getting
a complete track listing off the device.
* src/music-players.h: as a consequence, the Sirus Stiletto
no longer needs any brokenness flag.
2008-08-30 Linus Walleij <[email protected]>
* src/ptp.c: sync to upstream.
2008-08-28 Linus Walleij <[email protected]>
* examples/sendtr.c: fix non-strdup():ed strings to be
copied, patch courtesy of Juanan Pereira.
2008-08-25 Linus Walleij <[email protected]>
* src/Makefile.am: bump interface a patchlevel. (Fully
compatible.)
* configure.ac: bump version to 0.3.1.
* Release as libmtp 0.3.1.
2008-08-18 Linus Walleij <[email protected]>
* src/libusb-glue.c: some vartype and return flunkies.
* configure.ac: check for locale.h
* examples/util.c: set locale to pick up environment.
2008-08-17 Linus Walleij <[email protected]>
* src/libusb-glue.c: some handling of ptp_usb_getdata()
when passed in data size was 0xffffffffU, data
sent in first transaction was ignored, fix by
Rob Woolley.
* src/ptp-pack.c: sync in from upstream libgphoto2.
* src/README: move relevant stuff to README.
* README: see above.
2008-08-15 Alistair Boyle <[email protected]>
* src/playlist-spl.c: added handling of Samsung's
proprietary .spl playlist format.
* src/playlist-spl.h: dito.
* src/device-flags.h: new flags for Samsung playlists.
* src/music-players.h: assign flags.
* src/libusb-glue.h: convenience macros.
* src/libmtp.c: integrate Samsung playlists.
2008-08-15 Linus Walleij <[email protected]>
* examples/Makefile.am: break out utility functions
(currently only checklang()) to a separate file.
* examples/util.h: dito.
* examples/util.c: dito.
* examples/detect.c: dito.
* examples/sendtr.c: dito.
* examples/connect.c: dito.
2008-08-14 Linus Walleij <[email protected]>
* src/libmtp.c: add some documentation to file and track
listing functions to that it's clear that you have to
inspect storage_id and parent_id in order to group files
into storages and/or folders.
2008-07-31 Linus Walleij <[email protected]>
* src/music-players.h: several new devices and flags.
2008-06-24 Linus Walleij <[email protected]>
* TODO: updates.
* src/Makefile.am: bump interface to libmtp.so.8.0.0.
It's NOT compatible!
* RELEASE libmtp 0.3.0 and let the apps developers have
their apps fixed!
2008-06-22 Linus Walleij <[email protected]>
* src/libmtp.h.in: removed the parenthandle argument from
LIBMTP_Send_File_From_File(),
LIBMTP_Send_File_From_File_Descriptor(),
LIBMTP_Send_Track_From_File(),
LIBMTP_Send_Track_From_File_Descriptor(),
LIBMTP_Create_New_Playlist() and
LIBMTP_Create_New_Album()
Now you must pass in parent ID from a metadata or
filedata set. Use the respective field of the
file, track, playlist or album struct to pass in
a parent handle when calling these functions from
now on. The bonus for changing your code is that you
can now also pass in a storage_id with any metadata
set! Consequently LIBMTP_Create_Folder() was
altered to accept THREE metadata arguments: name,
parent_id and storage_id. All calls to any of these
functions in any referring code need to be altered to
use this scheme. It should be quite self-evident for
most code and easy to perform.
* src/libmtp.c: changed outlined above were implemented.
* examples/newfolder.c: consequental changes.
* examples/sendfile.c: consequental changes.
* examples/sendtr.c: consequental changes.
* examples/albumart.c: consequental changes.
* examples/newplaylist.c: consequental changes.
* examples/files.c: consequental changes.
* examples/tracks.c: correct misleading strings.
2008-06-15 Linus Walleij <[email protected]>
* src/libmtp.c: only look for default folders in the
root folder on the primary storage, even.
2008-06-14 Linus Walleij <[email protected]>
* src/libmtp.c: only look for default folders in the
primary storage, and only try to put files there
if they are targetting the primary storage.
2008-06-08 Linus Walleij <[email protected]>
* configure.ac: check for the langinfo.h header.
* examples/connect.c: check charset properly.
* examples/sendtr.c: dito.
* src/music-players.h: new devices galore.
2008-06-03 Linus Walleij <[email protected]>
* src/device-flags.h: new device flag for devices that
always need to have their device descriptor probed.
* src/music-players.h: generously add this flag to all
SanDisk devices. The e280v2 and Fuze are known to be
especially problematic.
* src/libusb-glue.h: helper macro.
* src/libusb-glue.c: massage "OS Descriptor" on demand
when opening the device.
* src/music-players.h: detailed info and flags for the
SanDisk Sansa players. More to be done, probably.
2008-06-02 Linus Walleij <[email protected]>
* src/libusb-glue.c: refactor PTP_USB to use the raw
device and its contained deviceinfo to store and
retrieve the device flags. (This is starting to look
object oriented...)
* src/libusb-glue.h: accessor functions to simplify
switching on the device flags and increase the code
readability.
* src/libmtp.c: use the new accessor functions.
2008-06-01 Linus Walleij <[email protected]>
* src/libmtp.c: use LIBMTP_Detect_Raw_Devices() and
LIBMTP_Open_Raw_Device() inside
LIBMTP_Get_First_Device() refactoring. Move
params creation into this file.
* src/libusb-glue.c: move params creation away
from here.
2008-05-30 Linus Walleij <[email protected]>
* src/libusb-glue.c: unused variable.
* examples/detect.c: switch to using raw device
interface for opening devices.
2008-05-28 Linus Walleij <[email protected]>
* src/libmtp.c: internally using the raw devices to
get a list of devices.
* src/ptp.c: sync to upstream.
* src/ptp.h: dito.
* src/ptp-pack.c: dito.
* src/libmtp.h.in: move raw device detection to use
error codes. Add interface to open a raw device!
* src/libusb-glue.h: make the old device list internal,
use raw device in interface for configuring USB.
* src/libusb-glue.c: fix up error messages. Move the
raw device detection interface to use error codes.
* examples/detect.c: fix up error messages. Use error
codes for raw devices.
2008-05-23 Linus Walleij <[email protected]>
* src/libmtp.c: after sending a file, look up the
resulting file metadata from the cache to make sure
that parent_id is identical to that the file actually
gets on the device. If root folder (0) is selected, we
hardcode thing to 0xffffffffu to be used as parent,
but it will probably end up being 0 for example.
Also fix an issue with ptp_mtp_getobjectproplist()
sometimes returning a NULL pointer while still
claiming there are props in the list.
* src/libusb-glue.h: add a function to get the preferred
playlist extension.
* src/libusb-glue.c: "written" variable in
ptp_usb_sendreq() may end up uninitialized if
ptp_write_func() fails. Initialize it to 0.
Get the prefered playlist extension.
2008-05-18 Richard Low <[email protected]>
* src/device-flags.h: added
DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS device flag
* src/music-players.h: ditto. Also set Samsung YH-999 to
DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL based on users
experience.
* src/libmtp.c: added
DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS device flag
2008-05-05 Linus Walleij <[email protected]>
* src/libusb-glue.c: assign device name and flags to
detected raw devices, slowly preparing to move to
using the raw device detection internally as well.
2008-05-04 Linus Walleij <[email protected]>
* src/libmtp.h.in: move useful filetype macros here so
external programs can use them.
* src/libmtp.c: consequental changes.
* examples/sendtr.c: use the new macro to detect track
content.
2008-05-03 Johannes Huber <[email protected]>
* src/libmtp.h.in: add interface for setting album composer,
needed for classical albums, on abstract albums.
* src/libmtp.c: implement it.
* examples/albums.c: consequental changes.
* examples/connect.c: dito.
* examples/sendtr.c: dito.
* examples/tracks.c: dito.
* AUTHORS: new contributor.
2008-04-27 Linus Walleij <[email protected]>
* src/libmtp.c: recognize audio files as tracks, since this