Bug 3529 - xdgmime should allow to pass in a stat struct
Summary: xdgmime should allow to pass in a stat struct
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:
Depends on:
Blocks:
 
Reported: 2005-06-12 20:00 UTC by Matthias Clasen
Modified: 2005-10-18 03:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.