3 On-disk registry for mapping namespace to typelib.
4 Conceptually similar to mono /etc/mono/config.
6 It should be possible in a dynamic language such as python to just do:
8 >>> import PythonIntrospectionBindings
12 Gtk should be a special namespace provided by the package containing the
15 Layout of the on disk tool
16 ==========================
18 Location to should be /var/lib/glib/introspection-registry.xml
19 Should be read completely. Not expected to be larger than one page on most
25 <registry-path location="/usr/lib/typelibs/1.0/">
26 <registry-path location="$HOME/.typelibs/">
27 <entry namespace="Gtk"
28 library-location="libgtk-x11-2.0.so.0"
29 typelib-location="gtk.typelib"/>
33 FIXME: pkg-config name?
35 The overhead should be reduced to a minimum, both runtime and memory footprint.
36 Thus a binary format that is mmap(2):able is ideal:
40 Is a command line utility, probably written in C which should be used
41 to update/modify the registry.
43 Example use cases, installing a new typelib
45 gir-registry-tool --install Gtk /usr/lib/glib/introspection/gtk.typelib 2.12.0
46 gir-registry-tool --uninstall Gtk /usr/lib/glib/introspection/gtk.typelib 2.12.0
48 It's the registry tools responsibility to sort the disk format.
53 libgirepository should provide an api:
55 gi_locale_typelib (const gchar *name, const gchar * version);
57 version should NULL, if so it should pick the first one in the on-disk registry.
59 libgirepository should mmap the registry and read it when that API is called