Bug 1347 - Support subclass and alias information
Summary: Support subclass and alias information
Status: RESOLVED DUPLICATE of bug 1348
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:
Depends on: 1332
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-12 20:21 UTC by Matthias Clasen
Modified: 2004-11-06 04:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matthias Clasen 2004-09-12 20:21:59 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-11-06 23:04:22 UTC

*** This bug has been marked as a duplicate of 1348 ***


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.