Bug 26913 - Add OpenCL MIME-type
Summary: Add OpenCL MIME-type
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium trivial
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-05 12:23 UTC by Matthias Fuchs
Modified: 2017-03-09 13:13 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
patch to add OpenCL mime-type (1.78 KB, patch)
2017-03-04 00:24 UTC, Kevin Funk
Details | Splinter Review
patch v2, added missing hunks (2.93 KB, patch)
2017-03-04 00:25 UTC, Kevin Funk
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fuchs 2010-03-05 12:23:29 UTC
Could you please add OpenCL C to the MIME database?
OpenCL C is mostly based on C99.

File-ending: .cl
Comment 1 Bastien Nocera 2010-03-05 12:29:29 UTC
See the HACKING file in the sources for how to request new mime-types.
Comment 2 Bastien Nocera 2013-02-13 10:17:12 UTC
Please follow the instructions at:
http://cgit.freedesktop.org/xdg/shared-mime-info/tree/HACKING#n31
for mime-type additions.
Comment 3 Kevin Funk 2017-03-04 00:24:17 UTC
Created attachment 130058 [details] [review]
patch to add OpenCL mime-type
Comment 4 Kevin Funk 2017-03-04 00:25:10 UTC
Created attachment 130059 [details] [review]
patch v2, added missing hunks
Comment 5 Bastien Nocera 2017-03-04 11:43:33 UTC
Is there no better mime-type than "text/x-openclsrc" ?
Comment 6 Kevin Funk 2017-03-04 20:09:37 UTC
Well, suggestions welcome.

I made that name up. The naming scheme is adopted from "x-c++src", etc., seems consistent to me.
Comment 7 Bastien Nocera 2017-03-09 13:07:22 UTC
Stupid spammer...
Comment 8 Bastien Nocera 2017-03-09 13:13:33 UTC
I used text/x-opencl-src instead, to make it readable.

commit 4ab969c398671c519a10a601ad3eeb46f04361de
Author: Kevin Funk <kfunk@kde.org>
Date:   Sat Mar 4 01:22:00 2017 +0100

    Add OpenCL mime-type
    
    https://bugs.freedesktop.org/show_bug.cgi?id=26913


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.