Bug 1348

Summary: Support subclass and alias information
Product: xdgmime Reporter: Matthias Clasen <mclasen>
Component: xdgmimeAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED 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:    
Attachments: patch against (the gtk copy of) xdgmime

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.