Bug 1347

Summary: Support subclass and alias information
Product: xdgmime Reporter: Matthias Clasen <mclasen>
Component: xdgmimeAssignee: Jonathan Blandford <jrb>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 1332    
Bug Blocks:    

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.