Bug 1348 - Support subclass and alias information
Summary: Support subclass and alias information
Status: RESOLVED FIXED
Alias: None
Product: xdgmime
Classification: Unclassified
Component: xdgmime (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
: 1347 (view as bug list)
Depends on: 1332
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-12 20:26 UTC by Matthias Clasen
Modified: 2004-11-06 04:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch against (the gtk copy of) xdgmime (22.18 KB, patch)
2004-09-12 20:26 UTC, Matthias Clasen
Details | Splinter Review

Description Matthias Clasen 2004-09-12 20:26:02 UTC
Here is a patch which adds three new public functions,

int         xdg_mime_mime_type_equal              (const char *mime_a,
						   const char *mime_b);
int         xdg_mime_media_type_equal             (const char *mime_a,
						   const char *mime_b);
int         xdg_mime_mime_type_subclass           (const char *mime_a,
						   const char *mime_b);

The first one uses the alias information in the mime database to determine 
whether two mime types should be considered the same, the last one uses 
subclass and alias information to determine whether a mime type should be
considered subclass of another one. The second function compares the media
parts of two mime types for equality, and can be used when implementing 
support for "super types" like "text/*".
Comment 1 Matthias Clasen 2004-09-12 20:26:41 UTC
Created attachment 879 [details] [review]
patch against (the gtk copy of) xdgmime
Comment 2 Matthias Clasen 2004-11-06 23:04:23 UTC
*** Bug 1347 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Blandford 2004-11-06 23:45:17 UTC
Committed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.