~ubuntu-branches/ubuntu/utopic/gconf/utopic

« back to all changes in this revision

Viewing changes to doc/gconf/tmpl/gconf-engine.sgml

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-11-01 08:48:09 UTC
  • mfrom: (1.2.1) (76.1.1 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20111101084809-f6skp1hyp3gni1ru
Tags: 3.2.3-0ubuntu1
* New upstream release.
  - Fixes gconf crasher regression in 3.2.2 (LP: #882525)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
GConfEngine
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
 
 
6
a GConf "database"
 
7
 
 
8
<!-- ##### SECTION Long_Description ##### -->
 
9
<para>
 
10
A #GConfEngine represents a connection to the GConf database. The
 
11
default #GConfEngine, returned from gconf_engine_get_default(), represents the
 
12
user's normal configuration source search path. Configuration-related
 
13
utilities, such as a configuration editor tool, might wish to access a
 
14
particular configuration source directly; they can obtain a
 
15
non-default #GConfEngine with gconf_engine_get_for_address().
 
16
</para>
 
17
 
 
18
<para>
 
19
Once you have a #GConfEngine, you can query and manipulate
 
20
configuration values.
 
21
</para>
 
22
 
 
23
<!-- ##### SECTION See_Also ##### -->
 
24
<para>
 
25
 
 
26
</para>
 
27
 
 
28
<!-- ##### SECTION Stability_Level ##### -->
 
29
 
 
30
 
 
31
<!-- ##### SECTION Image ##### -->
 
32
 
 
33
 
 
34
<!-- ##### STRUCT GConfEngine ##### -->
 
35
<para>
 
36
 
 
37
</para>
 
38
 
 
39
 
 
40
<!-- ##### FUNCTION gconf_engine_get_default ##### -->
 
41
<para>
 
42
 
 
43
</para>
 
44
 
 
45
@void: 
 
46
@Returns: 
 
47
 
 
48
 
 
49
<!-- ##### FUNCTION gconf_engine_get_for_address ##### -->
 
50
<para>
 
51
Obtains a special #GConfEngine; mostly useful for specialized
 
52
GConf-related tools. Normal clients shouldn't need to use it.
 
53
As with gconf_engine_get_default(), the returned #GConfEngine should be
 
54
unreferenced by the caller of this function.
 
55
</para>
 
56
 
 
57
@address: a configuration source address.
 
58
@err: the return location for an allocated #GError, or <symbol>NULL</symbol> to ignore errors.
 
59
@Returns: a #GConfEngine.
 
60
 
 
61
 
 
62
<!-- ##### FUNCTION gconf_engine_get_for_addresses ##### -->
 
63
<para>
 
64
Similar to gconf_engine_get_for_address() , but takes a list of addresses 
 
65
instead of a single address.
 
66
</para>
 
67
 
 
68
@addresses: a list of configuration addresses.
 
69
@err: the return location for an allocated #GError, or <symbol>NULL</symbol> to ignore errors.
 
70
@Returns: a #GConfEngine.
 
71
@Since: 2.4
 
72
 
 
73
 
 
74
<!-- ##### FUNCTION gconf_engine_unref ##### -->
 
75
<para>
 
76
Decreases the reference count of a #GConfEngine by one; if the
 
77
reference count reaches 0, destroys the #GConfEngine.
 
78
</para>
 
79
 
 
80
@conf: a #GConfEngine.
 
81
 
 
82
 
 
83
<!-- ##### FUNCTION gconf_engine_ref ##### -->
 
84
<para>
 
85
Increases the reference count of a #GConfEngine by one.
 
86
</para>
 
87
 
 
88
@conf: a #GConfEngine.
 
89
 
 
90
 
 
91
<!-- ##### FUNCTION gconf_engine_get_local ##### -->
 
92
<para>
 
93
Obtain a local (non-process-transparent) #GConfEngine. Local engines
 
94
do not support notification, and can only access config databases
 
95
directly (they do not use the multiple sources in a path system
 
96
supported by nonlocal engines).
 
97
</para>
 
98
 
 
99
@address: address of local database.
 
100
@err: return location of an allocated #GError.
 
101
@Returns: a #GConfEngine.
 
102
 
 
103
 
 
104
<!-- ##### FUNCTION gconf_engine_get_local_for_addresses ##### -->
 
105
<para>
 
106
Obtains a local #GConfEngine similar to gconf_engine_get_local ().
 
107
Instead of taking the address of the local database, this function takes
 
108
the addresses of the sources and gets the #GConfSources using gconf_sources_new_from_addresses ().
 
109
</para>
 
110
 
 
111
@addresses: a list of addresses of #GConfSources.
 
112
@err: the return location for an allocated #GError, or <symbol>NULL</symbol> to ignore errors.
 
113
@Returns: a #GConfEngine.
 
114
@Since: 2.8
 
115
 
 
116
 
 
117
<!-- ##### FUNCTION gconf_engine_set_user_data ##### -->
 
118
<para>
 
119
Sets the user_data and the destroy notification function fields of a #GConfEngine.
 
120
</para>
 
121
 
 
122
@engine: a #GConfEngine.
 
123
@data: a #gpointer.
 
124
@dnotify: a pointer to the function to be called during destroy.
 
125
 
 
126
 
 
127
<!-- ##### FUNCTION gconf_engine_get_user_data ##### -->
 
128
<para>
 
129
Returns the user_data field of a #GConfEngine.
 
130
</para>
 
131
 
 
132
@engine: a #GConfEngine.
 
133
@Returns: a pointer to the user_data.
 
134
 
 
135