xref: /freebsd/contrib/file/magic/Magdir/gnome (revision 48c779cdecb5f803e5fe5d761987e976ca9609db)
1
2#------------------------------------------------------------------------------
3# $File: gnome,v 1.6 2019/04/19 00:42:27 christos Exp $
4# GNOME related files
5
6# Contributed by Josh Triplett
7# FIXME: Could be simplified if pstring supported two-byte counts
80         string   GnomeKeyring\n\r\0\n GNOME keyring
9>&0       ubyte    0                    \b, major version 0
10>>&0      ubyte    0                    \b, minor version 0
11>>>&0     ubyte    0                    \b, crypto type 0 (AES)
12>>>&0     ubyte    >0                   \b, crypto type %u (unknown)
13>>>&1     ubyte    0                    \b, hash type 0 (MD5)
14>>>&1     ubyte    >0                   \b, hash type %u (unknown)
15>>>&2     ubelong  0xFFFFFFFF           \b, name NULL
16>>>&2     ubelong  !0xFFFFFFFF
17>>>>&-4   ubelong  >255                 \b, name too long for file's pstring type
18>>>>&-4   ubelong  <256
19>>>>>&-1  pstring  x                    \b, name "%s"
20>>>>>>&0  ubeqdate x                    \b, last modified %s
21>>>>>>&8  ubeqdate x                    \b, created %s
22>>>>>>&16 ubelong  &1
23>>>>>>>&0 ubelong  x                    \b, locked if idle for %u seconds
24>>>>>>&16 ubelong  ^1                   \b, not locked if idle
25>>>>>>&24 ubelong  x                    \b, hash iterations %u
26>>>>>>&28 ubequad  x                    \b, salt %llu
27>>>>>>&52 ubelong  x                    \b, %u item(s)
28
29# From: Alex Beregszaszi <alex@fsn.hu>
304	string	gtktalog		GNOME Catalogue (gtktalog)
31>13	string	>\0			version %s
32
33# Summary: GStreamer binary registry
34# Extension: .bin
35# Submitted by: Josh Triplett <josh@joshtriplett.org>
360	belong	0xc0def00d		GStreamer binary registry
37>4	string	x			\b, version %s
38
39# GVariant Database file
40# By Elan Ruusamae <glen@delfi.ee>
41# https://github.com/GNOME/gvdb/blob/master/gvdb-format.h
42# It's always "GVariant", it's byte swapped on incompatible archs
43# See https://github.com/GNOME/gvdb/blob/master/gvdb-builder.c
44# file_builder_serialise()
45# https://developer.gnome.org/glib/2.34/glib-GVariant.html#GVariant
460	string	GVariant	GVariant Database file,
47# version is never filled. probably future extension
48>8	lelong	x		version %d
49# not sure are these usable, so commented out
50#>>16	lelong	x		start %d,
51#>>>20	lelong	x		end %d
52
53# G-IR database made by gobject-introspect toolset,
54# https://live.gnome.org/GObjectIntrospection
550	string		GOBJ\nMETADATA\r\n\032	G-IR binary database
56>16	byte		x			\b, v%d
57>17	byte		x			\b.%d
58>20	leshort		x			\b, %d entries
59>22	leshort		x			\b/%d local
60