diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-10 00:33:53 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-10 00:33:53 +0000 |
commit | fa87fd5b27da1a4028806abb5a9fa46a1e0d3348 (patch) | |
tree | 08b38b431e24175a89a54c7629dfb0e14a1b834e /lasso/registry.c | |
parent | 0119b91e56e9cb26ea053be91c1e6e1fb808b05e (diff) | |
download | lasso-fa87fd5b27da1a4028806abb5a9fa46a1e0d3348.tar.gz lasso-fa87fd5b27da1a4028806abb5a9fa46a1e0d3348.tar.xz lasso-fa87fd5b27da1a4028806abb5a9fa46a1e0d3348.zip |
Update documentation of the registry module
Diffstat (limited to 'lasso/registry.c')
-rw-r--r-- | lasso/registry.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/lasso/registry.c b/lasso/registry.c index 51f3bc31..81bcf23c 100644 --- a/lasso/registry.c +++ b/lasso/registry.c @@ -29,22 +29,27 @@ /** * SECTION:registry - * @short_description: Class to store a mapping of QName to other QName. + * @short_description: Class to store a mapping of qualified names (QName) to other qualified names. * - * This object implement a function of (namespace, name, namespace) -> namespace. For the moment - * there is no need to enumerate all (namespace, name) pair given a base pair (i.e. a function - * (namespace, name) -> [(namespace,name)]. + * A qualified name is a name or a string in the context of another name, or namespace. + * This object implement a function of a tuple (namespace, name, namespace) to a name. For the + * moment there is no need to enumerate all tuples (namespace, name) pair given a base pair, i.e. a + * function from tuple (namespace, name) to a list of tuples (namespace,name). * - * We support two kind of mapping; you can give a direct mapping between two QName, or you can give - * a function that will manage mapping between one namespace and another one. - * - * A QName is a name qualified by a namespace. + * We support two kinds of mapping: + * <itemizedlist> + * <listitem><para>you can give a direct mapping between two QName,</para></listitem> + * <listitem><para>or you can give a function that will manage mapping between one namespace and + * another one.</para></listitem> + * </itemizedlist> * * For internal use inside lasso we define the following namespaces: - * LASSO_LASSO_HREF http://www.entrouvert.org/namespaces/lasso/0.0 - * LASSO_PYTHON_HREF http://lasso.entrouvert.org/namespaces/python/0.0 + * <itemizedlist> + * <listitem><para>#LASSO_LASSO_HREF and,</para></listitem> + * <listitem><para>#LASSO_PYTHON_HREF.</para></listitem> + * </itemizedlist> * - * For functionnal mappings the mapping function must return const char* strings created using + * For functional mappings the mapping function must return constant strings created using * g_intern_string() or using g_type_name(). */ |