10
10
<refpurpose>standard callbacks for use by gnome-vfs module writers</refpurpose>
13
<refsynopsisdiv id="gnome-vfs-20-gnome-vfs-standard-callbacks.synopsis" role="synopsis">
13
<refsynopsisdiv id="gnome-vfs-2.0-gnome-vfs-standard-callbacks.synopsis" role="synopsis">
14
14
<title role="synopsis.title">Synopsis</title>
17
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</link>
17
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</link>
18
18
<link linkend="GnomeVFSModuleCallbackFillAuthenticationIn">GnomeVFSModuleCallbackFillAuthenticationIn</link>;
19
19
<link linkend="GnomeVFSModuleCallbackFillAuthenticationOut">GnomeVFSModuleCallbackFillAuthenticationOut</link>;
20
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</link>
20
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</link>
21
21
enum <link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags">GnomeVFSModuleCallbackFullAuthenticationFlags</link>;
22
22
<link linkend="GnomeVFSModuleCallbackFullAuthenticationIn">GnomeVFSModuleCallbackFullAuthenticationIn</link>;
23
23
<link linkend="GnomeVFSModuleCallbackFullAuthenticationOut">GnomeVFSModuleCallbackFullAuthenticationOut</link>;
24
24
enum <link linkend="GnomeVFSModuleCallbackFullAuthenticationOutFlags">GnomeVFSModuleCallbackFullAuthenticationOutFlags</link>;
25
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</link>
25
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</link>
26
26
<link linkend="GnomeVFSModuleCallbackSaveAuthenticationIn">GnomeVFSModuleCallbackSaveAuthenticationIn</link>;
27
27
<link linkend="GnomeVFSModuleCallbackSaveAuthenticationOut">GnomeVFSModuleCallbackSaveAuthenticationOut</link>;
28
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION--CAPS">GNOME_VFS_MODULE_CALLBACK_QUESTION</link>
28
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS">GNOME_VFS_MODULE_CALLBACK_QUESTION</link>
29
29
<link linkend="GnomeVFSModuleCallbackQuestionIn">GnomeVFSModuleCallbackQuestionIn</link>;
30
30
<link linkend="GnomeVFSModuleCallbackQuestionOut">GnomeVFSModuleCallbackQuestionOut</link>;
31
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE--CAPS">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</link>
31
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</link>
32
32
<link linkend="GnomeVFSModuleCallbackStatusMessageIn">GnomeVFSModuleCallbackStatusMessageIn</link>;
33
33
<link linkend="GnomeVFSModuleCallbackStatusMessageOut">GnomeVFSModuleCallbackStatusMessageOut</link>;
34
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS--CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</link>
34
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</link>
35
35
<link linkend="GnomeVFSModuleCallbackAdditionalHeadersIn">GnomeVFSModuleCallbackAdditionalHeadersIn</link>;
36
36
<link linkend="GnomeVFSModuleCallbackAdditionalHeadersOut">GnomeVFSModuleCallbackAdditionalHeadersOut</link>;
37
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</link>
37
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</link>
38
38
<link linkend="GnomeVFSModuleCallbackReceivedHeadersIn">GnomeVFSModuleCallbackReceivedHeadersIn</link>;
39
39
<link linkend="GnomeVFSModuleCallbackReceivedHeadersOut">GnomeVFSModuleCallbackReceivedHeadersOut</link>;
40
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION--CAPS">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</link>
41
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION--CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</link>
40
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</link>
41
#define <link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION:CAPS">GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</link>
42
42
enum <link linkend="GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</link>;
43
43
<link linkend="GnomeVFSModuleCallbackAuthenticationIn">GnomeVFSModuleCallbackAuthenticationIn</link>;
44
44
<link linkend="GnomeVFSModuleCallbackAuthenticationOut">GnomeVFSModuleCallbackAuthenticationOut</link>;
56
<refsect1 id="gnome-vfs-20-gnome-vfs-standard-callbacks.description" role="desc">
56
<refsect1 id="gnome-vfs-2.0-gnome-vfs-standard-callbacks.description" role="desc">
57
57
<title role="desc.title">Description</title>
62
<refsect1 id="gnome-vfs-20-gnome-vfs-standard-callbacks.details" role="details">
63
<refsect1 id="gnome-vfs-2.0-gnome-vfs-standard-callbacks.details" role="details">
63
64
<title role="details.title">Details</title>
64
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS" role="macro">
65
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" role="macro">
65
66
<title>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</title>
66
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION "fill-authentication"
67
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</primary></indexterm>
68
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION "fill-authentication"
69
71
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
116
119
</programlisting>
118
121
A pointer to a <link linkend="GnomeVFSModuleCallbackFillAuthenticationIn"><type>GnomeVFSModuleCallbackFillAuthenticationIn</type></link> structure is passed to the
119
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> callback, and informs the application
122
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> callback, and informs the application
120
123
about the authentication parameters that should be requested from the user.
123
The <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> application callback will then set
126
The <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> application callback will then set
124
127
the members of a pointer to a <link linkend="GnomeVFSModuleCallbackFillAuthenticationOut"><type>GnomeVFSModuleCallbackFillAuthenticationOut</type></link> structure
125
128
according to the stored or cached data.</para>
127
130
</para><variablelist role="struct">
129
<term><link linkend="char">char</link> *<structfield>uri</structfield>;</term>
132
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.uri">uri</structfield>;</term>
130
133
<listitem><simpara> The textual URI of the resource that requires authentication.
131
134
</simpara></listitem>
134
<term><link linkend="char">char</link> *<structfield>protocol</structfield>;</term>
137
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.protocol">protocol</structfield>;</term>
135
138
<listitem><simpara> One of the protocols supported by the invoking module.
136
139
Typically matches <parameter>uri</parameter>'s protocol.
137
140
</simpara></listitem>
140
<term><link linkend="char">char</link> *<structfield>server</structfield>;</term>
143
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.server">server</structfield>;</term>
141
144
<listitem><simpara> The server that contains the resource that requires authentication.
142
145
Typically matches <parameter>uri</parameter>'s hostname.
143
146
</simpara></listitem>
146
<term><link linkend="char">char</link> *<structfield>object</structfield>;</term>
149
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.object">object</structfield>;</term>
147
150
<listitem><simpara> The type of the resource that requires authentication.
148
151
</simpara></listitem>
151
<term><link linkend="int">int</link> <structfield>port</structfield>;</term>
154
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.port">port</structfield>;</term>
152
155
<listitem><simpara> The port that was used to connect to <parameter>server</parameter>. 0 means unset.
153
156
</simpara></listitem>
156
<term><link linkend="char">char</link> *<structfield>authtype</structfield>;</term>
159
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.authtype">authtype</structfield>;</term>
157
160
<listitem><simpara> The type of authentication that was requested. For the
158
161
HTTP method, this may be "basic" or "proxy". For the SFTP method,
159
162
this may be "publickey" or "password".
160
163
</simpara></listitem>
163
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
166
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.username">username</structfield>;</term>
164
167
<listitem><simpara> The username that was used to connect to <parameter>server</parameter>.
165
168
</simpara></listitem>
168
<term><link linkend="char">char</link> *<structfield>domain</structfield>;</term>
171
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationIn.domain">domain</structfield>;</term>
169
172
<listitem><simpara> The domain that <parameter>server</parameter> belongs to (only used by the SMB method).
170
173
</simpara></listitem>
172
175
</variablelist></refsect2>
173
176
<refsect2 id="GnomeVFSModuleCallbackFillAuthenticationOut" role="struct">
174
177
<title>GnomeVFSModuleCallbackFillAuthenticationOut</title>
175
<indexterm zone="GnomeVFSModuleCallbackFillAuthenticationOut"><primary sortas="GnomeVFSModuleCallbackFillAuthenticationOut">GnomeVFSModuleCallbackFillAuthenticationOut</primary></indexterm><programlisting>typedef struct {
178
<indexterm zone="GnomeVFSModuleCallbackFillAuthenticationOut"><primary>GnomeVFSModuleCallbackFillAuthenticationOut</primary></indexterm>
179
<programlisting>typedef struct {
181
185
</programlisting>
183
187
A pointer to a <link linkend="GnomeVFSModuleCallbackFillAuthenticationOut"><type>GnomeVFSModuleCallbackFillAuthenticationOut</type></link> structure is passed to the
184
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> callback, and informs the module
188
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> callback, and informs the module
185
189
about the authentication parameters that were found in the cache or permanently stored.
188
The login data returned by <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> was usually
189
previously stored using #<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link>.</para>
192
The login data returned by <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link> was usually
193
previously stored using #<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION.</type></link></para>
191
195
</para><variablelist role="struct">
193
<term><link linkend="gboolean">gboolean</link> <structfield>valid</structfield>;</term>
197
<term><link linkend="gboolean">gboolean</link> <structfield id="GnomeVFSModuleCallbackFillAuthenticationOut.valid">valid</structfield>;</term>
194
198
<listitem><simpara> Whether stored or cached login data was found for the resource referenced by
195
199
the <link linkend="GnomeVFSModuleCallbackFillAuthenticationIn"><type>GnomeVFSModuleCallbackFillAuthenticationIn</type></link> structure.
196
200
</simpara></listitem>
199
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
203
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationOut.username">username</structfield>;</term>
200
204
<listitem><simpara> The cached username that should be used to access the resource.
201
205
This will be freed by the module when it isn't needed any longer. May only
202
be set if <parameter>valid</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>.
206
be set if <parameter>valid</parameter> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.
203
207
</simpara></listitem>
206
<term><link linkend="char">char</link> *<structfield>domain</structfield>;</term>
210
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationOut.domain">domain</structfield>;</term>
207
211
<listitem><simpara> The cached domain that should be used to access the resource.
208
212
This will be freed by the module when it isn't needed any longer. May only
209
be set if <parameter>valid</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>.
213
be set if <parameter>valid</parameter> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.
210
214
</simpara></listitem>
213
<term><link linkend="char">char</link> *<structfield>password</structfield>;</term>
217
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFillAuthenticationOut.password">password</structfield>;</term>
214
218
<listitem><simpara> The cached password that should be used to access the resource.
215
219
This will be freed by the module when it isn't needed any longer. May only
216
be set if <parameter>valid</parameter> is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>.
220
be set if <parameter>valid</parameter> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.
217
221
</simpara></listitem>
219
223
</variablelist></refsect2>
220
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS" role="macro">
224
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" role="macro">
221
225
<title>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</title>
222
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION "full-authentication"
226
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</primary></indexterm>
227
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION "full-authentication"
223
228
</programlisting>
225
230
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
259
265
} GnomeVFSModuleCallbackFullAuthenticationFlags;
260
266
</programlisting>
262
These flags will be passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback,
268
These flags will be passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback,
263
269
as part of the <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link> structure. The output data
264
270
will be stored in a <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link> structure.</para>
266
272
</para><variablelist role="enum">
267
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-PREVIOUS-ATTEMPT-FAILED--CAPS" role="constant">
273
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-PREVIOUS-ATTEMPT-FAILED:CAPS" role="constant">
268
274
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_PREVIOUS_ATTEMPT_FAILED</literal></term>
269
275
<listitem><simpara> This is not the first login attempt,
270
276
i.e. this callback was already invoked but the provided login data was not suitable for a successful login.
271
277
</simpara></listitem>
273
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-PASSWORD--CAPS" role="constant">
279
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-PASSWORD:CAPS" role="constant">
274
280
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSWORD</literal></term>
275
281
<listitem><simpara> The application should ask the user for
276
a password and set the <parameter>password</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>.
282
a password and set the <parameter>password</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut."><type>GnomeVFSModuleCallbackFullAuthenticationOut.</type></link>
277
283
</simpara></listitem>
279
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-USERNAME--CAPS" role="constant">
285
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-USERNAME:CAPS" role="constant">
280
286
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME</literal></term>
281
287
<listitem><simpara> The application should ask the user for
282
a username and set the <parameter>username</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>.
288
a username and set the <parameter>username</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut."><type>GnomeVFSModuleCallbackFullAuthenticationOut.</type></link>
283
289
</simpara></listitem>
285
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-DOMAIN--CAPS" role="constant">
291
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-DOMAIN:CAPS" role="constant">
286
292
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN</literal></term>
287
293
<listitem><simpara> The application should ask the user for
288
a domain and set the <parameter>domain</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>.
294
a domain and set the <parameter>domain</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut."><type>GnomeVFSModuleCallbackFullAuthenticationOut.</type></link>
289
295
</simpara></listitem>
291
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-SAVING-SUPPORTED--CAPS" role="constant">
297
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-SAVING-SUPPORTED:CAPS" role="constant">
292
298
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED</literal></term>
293
299
<listitem><simpara> The application may ask the user
294
300
whether he wants to save the password. If this flag is not present, or the user does not want to
295
301
save the password, the application must set the <parameter>save_password</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>
296
to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> and its keyring field to <link linkend="NULL--CAPS"><literal>NULL</literal></link>. If the <parameter>save_password</parameter> field is <link linkend="TRUE--CAPS"><literal>TRUE</literal></link>, the module invoking
297
the <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback is expected to invoke the
298
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> callback if the login attempt was successful with
299
the <parameter>username</parameter>, <parameter>password</parameter>, <parameter>domain</parameter> and <parameter>keyring</parameter> fields of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>.
302
to <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> and its keyring field to <link linkend="NULL:CAPS"><literal>NULL</literal></link>. If the <parameter>save_password</parameter> field is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the module invoking
303
the <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback is expected to invoke the
304
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> callback if the login attempt was successful with
305
the <parameter>username</parameter>, <parameter>password</parameter>, <parameter>domain</parameter> and <parameter>keyring</parameter> fields of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut."><type>GnomeVFSModuleCallbackFullAuthenticationOut.</type></link>
300
306
</simpara></listitem>
302
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-ANON-SUPPORTED--CAPS" role="constant">
308
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-ANON-SUPPORTED:CAPS" role="constant">
303
309
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED</literal></term>
304
310
<listitem><simpara> The application
305
311
should offer the user a choice to login anonymously (used for example by the FTP module).
306
If the user requests anonymous login, <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED</type></link>
307
must be set in the <parameter>out_flags</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link>.
312
If the user requests anonymous login, <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED</type></link>
313
must be set in the <parameter>out_flags</parameter> field of <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut."><type>GnomeVFSModuleCallbackFullAuthenticationOut.</type></link>
308
314
</simpara></listitem>
310
316
</variablelist></refsect2>
311
317
<refsect2 id="GnomeVFSModuleCallbackFullAuthenticationIn" role="struct">
312
318
<title>GnomeVFSModuleCallbackFullAuthenticationIn</title>
313
<indexterm zone="GnomeVFSModuleCallbackFullAuthenticationIn"><primary sortas="GnomeVFSModuleCallbackFullAuthenticationIn">GnomeVFSModuleCallbackFullAuthenticationIn</primary></indexterm><programlisting>typedef struct {
319
<indexterm zone="GnomeVFSModuleCallbackFullAuthenticationIn"><primary>GnomeVFSModuleCallbackFullAuthenticationIn</primary></indexterm>
320
<programlisting>typedef struct {
314
321
GnomeVFSModuleCallbackFullAuthenticationFlags flags;
329
336
</programlisting>
331
338
A pointer to a <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link> structure is passed to the
332
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback, and informs the application
339
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback, and informs the application
333
340
about the authentication parameters that should be requested from the user.
336
The <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> application callback will then set
343
The <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> application callback will then set
337
344
the members of a pointer to a <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link> structure
338
345
according to the user input.</para>
340
347
</para><variablelist role="struct">
342
<term><link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags">GnomeVFSModuleCallbackFullAuthenticationFlags</link> <structfield>flags</structfield>;</term>
349
<term><link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags">GnomeVFSModuleCallbackFullAuthenticationFlags</link> <structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.flags">flags</structfield>;</term>
343
350
<listitem><simpara> <link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link> influencing the user query.
344
351
</simpara></listitem>
347
<term><link linkend="char">char</link> *<structfield>uri</structfield>;</term>
354
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.uri">uri</structfield>;</term>
348
355
<listitem><simpara> The textual URI of the resource that requires authentication.
349
356
</simpara></listitem>
352
<term><link linkend="char">char</link> *<structfield>protocol</structfield>;</term>
359
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.protocol">protocol</structfield>;</term>
353
360
<listitem><simpara> One of the protocols supported by the invoking module. Typically matches <parameter>uri</parameter>'s protocol.
354
361
</simpara></listitem>
357
<term><link linkend="char">char</link> *<structfield>server</structfield>;</term>
364
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.server">server</structfield>;</term>
358
365
<listitem><simpara> The server that contains the resource that requires authentication. Typically matches <parameter>uri</parameter>'s hostname.
359
366
</simpara></listitem>
362
<term><link linkend="char">char</link> *<structfield>object</structfield>;</term>
369
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.object">object</structfield>;</term>
363
370
<listitem><simpara> The type of the resource that requires authentication.
364
371
</simpara></listitem>
367
<term><link linkend="int">int</link> <structfield>port</structfield>;</term>
374
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.port">port</structfield>;</term>
368
375
<listitem><simpara> The port that was used to connect to <parameter>server</parameter>. 0 means unset.
369
376
</simpara></listitem>
372
<term><link linkend="char">char</link> *<structfield>authtype</structfield>;</term>
379
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.authtype">authtype</structfield>;</term>
373
380
<listitem><simpara> The type of authentication that was requested. For the
374
381
HTTP method, this may be "basic" or "proxy". For the SFTP method,
375
382
this may be "publickey" or "password".
376
383
</simpara></listitem>
379
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
386
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationIn.username">username</structfield>;</term>
380
387
<listitem><simpara> The username that was used to connect to <parameter>server</parameter>. This variable
381
388
should just be used for display purposes, i.e. like <quote>You were trying
382
389
to access foo<parameter>bar.com</parameter></quote> where foo is the <parameter>username</parameter> and bar.com is the
425
433
</programlisting>
427
435
A pointer to a <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link> structure is passed to the
428
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback, and informs the module
436
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback, and informs the module
429
437
about the authentication parameters that the user provided by setting the respective
430
438
fields according to the user input and the passed-in <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>
433
441
</para><variablelist role="struct">
435
<term><link linkend="gboolean">gboolean</link> <structfield>abort_auth</structfield>;</term>
443
<term><link linkend="gboolean">gboolean</link> <structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.abort_auth">abort_auth</structfield>;</term>
436
444
<listitem><simpara> Whether the user somehow cancelled the login process. The application
437
445
is expected to offer the user a cancellation point during the authentication query.
438
446
In a graphical user interface, this is typically achieved by providing a "Cancel"
440
448
</simpara></listitem>
443
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
451
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.username">username</structfield>;</term>
444
452
<listitem><simpara> The user-provided username that should be used to access the resource
445
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>. This will be freed by
453
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn."><type>GnomeVFSModuleCallbackFullAuthenticationIn.</type></link> This will be freed by
446
454
the module when it isn't needed any longer. Must not be set if the
447
455
<link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link> don't contain
448
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-USERNAME--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME</type></link>.
456
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-USERNAME.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME.</type></link>
449
457
</simpara></listitem>
452
<term><link linkend="char">char</link> *<structfield>domain</structfield>;</term>
460
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.domain">domain</structfield>;</term>
453
461
<listitem><simpara> The user-provided domain that should be used to access the resource
454
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>. This will be freed by
462
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn."><type>GnomeVFSModuleCallbackFullAuthenticationIn.</type></link> This will be freed by
455
463
the module when it isn't needed any longer. Must not be set if the
456
464
<link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link> don't contain
457
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-DOMAIN--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN</type></link>.
465
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-DOMAIN.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN.</type></link>
458
466
</simpara></listitem>
461
<term><link linkend="char">char</link> *<structfield>password</structfield>;</term>
469
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.password">password</structfield>;</term>
462
470
<listitem><simpara> The user-provided password that should be used to access the resource
463
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>. This will be freed by
471
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn."><type>GnomeVFSModuleCallbackFullAuthenticationIn.</type></link> This will be freed by
464
472
the module when it isn't needed any longer. Must not be set if the
465
473
<link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link> don't contain
466
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-PASSOWRD--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSOWRD</type></link>.
474
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-PASSOWRD.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSOWRD.</type></link>
467
475
</simpara></listitem>
470
<term><link linkend="gboolean">gboolean</link> <structfield>save_password</structfield>;</term>
478
<term><link linkend="gboolean">gboolean</link> <structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.save_password">save_password</structfield>;</term>
471
479
<listitem><simpara> Flags whether the user requested to save the provided login
472
data. Must be <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> if the <link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link>
473
don't contain <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-SAVING-SUPPORTED--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED</type></link>.
480
data. Must be <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> if the <link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link>
481
don't contain <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-SAVING-SUPPORTED.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED.</type></link>
474
482
</simpara></listitem>
477
<term><link linkend="char">char</link> *<structfield>keyring</structfield>;</term>
485
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.keyring">keyring</structfield>;</term>
478
486
<listitem><simpara> Flags which keyring should be used to save the password. This will
479
later be passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> callback
487
later be passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> callback
480
488
if the login attempt was successful with the specified <parameter>username</parameter>, <parameter>password</parameter> and
481
489
<parameter>domain</parameter>. This will NOT be freed by the module, so the application typically
482
provides a <link linkend="NULL--CAPS"><literal>NULL</literal></link> pointer or a pointer to a static string.
490
provides a <link linkend="NULL:CAPS"><literal>NULL</literal></link> pointer or a pointer to a static string.
483
491
</simpara></listitem>
486
<term><link linkend="gsize">gsize</link> <structfield>out_flags</structfield>;</term>
494
<term><link linkend="gsize">gsize</link> <structfield id="GnomeVFSModuleCallbackFullAuthenticationOut.out_flags">out_flags</structfield>;</term>
487
495
<listitem><simpara> <link linkend="GnomeVFSModuleCallbackFullAuthenticationOutFlags"><type>GnomeVFSModuleCallbackFullAuthenticationOutFlags</type></link> signalling a special request, for instance
488
496
anonymous access to an FTP server.
489
497
</simpara></listitem>
491
499
</variablelist></refsect2>
492
500
<refsect2 id="GnomeVFSModuleCallbackFullAuthenticationOutFlags" role="enum">
493
501
<title>enum GnomeVFSModuleCallbackFullAuthenticationOutFlags</title>
494
<indexterm zone="GnomeVFSModuleCallbackFullAuthenticationOutFlags"><primary sortas="GnomeVFSModuleCallbackFullAuthenticationOutFlags">GnomeVFSModuleCallbackFullAuthenticationOutFlags</primary></indexterm><programlisting>typedef enum {
502
<indexterm zone="GnomeVFSModuleCallbackFullAuthenticationOutFlags"><primary>GnomeVFSModuleCallbackFullAuthenticationOutFlags</primary></indexterm>
503
<programlisting>typedef enum {
495
504
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED = 1<<0
496
505
} GnomeVFSModuleCallbackFullAuthenticationOutFlags;
497
506
</programlisting>
499
These flags will be passed from a <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback
508
These flags will be passed from a <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback
500
509
back to the module, as part of the <link linkend="GnomeVFSModuleCallbackFullAuthenticationOut"><type>GnomeVFSModuleCallbackFullAuthenticationOut</type></link> structure.</para>
502
511
</para><variablelist role="enum">
503
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED--CAPS" role="constant">
512
<varlistentry id="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED:CAPS" role="constant">
504
513
<term><literal>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED</literal></term>
505
514
<listitem><simpara> Anonymous login requested.
506
515
May only be set if the <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>'s
507
516
<link linkend="GnomeVFSModuleCallbackFullAuthenticationFlags"><type>GnomeVFSModuleCallbackFullAuthenticationFlags</type></link> contain
508
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-ANON-SUPPORTED--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED</type></link>.
517
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-ANON-SUPPORTED.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED.</type></link>
509
518
</simpara></listitem>
511
520
</variablelist></refsect2>
512
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS" role="macro">
521
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" role="macro">
513
522
<title>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</title>
514
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION "save-authentication"
523
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</primary></indexterm>
524
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION "save-authentication"
515
525
</programlisting>
517
527
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
565
576
</programlisting>
567
578
A <link linkend="GnomeVFSModuleCallbackSaveAuthenticatioIn"><type>GnomeVFSModuleCallbackSaveAuthenticatioIn</type></link> pointer is passed to a
568
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> application callback,
579
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> application callback,
569
580
and specifies the login data that should be stored permanently on
570
581
disk or temporarily cached.
573
584
This data may be queried in future sessions (permanent storage) or within
574
585
the current session (temporary storage) using
575
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>.</para>
586
<link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION.</type></link></para>
577
588
</para><variablelist role="struct">
579
<term><link linkend="char">char</link> *<structfield>keyring</structfield>;</term>
580
<listitem><simpara> Keyring provided by <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback.
590
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.keyring">keyring</structfield>;</term>
591
<listitem><simpara> Keyring provided by <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link> callback.
581
592
</simpara></listitem>
584
<term><link linkend="char">char</link> *<structfield>uri</structfield>;</term>
595
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.uri">uri</structfield>;</term>
585
596
<listitem><simpara> The textual URI of the resource that is accessed.
586
597
</simpara></listitem>
589
<term><link linkend="char">char</link> *<structfield>protocol</structfield>;</term>
600
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.protocol">protocol</structfield>;</term>
590
601
<listitem><simpara> One of the protocols supported by the invoking module.
591
602
Typically matches <parameter>uri</parameter>'s protocol.
592
603
</simpara></listitem>
595
<term><link linkend="char">char</link> *<structfield>server</structfield>;</term>
606
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.server">server</structfield>;</term>
596
607
<listitem><simpara> The server that contains the resource that is accessed.
597
608
Typically matches <parameter>uri</parameter>'s hostname.
598
609
</simpara></listitem>
601
<term><link linkend="char">char</link> *<structfield>object</structfield>;</term>
612
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.object">object</structfield>;</term>
602
613
<listitem><simpara> The type of the resource that is accessed.
603
614
</simpara></listitem>
606
<term><link linkend="int">int</link> <structfield>port</structfield>;</term>
617
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.port">port</structfield>;</term>
607
618
<listitem><simpara> The port that was used to connect to <parameter>server</parameter>. 0 means unset.
608
619
</simpara></listitem>
611
<term><link linkend="char">char</link> *<structfield>authtype</structfield>;</term>
622
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.authtype">authtype</structfield>;</term>
612
623
<listitem><simpara> The type of authentication that was requested. For the
613
624
HTTP method, this may be "basic" or "proxy". For the SFTP method,
614
625
this may be "publickey" or "password".
615
626
</simpara></listitem>
618
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
629
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.username">username</structfield>;</term>
619
630
<listitem><simpara> The username that was used to connect to <parameter>server</parameter>.
620
631
</simpara></listitem>
623
<term><link linkend="char">char</link> *<structfield>domain</structfield>;</term>
634
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.domain">domain</structfield>;</term>
624
635
<listitem><simpara> The domain that <parameter>server</parameter> belongs to (only used by the SMB method).
625
636
</simpara></listitem>
628
<term><link linkend="char">char</link> *<structfield>password</structfield>;</term>
639
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackSaveAuthenticationIn.password">password</structfield>;</term>
629
640
<listitem><simpara> The password that was used to connect to <parameter>server</parameter>.
630
641
</simpara></listitem>
632
643
</variablelist></refsect2>
633
644
<refsect2 id="GnomeVFSModuleCallbackSaveAuthenticationOut" role="struct">
634
645
<title>GnomeVFSModuleCallbackSaveAuthenticationOut</title>
635
<indexterm zone="GnomeVFSModuleCallbackSaveAuthenticationOut"><primary sortas="GnomeVFSModuleCallbackSaveAuthenticationOut">GnomeVFSModuleCallbackSaveAuthenticationOut</primary></indexterm><programlisting>typedef struct {
646
<indexterm zone="GnomeVFSModuleCallbackSaveAuthenticationOut"><primary>GnomeVFSModuleCallbackSaveAuthenticationOut</primary></indexterm>
647
<programlisting>typedef struct {
636
648
} GnomeVFSModuleCallbackSaveAuthenticationOut;
637
649
</programlisting>
639
651
A <link linkend="GnomeVFSModuleCallbackSaveAuthenticationOut"><type>GnomeVFSModuleCallbackSaveAuthenticationOut</type></link> pointer is passed to a
640
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> application callback,
652
<link linkend="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</type></link> application callback,
641
653
and is reserved for future use. Applications are not expected
642
654
to modify this data, because its interpretation might change
643
655
in the future.</para>
645
657
</para></refsect2>
646
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-QUESTION--CAPS" role="macro">
658
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS" role="macro">
647
659
<title>GNOME_VFS_MODULE_CALLBACK_QUESTION</title>
648
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-QUESTION--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_QUESTION">GNOME_VFS_MODULE_CALLBACK_QUESTION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_QUESTION "ask-question"
660
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_QUESTION</primary></indexterm>
661
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_QUESTION "ask-question"
649
662
</programlisting>
651
664
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
685
699
</programlisting>
687
701
A <link linkend="GnomeVFSModuleCallbackQuestionIn"><type>GnomeVFSModuleCallbackQuestionIn</type></link> pointer is passed to a
688
<link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_QUESTION</type></link> application callback.
702
<link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_QUESTION</type></link> application callback.
689
703
Applications are expected to request a decision from the
690
704
user, and store the answer in a <link linkend="GnomeVFSModuleCallbackQuestionOut"><type>GnomeVFSModuleCallbackQuestionOut</type></link>
691
705
structure.</para>
693
707
</para><variablelist role="struct">
695
<term><link linkend="char">char</link> *<structfield>primary_message</structfield>;</term>
709
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackQuestionIn.primary_message">primary_message</structfield>;</term>
696
710
<listitem><simpara> A short message explaining the question to the user,
697
or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if there is no message.
711
or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if there is no message.
698
712
</simpara></listitem>
701
<term><link linkend="char">char</link> *<structfield>secondary_message</structfield>;</term>
715
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackQuestionIn.secondary_message">secondary_message</structfield>;</term>
702
716
<listitem><simpara> The long version of the message, containing more
703
details, or <link linkend="NULL--CAPS"><literal>NULL</literal></link> if there is no message.
717
details, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if there is no message.
704
718
</simpara></listitem>
707
<term><link linkend="char">char</link> **<structfield>choices</structfield>;</term>
708
<listitem><simpara> <link linkend="NULL--CAPS"><literal>NULL</literal></link>-terminated string list of choices the user has to choose from.
721
<term><link linkend="char">char</link> **<structfield id="GnomeVFSModuleCallbackQuestionIn.choices">choices</structfield>;</term>
722
<listitem><simpara> <link linkend="NULL:CAPS"><literal>NULL</literal></link>-terminated string list of choices the user has to choose from.
709
723
The first item in the list should be affermative, and will be put on the right
711
725
</simpara></listitem>
713
727
</variablelist></refsect2>
714
728
<refsect2 id="GnomeVFSModuleCallbackQuestionOut" role="struct">
715
729
<title>GnomeVFSModuleCallbackQuestionOut</title>
716
<indexterm zone="GnomeVFSModuleCallbackQuestionOut"><primary sortas="GnomeVFSModuleCallbackQuestionOut">GnomeVFSModuleCallbackQuestionOut</primary></indexterm><programlisting>typedef struct {
730
<indexterm zone="GnomeVFSModuleCallbackQuestionOut"><primary>GnomeVFSModuleCallbackQuestionOut</primary></indexterm>
731
<programlisting>typedef struct {
718
733
} GnomeVFSModuleCallbackQuestionOut;
719
734
</programlisting>
721
736
A <link linkend="GnomeVFSModuleCallbackQuestionOut"><type>GnomeVFSModuleCallbackQuestionOut</type></link> pointer is passed to a
722
<link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_QUESTION</type></link> application callback, and
737
<link linkend="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_QUESTION</type></link> application callback, and
723
738
is used by applications to store the user's decision.</para>
725
740
</para><variablelist role="struct">
727
<term><link linkend="int">int</link> <structfield>answer</structfield>;</term>
742
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackQuestionOut.answer">answer</structfield>;</term>
728
743
<listitem><simpara> The index of the answer the user picked. Matches the base
729
744
pointer address of the user's choice in <link linkend="GnomeVFSModuleCallbackQuestionIn"><type>GnomeVFSModuleCallbackQuestionIn</type></link>,
730
i.e. its index in choices, where the first choice has index <link linkend="0--CAPS"><literal>0</literal></link>.
745
i.e. its index in choices, where the first choice has index <link linkend="0:CAPS"><literal>0</literal></link>.
731
746
</simpara></listitem>
733
748
</variablelist></refsect2>
734
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE--CAPS" role="macro">
749
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS" role="macro">
735
750
<title>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</title>
736
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE "status-message"
751
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</primary></indexterm>
752
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE "status-message"
737
753
</programlisting>
739
755
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
771
788
</programlisting>
773
790
A <link linkend="GnomeVFSModuleCallbackStatusMessageIn"><type>GnomeVFSModuleCallbackStatusMessageIn</type></link> pointer is passed to a
774
<link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</type></link> application callback,
791
<link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</type></link> application callback,
775
792
to inform it about the progress and/or status of an ongoing operation.</para>
777
794
</para><variablelist role="struct">
779
<term><link linkend="char">char</link> *<structfield>uri</structfield>;</term>
796
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackStatusMessageIn.uri">uri</structfield>;</term>
780
797
<listitem><simpara> The textual URI the status message refers to.
781
798
</simpara></listitem>
784
<term><link linkend="char">char</link> *<structfield>message</structfield>;</term>
801
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackStatusMessageIn.message">message</structfield>;</term>
785
802
<listitem><simpara> The message the application should display to the user,
786
indicating the current state, or it is <link linkend="NULL--CAPS"><literal>NULL</literal></link>.
803
indicating the current state, or it is <link linkend="NULL:CAPS"><literal>NULL</literal></link>.
787
804
</simpara></listitem>
790
<term><link linkend="int">int</link> <structfield>percentage</structfield>;</term>
807
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackStatusMessageIn.percentage">percentage</structfield>;</term>
791
808
<listitem><simpara> The percentage indicating the completeness of
792
809
a currently pending operation on <parameter>uri</parameter> (1-100), or -1 if there
793
810
is no progress percentage to report.
796
813
</variablelist></refsect2>
797
814
<refsect2 id="GnomeVFSModuleCallbackStatusMessageOut" role="struct">
798
815
<title>GnomeVFSModuleCallbackStatusMessageOut</title>
799
<indexterm zone="GnomeVFSModuleCallbackStatusMessageOut"><primary sortas="GnomeVFSModuleCallbackStatusMessageOut">GnomeVFSModuleCallbackStatusMessageOut</primary></indexterm><programlisting>typedef struct {
816
<indexterm zone="GnomeVFSModuleCallbackStatusMessageOut"><primary>GnomeVFSModuleCallbackStatusMessageOut</primary></indexterm>
817
<programlisting>typedef struct {
800
818
/* empty structs not allowed */
802
820
} GnomeVFSModuleCallbackStatusMessageOut;
803
821
</programlisting>
805
823
A <link linkend="GnomeVFSModuleCallbackStatusMessageOut"><type>GnomeVFSModuleCallbackStatusMessageOut</type></link> pointer is passed to a
806
<link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</type></link> application callback,
824
<link linkend="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</type></link> application callback,
807
825
and is reserved for future use. Applications are not expected
808
826
to modify this data, because its interpretation might change
809
827
in the future.</para>
811
829
</para><variablelist role="struct">
813
<term><link linkend="int">int</link> <structfield>dummy</structfield>;</term>
831
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackStatusMessageOut.dummy">dummy</structfield>;</term>
814
832
<listitem><simpara> unused.
815
833
</simpara></listitem>
817
835
</variablelist></refsect2>
818
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS--CAPS" role="macro">
836
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS" role="macro">
819
837
<title>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</title>
820
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS "http:send-additional-headers"
838
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</primary></indexterm>
839
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS "http:send-additional-headers"
821
840
</programlisting>
823
842
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
849
868
</para></refsect2>
850
869
<refsect2 id="GnomeVFSModuleCallbackAdditionalHeadersIn" role="struct">
851
870
<title>GnomeVFSModuleCallbackAdditionalHeadersIn</title>
852
<indexterm zone="GnomeVFSModuleCallbackAdditionalHeadersIn"><primary sortas="GnomeVFSModuleCallbackAdditionalHeadersIn">GnomeVFSModuleCallbackAdditionalHeadersIn</primary></indexterm><programlisting>typedef struct {
871
<indexterm zone="GnomeVFSModuleCallbackAdditionalHeadersIn"><primary>GnomeVFSModuleCallbackAdditionalHeadersIn</primary></indexterm>
872
<programlisting>typedef struct {
853
873
GnomeVFSURI *uri;
854
874
} GnomeVFSModuleCallbackAdditionalHeadersIn;
855
875
</programlisting>
857
877
A <link linkend="GnomeVFSModuleCallbackAdditionalHeadersIn"><type>GnomeVFSModuleCallbackAdditionalHeadersIn</type></link> pointer is passed to a
858
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</type></link> application
878
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</type></link> application
859
879
callback, to inform it about a pending HTTP request and allow it to
860
880
add additional headers.</para>
862
882
</para><variablelist role="struct">
864
<term><link linkend="GnomeVFSURI">GnomeVFSURI</link> *<structfield>uri</structfield>;</term>
884
<term><link linkend="GnomeVFSURI">GnomeVFSURI</link> *<structfield id="GnomeVFSModuleCallbackAdditionalHeadersIn.uri">uri</structfield>;</term>
865
885
<listitem><simpara> A <link linkend="GnomeVFSURI"><type>GnomeVFSURI</type></link> identifying the resource of the currently pending request.
866
886
</simpara></listitem>
868
888
</variablelist></refsect2>
869
889
<refsect2 id="GnomeVFSModuleCallbackAdditionalHeadersOut" role="struct">
870
890
<title>GnomeVFSModuleCallbackAdditionalHeadersOut</title>
871
<indexterm zone="GnomeVFSModuleCallbackAdditionalHeadersOut"><primary sortas="GnomeVFSModuleCallbackAdditionalHeadersOut">GnomeVFSModuleCallbackAdditionalHeadersOut</primary></indexterm><programlisting>typedef struct {
891
<indexterm zone="GnomeVFSModuleCallbackAdditionalHeadersOut"><primary>GnomeVFSModuleCallbackAdditionalHeadersOut</primary></indexterm>
892
<programlisting>typedef struct {
873
894
} GnomeVFSModuleCallbackAdditionalHeadersOut;
874
895
</programlisting>
876
897
A <link linkend="GnomeVFSModuleCallbackAdditionalHeadersOut"><type>GnomeVFSModuleCallbackAdditionalHeadersOut</type></link> pointer is passed to a
877
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</type></link> application
898
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</type></link> application
878
899
callback, to store the headers the application wants to add to
879
900
a pending HTTP request.</para>
881
902
</para><variablelist role="struct">
883
<term><link linkend="GList">GList</link> *<structfield>headers</structfield>;</term>
904
<term><link linkend="GList">GList</link> *<structfield id="GnomeVFSModuleCallbackAdditionalHeadersOut.headers">headers</structfield>;</term>
884
905
<listitem><simpara> A <link linkend="GList"><type>GList</type></link> of strings, each of them is an additional header that
885
906
is added to the HTTP request. <parameter>headers</parameter> and all its strings will be freed
886
907
by the module when they aren't needed any longer.
887
908
</simpara></listitem>
889
910
</variablelist></refsect2>
890
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS" role="macro">
911
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS" role="macro">
891
912
<title>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</title>
892
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS"><primary sortas="GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS "http:received-headers"
913
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS"><primary>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</primary></indexterm>
914
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS "http:received-headers"
893
915
</programlisting>
895
917
A module callback name used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link> to
896
918
inform an application about the delivery of a HTTP request.
899
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> is called after
921
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> is called after
900
922
receiving HTTP headers from a server that belonged to a HTTP
901
923
request that was issued by the application and allows the
902
924
application to analyze the returned headers.
922
944
</para></refsect2>
923
945
<refsect2 id="GnomeVFSModuleCallbackReceivedHeadersIn" role="struct">
924
946
<title>GnomeVFSModuleCallbackReceivedHeadersIn</title>
925
<indexterm zone="GnomeVFSModuleCallbackReceivedHeadersIn"><primary sortas="GnomeVFSModuleCallbackReceivedHeadersIn">GnomeVFSModuleCallbackReceivedHeadersIn</primary></indexterm><programlisting>typedef struct {
947
<indexterm zone="GnomeVFSModuleCallbackReceivedHeadersIn"><primary>GnomeVFSModuleCallbackReceivedHeadersIn</primary></indexterm>
948
<programlisting>typedef struct {
926
949
GnomeVFSURI *uri;
928
951
} GnomeVFSModuleCallbackReceivedHeadersIn;
929
952
</programlisting>
931
954
A <link linkend="GnomeVFSModuleCallbackReceivedHeadersIn"><type>GnomeVFSModuleCallbackReceivedHeadersIn</type></link> pointer is passed to a
932
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> application
955
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> application
933
956
callback, to inform it about a delivered HTTP request and allow
934
957
it to analyze the returned headers.</para>
936
959
</para><variablelist role="struct">
938
<term><link linkend="GnomeVFSURI">GnomeVFSURI</link> *<structfield>uri</structfield>;</term>
961
<term><link linkend="GnomeVFSURI">GnomeVFSURI</link> *<structfield id="GnomeVFSModuleCallbackReceivedHeadersIn.uri">uri</structfield>;</term>
939
962
<listitem><simpara> A <link linkend="GnomeVFSURI"><type>GnomeVFSURI</type></link> identifying the resource of the currently delivered request.
940
963
</simpara></listitem>
943
<term><link linkend="GList">GList</link> *<structfield>headers</structfield>;</term>
966
<term><link linkend="GList">GList</link> *<structfield id="GnomeVFSModuleCallbackReceivedHeadersIn.headers">headers</structfield>;</term>
944
967
<listitem><simpara> A <link linkend="GList"><type>GList</type></link> of strings, each of them is a header that was received when
945
968
delivering the HTTP request. <parameter>headers</parameter> and all its strings will be freed
946
969
by the module when they aren't needed any longer.
949
972
</variablelist></refsect2>
950
973
<refsect2 id="GnomeVFSModuleCallbackReceivedHeadersOut" role="struct">
951
974
<title>GnomeVFSModuleCallbackReceivedHeadersOut</title>
952
<indexterm zone="GnomeVFSModuleCallbackReceivedHeadersOut"><primary sortas="GnomeVFSModuleCallbackReceivedHeadersOut">GnomeVFSModuleCallbackReceivedHeadersOut</primary></indexterm><programlisting>typedef struct {
975
<indexterm zone="GnomeVFSModuleCallbackReceivedHeadersOut"><primary>GnomeVFSModuleCallbackReceivedHeadersOut</primary></indexterm>
976
<programlisting>typedef struct {
954
978
} GnomeVFSModuleCallbackReceivedHeadersOut;
955
979
</programlisting>
957
981
A <link linkend="GnomeVFSModuleCallbackReceivedHeadersOut"><type>GnomeVFSModuleCallbackReceivedHeadersOut</type></link> pointer is passed to a
958
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> application
982
<link linkend="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</type></link> application
959
983
callback, and is reserved for future use. Applications are not
960
984
expected to modify this data, because its interpretation might
961
985
change in the future.</para>
963
987
</para><variablelist role="struct">
965
<term><link linkend="int">int</link> <structfield>dummy</structfield>;</term>
989
<term><link linkend="int">int</link> <structfield id="GnomeVFSModuleCallbackReceivedHeadersOut.dummy">dummy</structfield>;</term>
966
990
<listitem><simpara> unused.
967
991
</simpara></listitem>
969
993
</variablelist></refsect2>
970
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION--CAPS" role="macro" condition="deprecated">
994
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS" role="macro" condition="deprecated">
971
995
<title>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</title>
972
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION--CAPS" role="deprecated"><primary sortas="GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION "simple-authentication"
996
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS" role="deprecated"><primary>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</primary></indexterm>
997
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION "simple-authentication"
973
998
</programlisting>
974
<warning><para><literal>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
975
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>.</para></warning>
999
<warning><para><literal>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1000
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</type></link></para></warning>
977
1002
A module callback name formerly used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link>.
998
1023
</variablelist></para>
1000
1025
</para></refsect2>
1001
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION--CAPS" role="macro" condition="deprecated:Proxy authentication now works desktop-wide through GConf.">
1026
<refsect2 id="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION:CAPS" role="macro" condition="deprecated:Proxy authentication now works desktop-wide through GConf.">
1002
1027
<title>GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</title>
1003
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION--CAPS" role="deprecated"><primary sortas="GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</primary></indexterm><programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION "http:proxy-authentication"
1028
<indexterm zone="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION:CAPS" role="deprecated"><primary>GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</primary></indexterm>
1029
<programlisting>#define GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION "http:proxy-authentication"
1004
1030
</programlisting>
1005
1031
<warning><para><literal>GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</literal> is deprecated and should not be used in newly-written code. Proxy authentication now works desktop-wide through GConf.</para></warning>
1007
1033
A module callback name formerly used together with <link linkend="gnome-vfs-module-callback-invoke"><function>gnome_vfs_module_callback_invoke()</function></link>
1008
1034
to ask the user for HTTP proxy login data. It works exactly like
1009
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>, and used to be kept separate to
1035
<link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>, and used to be kept separate to
1010
1036
allow applications to distinguish proxy authentication from actual server
1011
1037
authentication, so that the wording of the interface could be adapted.
1034
1060
</para></refsect2>
1035
1061
<refsect2 id="GnomeVFSModuleCallbackAuthenticationAuthType" role="enum" condition="deprecated">
1036
1062
<title>enum GnomeVFSModuleCallbackAuthenticationAuthType</title>
1037
<indexterm zone="GnomeVFSModuleCallbackAuthenticationAuthType" role="deprecated"><primary sortas="GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</primary></indexterm><programlisting>typedef enum {
1063
<indexterm zone="GnomeVFSModuleCallbackAuthenticationAuthType" role="deprecated"><primary>GnomeVFSModuleCallbackAuthenticationAuthType</primary></indexterm>
1064
<programlisting>typedef enum {
1040
1067
} GnomeVFSModuleCallbackAuthenticationAuthType;
1041
1068
</programlisting>
1042
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationAuthType</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1043
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>.</para></warning>
1069
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationAuthType</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1070
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</type></link></para></warning>
1045
1072
This defines the possible values of the <link linkend="GnomeVFSModuleCallbackAuthenticationIn"><type>GnomeVFSModuleCallbackAuthenticationIn</type></link>'s
1046
1073
<link linkend="auth-type"><literal>auth_type</literal></link> field.</para>
1059
1086
</variablelist></refsect2>
1060
1087
<refsect2 id="GnomeVFSModuleCallbackAuthenticationIn" role="struct" condition="deprecated">
1061
1088
<title>GnomeVFSModuleCallbackAuthenticationIn</title>
1062
<indexterm zone="GnomeVFSModuleCallbackAuthenticationIn" role="deprecated"><primary sortas="GnomeVFSModuleCallbackAuthenticationIn">GnomeVFSModuleCallbackAuthenticationIn</primary></indexterm><programlisting>typedef struct {
1089
<indexterm zone="GnomeVFSModuleCallbackAuthenticationIn" role="deprecated"><primary>GnomeVFSModuleCallbackAuthenticationIn</primary></indexterm>
1090
<programlisting>typedef struct {
1065
1093
gboolean previous_attempt_failed;
1066
1094
GnomeVFSModuleCallbackAuthenticationAuthType auth_type;
1067
1095
} GnomeVFSModuleCallbackAuthenticationIn;
1068
1096
</programlisting>
1069
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationIn</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1070
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>.</para></warning>
1097
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationIn</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1098
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</type></link></para></warning>
1072
1100
A pointer to a <link linkend="GnomeVFSModuleCallbackAuthenticationIn"><type>GnomeVFSModuleCallbackAuthenticationIn</type></link> structure that used to be
1073
passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</type></link> callback, and informed
1101
passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</type></link> callback, and informed
1074
1102
the application about the authentication parameters that should be requested.</para>
1076
1104
</para><variablelist role="struct">
1078
<term><link linkend="char">char</link> *<structfield>uri</structfield>;</term>
1106
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackAuthenticationIn.uri">uri</structfield>;</term>
1079
1107
<listitem><simpara> The textual URI of the resource that requires authentication.
1080
1108
</simpara></listitem>
1081
1109
</varlistentry>
1083
<term><link linkend="char">char</link> *<structfield>realm</structfield>;</term>
1084
<listitem><simpara> "auth" for HTTP, <link linkend="NULL--CAPS"><literal>NULL</literal></link> for others.
1111
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackAuthenticationIn.realm">realm</structfield>;</term>
1112
<listitem><simpara> "auth" for HTTP, <link linkend="NULL:CAPS"><literal>NULL</literal></link> for others.
1085
1113
</simpara></listitem>
1086
1114
</varlistentry>
1088
<term><link linkend="gboolean">gboolean</link> <structfield>previous_attempt_failed</structfield>;</term>
1089
<listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if there already was login data
1090
specified for this request, but the login failed. <link linkend="FALSE--CAPS"><literal>FALSE</literal></link> if no
1116
<term><link linkend="gboolean">gboolean</link> <structfield id="GnomeVFSModuleCallbackAuthenticationIn.previous_attempt_failed">previous_attempt_failed</structfield>;</term>
1117
<listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if there already was login data
1118
specified for this request, but the login failed. <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> if no
1091
1119
previous login attempt has been made right before this one.
1092
1120
</simpara></listitem>
1093
1121
</varlistentry>
1095
<term><link linkend="GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</link> <structfield>auth_type</structfield>;</term>
1123
<term><link linkend="GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</link> <structfield id="GnomeVFSModuleCallbackAuthenticationIn.auth_type">auth_type</structfield>;</term>
1096
1124
<listitem><simpara> Whether the login data will be transmitted in plaintext or encrypted.
1097
1125
</simpara></listitem>
1098
1126
</varlistentry>
1099
1127
</variablelist></refsect2>
1100
1128
<refsect2 id="GnomeVFSModuleCallbackAuthenticationOut" role="struct" condition="deprecated">
1101
1129
<title>GnomeVFSModuleCallbackAuthenticationOut</title>
1102
<indexterm zone="GnomeVFSModuleCallbackAuthenticationOut" role="deprecated"><primary sortas="GnomeVFSModuleCallbackAuthenticationOut">GnomeVFSModuleCallbackAuthenticationOut</primary></indexterm><programlisting>typedef struct {
1130
<indexterm zone="GnomeVFSModuleCallbackAuthenticationOut" role="deprecated"><primary>GnomeVFSModuleCallbackAuthenticationOut</primary></indexterm>
1131
<programlisting>typedef struct {
1103
1132
char *username;
1104
1133
char *password;
1105
1134
} GnomeVFSModuleCallbackAuthenticationOut;
1106
1135
</programlisting>
1107
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationOut</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1108
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</type></link>.</para></warning>
1136
<warning><para><literal>GnomeVFSModuleCallbackAuthenticationOut</literal> is deprecated and should not be used in newly-written code. Modules should use <link linkend="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</type></link>
1137
and <link linkend="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION.:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</type></link></para></warning>
1110
1139
A pointer to a <link linkend="GnomeVFSModuleCallbackAuthenticationOut"><type>GnomeVFSModuleCallbackAuthenticationOut</type></link> structure that used to be
1111
passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION--CAPS"><type>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</type></link> callback, and was
1140
passed to the <link linkend="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS"><type>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</type></link> callback, and was
1112
1141
used to pass the login data back to the module.</para>
1114
1143
</para><variablelist role="struct">
1116
<term><link linkend="char">char</link> *<structfield>username</structfield>;</term>
1145
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackAuthenticationOut.username">username</structfield>;</term>
1117
1146
<listitem><simpara> The username that should be used to access the resource
1118
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>, or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
1147
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
1119
1148
if no data was provided. This will be freed by the module when it
1120
1149
isn't needed any longer.
1121
1150
</simpara></listitem>
1122
1151
</varlistentry>
1124
<term><link linkend="char">char</link> *<structfield>password</structfield>;</term>
1153
<term><link linkend="char">char</link> *<structfield id="GnomeVFSModuleCallbackAuthenticationOut.password">password</structfield>;</term>
1125
1154
<listitem><simpara> The password that should be used to access the resource
1126
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn"><type>GnomeVFSModuleCallbackFullAuthenticationIn</type></link>. This will
1155
referenced by <link linkend="GnomeVFSModuleCallbackFullAuthenticationIn."><type>GnomeVFSModuleCallbackFullAuthenticationIn.</type></link> This will
1127
1156
be freed by the module when it isn't needed any longer.
1128
1157
</simpara></listitem>
1129
1158
</varlistentry>