diff options
author | Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> | 2021-12-13 19:59:06 +0100 |
---|---|---|
committer | StefanBruens <stefan.bruens@rwth-aachen.de> | 2022-04-19 15:19:22 +0000 |
commit | d9d5fc1666f2de03ba44d9a5ea9d2a26e545db76 (patch) | |
tree | 4d511d7ea0a0a7d4fe275ddfd5b45478d0419af3 /data | |
parent | 13695c7225c2f525a435e72739c33ac32bbfbbb9 (diff) | |
download | shared-mime-info-d9d5fc1666f2de03ba44d9a5ea9d2a26e545db76.tar.gz |
Add mimetype for Devicetree source code
Make sure at least the first two characters are ASCII, to guard against
any binary files. The maximum offset is fairly large, as many files
start with a large license stanza.
Diffstat (limited to 'data')
-rw-r--r-- | data/freedesktop.org.xml.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 2c09cdb0..68476bb3 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -7898,6 +7898,28 @@ command to generate the output files. <glob pattern="*.kt"/> </mime-type> + <mime-type type="text/x-devicetree-source"> + <comment>Devicetree source code</comment> + <acronym>DTS</acronym> + <expanded-acronym>Device Tree Source</expanded-acronym> + <sub-class-of type="text/plain"/> + <glob pattern="*.dts"/> + <glob pattern="*.dtsi"/> + <magic> + <match type="string" mask="0x8080" value="\000\000" offset="0"> + <match type="string" value="/dts-v1/" offset="0:4080"/> + </match> + </magic> + <magic priority="40"> + <match type="string" mask="0x8080" value="\000\000" offset="0"> + <match type="string" value="/ {" offset="0:4090"/> + <match type="string" value="include " offset="0:4080"> + <match type="string" value=".dts" offset="10:4090"/> + </match> + </match> + </magic> + </mime-type> + <mime-type type="image/avif"> <comment>AVIF image</comment> <acronym>AVIF</acronym> |