Bug 3529

Summary: xdgmime should allow to pass in a stat struct
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:

Description Matthias Clasen 2005-06-12 20:00:07 UTC
In order to save one syscall, if the caller has a struct stat lying around.

The following patch just adds a struct stat * argument to 
xdg_mime_get_mime_type_for_file(). Alternatively, you could add
a get_mime_type_for_file_full() with that signature, and turn
xdg_mime_get_mime_type_for_file() into a macro.
Comment 1 Matthias Clasen 2005-06-12 20:01:13 UTC
Created attachment 2883 [details]
xorg.conf.optiplex
Comment 2 Matthias Clasen 2005-10-18 20:11:42 UTC
2005-10-18  Matthias Clasen  <mclasen@redhat.com>

        * 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.

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.