summaryrefslogtreecommitdiff
path: root/ChangeLog
blob: 71e3a63575b169bf06825c0ea774f9e774ea7350 (plain)
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
2009-10-06  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_glob_lookup_file_name):
	* src/xdgmimeglob.c (_xdg_glob_hash_lookup_file_name):
	Remove unused variables

2009-10-02  Alexander Larsson  <alexl@redhat.com>

	* src/xdgmime.c: (xdg_mime_get_icon):
	* src/xdgmimecache.c: (_xdg_mime_cache_get_icon):
	Fix mime lookup order, imported from glib copy.
	Fixes gnome bug #555711

2009-10-02  Alexander Larsson  <alexl@redhat.com>

	* src/xdgmimecache.c: (cache_magic_matchlet_compare_to_data):
	Use correct bounds check for magic ranges

2009-10-02  Alexander Larsson  <alexl@redhat.com>

	* src/xdgmimecache.c: (cache_glob_lookup_literal),
	(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (ascii_tolower),
	(cache_glob_lookup_file_name):
	* src/xdgmimeglob.c: (_xdg_glob_list_append),
	(_xdg_glob_hash_insert_ucs4), (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name), (ascii_tolower),
	(_xdg_glob_hash_lookup_file_name), (_xdg_glob_hash_append_glob):
	Support the case-sensitive attribute

2009-10-02  Alexander Larsson  <alexl@redhat.com>

	* src/xdgmimecache.c: (_xdg_mime_cache_new_from_file):
	Support reading cache files with minor number 2

2009-10-02  Alexander Larsson  <alexl@redhat.com>

	* src/xdgmime.c: (xdg_mime_init_from_directory):
	* src/xdgmimeglob.c: (_xdg_glob_hash_append_glob),
	(_xdg_mime_glob_read_from_file):
	* src/xdgmimeglob.h:
	Read the new updated glob2 format with flags

2009-03-09  Bastien Nocera  <hadess@hadess.net>

	* src/test-mime.c (test_one_icon): Fix possible
	crash when xdg_mime_get_icon() returns NULL, spotted by
	Sanel Zukan <sanelz@gmail.com> (Closes: #20555)

2009-01-08  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_shutdown): Patch from
	Carlos Garcia Campos <carlosgc@gnome.org> to
	fix a memory leak on shutdown (Closes: #16972)

2008-09-27  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_dir_time_list_add): Patch from
	Christian Persch, closing a memleak (Closes: #17464)

2008-06-09  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_glob_node_lookup_suffix):
	Patch by Matthias Clasen <mclasen@redhat.com> to implement
	the compact suffix tree

2008-06-05  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_glob_node_lookup_suffix):
	Patch by Matthias Clasen <mclasen@redhat.com> to fix reading
	the suffix lookup (wrong offsets when reading the mime-type
	offset and weight)

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_dump):
	* src/xdgmimecache.c (cache_glob_node_lookup_suffix),
	(dump_glob_node), (_xdg_mime_cache_glob_dump):
	* src/xdgmimecache.h: dumping code for the suffix reverse tree
	from Matthias Clasen <mclasen@redhat.com>, and hooked up in
	xdg_mime_dump, init the cache in xdg_mime_dump() in case
	it's the only xdgmime function called

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c: Patch from Matthias Clasen
	<mclasen@redhat.com>: Bump the cache version to 1.1

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/Makefile:
	* src/test-mime.c (test_one_icon), (test_icons), (main):
	* src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_init),
	(xdg_mime_get_icon), (xdg_mime_get_generic_icon):
	* src/xdgmime.h:
	* src/xdgmimecache.c (cache_lookup_icon),
	(_xdg_mime_cache_get_generic_icon), (_xdg_mime_cache_get_icon):
	* src/xdgmimecache.h:
	* src/xdgmimeicon.c:
	* src/xdgmimeicon.h: Patch from Matthias Clasen
	<mclasen@redhat.com>: Add icon and generic-icon support

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_glob_lookup_file_name):
	* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_lookup_file_name):
	* src/xdgmimeint.c (_xdg_convert_to_ucs4), (_xdg_reverse_ucs4):
	* src/xdgmimeint.h: Patch from Matthias Clasen
	<mclasen@redhat.com>: Cleanups

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (to_ucs4),
	(cache_glob_lookup_file_name):
	* src/xdgmimeglob.c (_xdg_glob_hash_insert_ucs4), (to_ucs4),
	(ucs4_reverse), (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name),
	(_xdg_glob_hash_lookup_file_name): Patch from Matthias Clasen
	<mclasen@redhat.com>: Use reverted suffix trees

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/test-mime.c (test_subclassing), (test_one_match),
	(test_matches), (main): Patch from Matthias Clasen
	<mclasen@redhat.com>: Add some glob tests

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
	<mclasen@redhat.com>: Include globs in the dump

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_init_from_directory):
	* src/xdgmimecache.c (cache_glob_lookup_literal),
	(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (find_stopchars),
	(compare_mime_weight), (cache_glob_lookup_file_name),
	(_xdg_mime_cache_get_mime_type_for_file):
	* src/xdgmimeglob.c (_xdg_glob_list_append),
	(_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
	(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
	(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
	(_xdg_mime_glob_read_from_file):
	* src/xdgmimeglob.h: Patch from Matthias Clasen
	<mclasen@redhat.com>: Implement glob weights

2008-06-03  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
	(_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
	<mclasen@redhat.com>: remove dead code and some trivial cleanups

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/Makefile: Remove test-mime-data on clean
	* src/test-mime-data.c (test_by_data): Fix for API changes below

	* src/xdgmime.c (xdg_dir_time_list_add),
	(xdg_mime_init_from_directory), (xdg_check_file), (xdg_check_dir),
	(xdg_mime_get_mime_type_for_data),
	(xdg_mime_get_mime_type_for_file),
	(xdg_mime_get_mime_type_from_file_name),
	(xdg_mime_get_mime_types_from_file_name), (xdg_mime_shutdown),
	(xdg_mime_get_max_buffer_extents), (_xdg_mime_unalias_mime_type),
	(xdg_mime_media_type_equal), (_xdg_mime_mime_type_subclass),
	(xdg_mime_list_mime_parents):
	* src/xdgmime.h:
	* src/xdgmimealias.h:
	* src/xdgmimecache.c (cache_magic_lookup_data),
	(cache_alias_lookup), (cache_glob_lookup_literal),
	(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (find_stopchars),
	(_xdg_mime_cache_get_max_buffer_extents),
	(cache_get_mime_type_for_data),
	(_xdg_mime_cache_get_mime_type_for_data),
	(_xdg_mime_cache_get_mime_type_for_file),
	(_xdg_mime_cache_get_mime_type_from_file_name),
	(_xdg_mime_cache_get_mime_types_from_file_name),
	(_xdg_mime_cache_mime_type_subclass),
	(_xdg_mime_cache_list_mime_parents):
	* src/xdgmimecache.h:
	* src/xdgmimeglob.c (_xdg_glob_hash_node_lookup_file_name):
	* src/xdgmimeglob.h:
	* src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line),
	(_xdg_mime_magic_lookup_data):
	* src/xdgmimemagic.h:
	* src/xdgmimeparent.h:

	Merge from downstream changes in GIO/GTK+:
	- Rename _xdg_mime_caches to _caches and make sure it's not exported
	- Rework the timestamp checking code
	to protect against duplicate directories in XDG_DATA_DIRS.
	- Fix a thinko that leads to constantly reloading
	the mime data if a mime.cache is present.
	- Support more than 2 duplicate globs
	- Add xdg_mime_get_mime_types_from_file_name()
	- xdg_mime_media_type_equal() doesn't require an _init after all
	- Handle super-types in _xdg_mime_mime_type_subclass()
	- Make cache_get_mime_type_for_data() and
	_xdg_mime_magic_lookup_data() return the priority of the
	matching mime-type
	- Fix _xdg_mime_cache_list_mime_parents returning duplicate parents in
	some cases

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_init_from_directory), (xdg_mime_dump):
	* src/xdgmimecache.c (cache_glob_lookup_literal),
	(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (find_stopchars),
	(cache_glob_lookup_file_name),
	(_xdg_mime_cache_get_mime_type_for_file):
	* src/xdgmimeglob.c (_xdg_glob_list_append),
	(_xdg_glob_list_prepend), (_xdg_glob_hash_node_dump),
	(_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name),
	(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
	(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
	(_xdg_mime_glob_read_from_file):
	* src/xdgmimeglob.h: Revert previous patches, we need to rebase first

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/test-mime.c (test_subclassing), (test_one_match),
	(test_matches), (main): Patch from Matthias Clasen
	<mclasen@redhat.com> to add some globs tests to the
	test program

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_dump): Patch from Matthias Clasen
	<mclasen@redhat.com> to include globs output in the dump

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmime.c (xdg_mime_init_from_directory):
	* src/xdgmimecache.c (cache_glob_lookup_literal),
	(cache_glob_lookup_fnmatch), (cache_glob_node_lookup_suffix),
	(cache_glob_lookup_suffix), (find_stopchars),
	(compare_mime_weight), (cache_glob_lookup_file_name),
	(_xdg_mime_cache_get_mime_type_for_file):
	* src/xdgmimeglob.c (_xdg_glob_list_append),
	(_xdg_glob_hash_node_dump), (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name), (compare_mime_weight),
	(_xdg_glob_hash_lookup_file_name), (_xdg_glob_determine_type),
	(_xdg_glob_hash_append_glob), (_xdg_glob_hash_dump),
	(_xdg_mime_glob_read_from_file):
	* src/xdgmimeglob.h: Patch from Matthias Clasen <mclasen@redhat.com>
	to implement glob weights

2008-06-02  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimeglob.c (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_node_lookup_file_name), (_xdg_glob_determine_type),
	(_xdg_mime_glob_read_from_file): Patch from Matthias Clasen
	<mclasen@redhat.com> to remove dead code and do some trivial changes

2008-04-18  Bastien Nocera  <hadess@hadess.net>

	* src/xdgmimecache.c (cache_magic_lookup_data),
	(_xdg_mime_cache_mime_type_subclass): Fix possible crasher when
	XDG_DATA_DIRS contains the same directory twice, patch by Joe Shaw
	<joeshaw@novell.com> (#12512)

	Make _xdg_mime_cache_mime_type_subclass use the internal version of
	xdg_mime_media_type_equal(), spotted by Federico Mena-Quintero
	<federico@ximian.com>

2008-04-10  Bastien Nocera  <hadess@hadess.net>

	* src/test-mime-data.c (main): Only error out when
	the number of errors is different from the number of expected errors,
	or when there's unexpected success

2007-08-28  Bastien Nocera  <hadess@hadess.net>

	* src/.cvsignore:
	* src/Makefile:
	* src/test-mime-data.c: Add test-mime-data test program from
	Matthias Clasen <mclasen@redhat.com> (Closes: #5210)

2007-06-04  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime*.[ch]: Rename _caches to _xdg_mime_caches. Also
	namespace all reserved symbols that are declared in headers using
	XDG_RESERVED_ENTRY(), #7074 and #11124. Thanks to Yevgen Muntyan
	<muntyan@tamu.edu> and Joe Marcus Clarke <marcus@freebsd.org>.

2007-06-02  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime.[ch]: Move xdg_mime_type_unknown to .rodata.
	* src/xdgmime.h: Add XDG_ENTRY() entry for xdg_mime_dump.
	GTK+ resync.

	* src/xdgmime.c: (_xdg_mime_alias_list_lookup): Initialize mime_type
	to NULL instead of 0, GNOME #341812. Thanks to Kjartan Maraas
	<kmaraas@gnome.org>.

	* src/xdgmime.[ch]: (xdg_mime_media_type_equal),
	(_xdg_mime_media_type_equal): Add private version of
	xdg_mime_media_type_equal that doesn't call xdg_mime_init(), use it in
	_xdg_mime_mime_type_subclass.

2007-06-02  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimemagic.c: Fallback to getc() if getc_unlocked() is not
	available, GNOME #381499. Thanks to Paul <ephraim_owns@hotmail.com>.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime.c: (xdg_mime_get_mime_type_for_file): Only request two
	MIME types from cache.

	* src/xdgmime.c: (xdg_mime_dump): Dump cache.

	* src/xdgmimecache.c: Warn if building without MMAP support.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime.c: (xdg_lookup_cache_for_file), (xdg_check_dir):
	Fix constant re-creation of memory MIME cache, #7495.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name): Don't
	return NULL MIME types, #5241.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime.c: (xdg_mime_shutdown): Fix cache variable name from last
	commit.

	* src/xdgmime.c: (xdg_mime_unalias_mime_type), (xdg_mime_mime_type_equal):
	* src/xdgmime.h:
	* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data):
	Define and use private versions of functions that may lead to an
	xdg_mime_init() call and thus to an invalid cache, and a crash - #6824.
	Thanks to Joe Shaw <joeshaw@novell.com>.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmime.c: (xdg_mime_shutdown): Free caches, #7496.
	Thanks to Yevgen Muntyan <muntyan@tamu.edu>.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimecache.c: (cache_glob_node_lookup_suffix): Don't return
	MIME types if cache suffix lookup returns empty string, #9544.
	Thanks to Yevgen Muntyan <muntyan@tamu.edu>.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Fix issue where
	MIME type was not detected when two MIME types with parent
	relationship match and have equal priority, and child
	was found before parent in cache, #9242.
	Thanks to Tom Parker <freedesktop@tevp.net>.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimecache.c: (_xdg_mime_cache_list_mime_parents): Fix
	several problems with this function, #9560. Thanks to Yevgen Muntyan.

2007-06-01  Christian Neumair  <cneumair@gnome.org>

	* src/xdgmimemagic.c: Don't declare errno, fixes build on Dragonfly
	BSD, GNOME #336382.

2006-07-13  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_parse_magic_line):
	Only declare 'i' #if LITTLE_ENDIAN. Partially fixes GNOME #340277.
	Thanks to James Andrewartha.

2006-03-02  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_insert_text),
	(_xdg_glob_hash_append_glob): Don't strdup the MIME type when passing
	it to _xdg_glob_hash_insert_text, but let the function itself figure
	out whether string duplication is needed. Fixes #5993.
	Thanks to Martin Wehner.

2006-02-25  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Make
	priority equality check more robust so that it works for three or more
	matches. Also allow matchlets with 0 priority.

2006-02-19  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): When two
	unrelated MIME types with equal priorities match, don't assume one of
	them matches.
	http://bugzilla.gnome.org/show_bug.cgi?id=331719

2006-01-03  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_lookup_data): Also consider
	match priority for the returned MIME type.

2005-12-01  Christian Neumair  <chris@gnome-de.org>

	* src/xdgmime.c: (xdg_mime_get_mime_type_from_file_name):
	* src/xdgmimecache.c: (_xdg_mime_cache_get_mime_type_from_file_name):
	Return XDG_MIME_TYPE_UNKNOWN if multiple MIME types match a simple
	pattern.

2005-12-01  Matthias Clasen  <mclasen@redhat.com>

	* src/xdgmimecache.h:
	* src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file): 
	Allow passing in a struct stat * to avoid re-stat()ing. 
	Forgotten commit from an earlier entry.

	* src/xdgmimecache.c (cache_glob_lookup_literal):
	(cache_glob_lookup_fnmatch):
	(cache_glob_node_lookup_suffix): Change these functions to
	allow returning more than one mime type if identical globs
	match.

	* src/xdgmimemagic.h: 
	* src/xdgmimeglob.h: 
	* src/xdgmimemagic.c (_xdg_mime_magic_lookup_data): 
	* src/xdgmimeglob.c (_xdg_glob_hash_lookup_file_name): 
	Change these functions to allow returning more than one
	mime type if identical globs match.
	
	* src/xdgmimecache.c (_xdg_mime_cache_get_mime_type_for_file): 
	* src/xdgmime.c (xdg_mime_get_mime_type_for_file): 
	If multiple identical globs match, use magic to disambiguate.
	
2005-11-04  Matthias Clasen  <mclasen@redhat.com>

	* xdgmime.c (xdg_mime_list_mime_parents): Prevent
	a segfault.

2005-10-18  Matthias Clasen  <mclasen@redhat.com>
	
	* src/xdgmime.c:
	* src/xdgmimecache.h:
	* src/xdgmimecache.c: Make the array of caches NULL-terminated
	and rename it to _caches.  (#4011)

	* src/xdgmime.h:
	* src/xdgmime.c: Add a struct statbuf * argument to 
	xdg_mime_get_mime_type_for_file().  (#3529)

	* src/test-mime.c: Adjust callers. Add License.

	* src/xdgmimecache.c: Make magic comparisons work correctly.

Thu Jun  9 23:55:25 2005  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmime.c (xdg_mime_init_from_directory): patch from
	federico to realloc the right size, #3506

2005-04-17  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimeint.c: fix gcc4 signedness warning

2005-04-17  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data),
	(_xdg_mime_magic_matchlet_compare_level),
	(_xdg_mime_magic_lookup_data): when  magic patterns matches, check if
	there aren't subtypes with matching patterns too, and if so, favour
	the subtype over the parent type, should fix #2686

2005-04-16  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmime.c: (xdg_mime_init_from_directory): fix leak when
	mime.cache doesn't exist

2005-04-16  Christophe Fergeau  <teuf@gnome.org>

	* src/test-mime.c: (main): disabled call to xdg_mime_dump for now
	* src/xdgmimemagic.c: (_xdg_mime_magic_matchlet_compare_to_data):
	fixed off by 1 error when handling offsets, fixes bug #2050 and 
	partly bug #2359

Fri Apr  8 23:37:33 2005  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmimecache.c: Actually add the file.  Also, patch from
	Matthias Clasen <mclasen@redhat.com> to fix small bugs, #2939

Fri Apr  1 14:59:43 2005  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmimecache.c: Patch from Matthias Clasen to mmap the
	cached xdg file.

Mon Mar 28 13:58:32 2005  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmimeglob.c (_xdg_glob_hash_insert_text): patch from
	Matthias Clasen to handle globs that don't have '.' chars in
	them.  As an example 'foo~' should match '*~'

Mon Mar 21 13:16:12 2005  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmime.c (xdg_mime_shutdown): fix from  Axel Liljencrantz
	<f97-ali@nada.kth.se> to free parent_list in shutdown.

2005-01-10  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): make previous
	commit actually work...

2005-01-10  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name): don't get
	confused by multiple dots in filenames when doing extension matching

2004-12-13  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmime.h:

	 wrap new API in XDG_ENTRY()

2004-12-13  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_lookup_file_name):

	Do not assume the filename is UTF8. We just need to look
	for the dot which is ASCII.

2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeint.h:

	Remove spacings I introduced by mistake

2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimealias.c: (_xdg_mime_alias_read_from_file):
	* src/xdgmimeint.c: (_xdg_ucs4_to_lower):
	* src/xdgmimeint.h:
	* src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):

	Check in Mariano Suárez-Alvarez <msuarezalvarez@arnet.com.ar> patch
	for GNOME bug #160838.

2004-12-09  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_node_lookup_file_name):
	* src/xdgmimeint.c: (_xdg_ucs4_to_lower):
	* src/xdgmimeint.h:

	Follow the freedesktop spec about case sensitiveness. Fix #732

2004-12-08  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file): backing out
	"fix" for bug #1048 since it frees memory that shouldn't be freed.

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimemagic.c: (_xdg_mime_magic_read_from_file):

	Check that fread succeeded reading all chars. Fix #1049

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmime.c:
	* src/xdgmimealias.c:
	* src/xdgmimeglob.c:
	* src/xdgmimeint.c:
	* src/xdgmimemagic.c:
	* src/xdgmimeparent.c:

	Include config.h. Fix #913

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):

	Fix a typo

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmime.c: (xdg_mime_unalias_mime_type),
	(xdg_mime_mime_type_equal), (xdg_mime_mime_type_subclass),
	(xdg_mime_get_mime_parents):
	* src/xdgmime.h:

	Add apis to get parents and to unalias mime type

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimealias.c: (_xdg_mime_alias_list_lookup):
	* src/xdgmimeparent.c: (_xdg_mime_parent_list_lookup):

	Protect against stupid bsearch() implementations.  (#1961,
	Morten Welinder)

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeparent.c: (_xdg_mime_parent_read_from_file):

	Initialize the parent field of the newly allocate list 
	entry.  (#1916, Alex Larsson)

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeglob.c: (_xdg_mime_glob_read_from_file):

	Patch from Matthias Clasen <mclasen@redhat.com> to fix
	a mem leak. Bug #1048

2004-12-08  Marco Pesenti Gritti  <marco@gnome.org>

	* src/xdgmimeglob.h:

	Patch from Michael.Wilson@bull.net to fix compile error on AIX

Sun Nov  7 02:25:21 2004  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmime.h: Patch from Matthias Clasen <mclasen@redhat.com>
	to add alias and inheritance support.

2004-09-16  Christophe Fergeau  <teuf@gnome.org>

	* src/xdgmimeglob.c: (_xdg_glob_hash_free_nodes):
	* src/xdgmimemagic.c: (_xdg_mime_magic_free): fix memory leaks, 
	  fixes http://bugzilla.gnome.org/show_bug.cgi?id=152771 and
	  http://bugzilla.gnome.org/show_bug.cgi?id=152768

Mon Jul 19 00:23:00 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.c (xdg_mime_register_reload_callback): register a
	callback when we reload MIME data.

	* src/xdgmime.c (xdg_mime_remove_callback): Add capability to
	remove callback.

Sun Jul 18 20:56:22 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.c (xdg_mime_shutdown):
	(xdg_mime_init): reread data when it changes on disk.

Thu May 27 16:18:14 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.h: move xdg_mime_shutdown into the XDG_ENTRY guard.

Thu May 27 15:02:13 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
	Hongli Lai <h.lai@chello.nl> to catch magic files that don't end
	with a '\n'.

Fri Apr 30 11:56:01 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): make the
	buffer the right size.  Reported by Morten Welinder, #136323

Sun Mar 21 23:56:46 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmimemagic.c: Patch from Arjan van de Ven
	<arjanv@redhat.com> to do s/fgetc/getc_unlocked/g.

Wed Mar 10 22:28:41 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): fix usage of
	isdigit.  Reported by Morten Welinder, #136323

	* src/xdgmimemagic.c (_xdg_mime_magic_read_magic_file): patch from
	Christophe Fergeau to reverse the order of the matchlet before
	adding it to the list.

	* src/xdgmimeint.h (_xdg_utf8_skip): patch from Alexander Larsson
	to make extern.

Wed Jan 21 09:29:41 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmimemagic.c (_xdg_mime_magic_insert_match): dropped
	patches.  Fix.

	* src/xdgmimeglob.c (_xdg_glob_hash_free_nodes): dropped patches.
	Fix.

Tue Jan 20 14:55:39 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.h (XDG_MIME_TYPE_UNKNOWN): move the definition so
	that it catches the XDG_ENTRY mangling.

	* src/xdgmimemagic.c: make some functions static

Tue Jan 20 14:34:26 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.c (xdg_mime_get_max_buffer_extents): add function so
	that it's easy to get the max buffer extents.

Tue Jan 20 12:55:55 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/Makefile: Test prefix code

	* src/xdgmime*.h: Fully use the prefix code

	* src/xdgmime.c: finish the syncing from both GTK+ and gnome-vfs.

Tue Jan 13 16:21:04 2004  Jonathan Blandford  <jrb@gnome.org>

	* src/xdgmime.[ch] (XDG_MIME_TYPE_UNKNOWN): make an extern const
	char * so that comparisons can work.

	* src/xdgmimeint.c (_xdg_utf8_to_ucs4): patch from Dave Jones
	<davej@redhat.com> to make operations more explicit.

Tue Oct 28 15:09:06 2003  Jonathan Blandford  <jrb@redhat.com>

	* README: Add a readme, and clarify the licensing terms of the
	software.

Tue Oct 28 14:47:37 2003  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmime.c (xdg_mime_shutdown): implement shutdown.  This
	frees all memory and resets to an uninitialized state as best as
	possible.

Mon Oct 27 11:45:58 2003  Jonathan Blandford  <jrb@redhat.com>

	* src/xdgmimemagic.c (_xdg_mime_magic_read_a_number): strtol
	returns a long, not an int.  Thanks to Manish Singh for pointing
	this out.

	* src/xdgmimemagic.c (_xdg_mime_magic_parse_magic_line): change
	assertion to avoid a warning.

Tue Oct 21 15:56:55 2003  Jonathan Blandford  <jrb@gnome.org>

	* Makefile: add a simple makefile
	* src/Makefile: ditto

Tue Jul 22 15:37:45 2003  Jonathan Blandford  <jrb@gnome.org>

	* xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of
	XDG_CONFIG_HOME.