1 Reviewing the registry (thomasvs, April 8 2002)
3 * added a --gst-registry flag to the core which allows any gst app
4 to specify a different registry for loading/saving
6 some stuff to do this went into gstreamer/gst/gstregistry.h
8 * What location is used for writing ? (gst-register)
10 - if specified (using --gst-registry) then use the specified location
12 - it can be written in the global location, do it there
13 (which should be sysconfdir/gstreamer) and reg.xml
14 - if not writable, then try ~/.gstreamer/reg.xml
16 * What location is used for reading ? (gst-whatever)
18 - if specified (using --gst-registry) then use the specified location
21 if local exists, only read local
24 - TODO: try reading GST_CONFIG_DIR/reg.xml first
25 then try reading ~/.gstreamer/reg.xml
26 AND replace every namespace collision with the new one
28 * actual variables stuff (gstregistry.c)
29 - use gst_registry_write_get to get a GstRegistryWrite struct back
30 listing the right location of dir, file and tmp file
31 - use gst_registry_read_get to get a GstRegistryRead struct back
32 listing the path of global and local file to read
35 - maybe it's better to try the global registry first (if unspecified),
36 and see if you have write permissions ? Because if you do, you might
37 as well do it there - the system gave you the permission.
38 useful for doing garnome installs as a user