update to new ideas
[platform/upstream/gstreamer.git] / docs / random / thomasvs / registry
1 Reviewing the registry (thomasvs, April 8 2002)
2
3 * added a --gst-registry flag to the core which allows any gst app
4   to specify a different registry for loading/saving
5
6   some stuff to do this went into gstreamer/gst/gstregistry.h
7
8 * What location is used for writing ? (gst-register)
9
10   - if specified (using --gst-registry) then use the specified location
11   - if not specified :
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
15
16 * What location is used for reading ? (gst-whatever)
17
18   - if specified (using --gst-registry) then use the specified location
19   - if not specified :
20     - right now :
21       if local exists, only read local
22       if not, read global
23
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
27
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
33
34 * QUESTIONS
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