1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>gnome-vfs-standard-callbacks</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
7
<link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library">
8
<link rel="up" href="modules.html" title="Filesystem Modules">
9
<link rel="prev" href="gnome-vfs-2.0-gnome-vfs-parse-ls.html" title="gnome-vfs-parse-ls">
10
<link rel="next" href="gnome-vfs-2.0-gnome-vfs-module-callback.html" title="gnome-vfs-module-callback">
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="about.html" title="Introduction to GnomeVFS">
14
<link rel="chapter" href="data-types.html" title="Basic Data Types">
15
<link rel="chapter" href="gnome-vfs-basic-file-ops.html" title="File Operations">
16
<link rel="chapter" href="gnome-vfs-directory-ops.html" title="Directory-Specific Operations">
17
<link rel="chapter" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
18
<link rel="chapter" href="gnome-vfs-file-async-ops.html" title="Asynchronous Operations">
19
<link rel="chapter" href="volumes.html" title="Volumes and Drives Handling">
20
<link rel="chapter" href="networking.html" title="Networking">
21
<link rel="chapter" href="mime-registry.html" title="MIME Registry">
22
<link rel="chapter" href="modules.html" title="Filesystem Modules">
24
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
27
<td><a accesskey="p" href="gnome-vfs-2.0-gnome-vfs-parse-ls.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
<td><a accesskey="u" href="modules.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
31
<td><a accesskey="n" href="gnome-vfs-2.0-gnome-vfs-module-callback.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts">
34
<a href="#gnome-vfs-2.0-gnome-vfs-standard-callbacks.synopsis" class="shortcut">Top</a>
36
<a href="#gnome-vfs-2.0-gnome-vfs-standard-callbacks.description" class="shortcut">Description</a>
39
<div class="refentry" lang="en">
40
<a name="gnome-vfs-2.0-gnome-vfs-standard-callbacks"></a><div class="titlepage"></div>
41
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="gnome-vfs-2.0-gnome-vfs-standard-callbacks.top_of_page"></a>gnome-vfs-standard-callbacks</span></h2>
44
<p>gnome-vfs-standard-callbacks — standard callbacks for use by gnome-vfs module writers</p>
46
<td valign="top" align="right"></td>
48
<div class="refsynopsisdiv">
49
<a name="gnome-vfs-2.0-gnome-vfs-standard-callbacks.synopsis"></a><h2>Synopsis</h2>
50
<pre class="synopsis">
51
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</a>
52
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationIn" title="GnomeVFSModuleCallbackFillAuthenticationIn">GnomeVFSModuleCallbackFillAuthenticationIn</a>;
53
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationOut" title="GnomeVFSModuleCallbackFillAuthenticationOut">GnomeVFSModuleCallbackFillAuthenticationOut</a>;
54
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</a>
55
enum <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags">GnomeVFSModuleCallbackFullAuthenticationFlags</a>;
56
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn">GnomeVFSModuleCallbackFullAuthenticationIn</a>;
57
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut">GnomeVFSModuleCallbackFullAuthenticationOut</a>;
58
enum <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOutFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationOutFlags">GnomeVFSModuleCallbackFullAuthenticationOutFlags</a>;
59
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</a>
60
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackSaveAuthenticationIn" title="GnomeVFSModuleCallbackSaveAuthenticationIn">GnomeVFSModuleCallbackSaveAuthenticationIn</a>;
61
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackSaveAuthenticationOut" title="GnomeVFSModuleCallbackSaveAuthenticationOut">GnomeVFSModuleCallbackSaveAuthenticationOut</a>;
62
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_QUESTION">GNOME_VFS_MODULE_CALLBACK_QUESTION</a>
63
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionIn" title="GnomeVFSModuleCallbackQuestionIn">GnomeVFSModuleCallbackQuestionIn</a>;
64
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionOut" title="GnomeVFSModuleCallbackQuestionOut">GnomeVFSModuleCallbackQuestionOut</a>;
65
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS" title="GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</a>
66
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageIn" title="GnomeVFSModuleCallbackStatusMessageIn">GnomeVFSModuleCallbackStatusMessageIn</a>;
67
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageOut" title="GnomeVFSModuleCallbackStatusMessageOut">GnomeVFSModuleCallbackStatusMessageOut</a>;
68
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</a>
69
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersIn" title="GnomeVFSModuleCallbackAdditionalHeadersIn">GnomeVFSModuleCallbackAdditionalHeadersIn</a>;
70
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersOut" title="GnomeVFSModuleCallbackAdditionalHeadersOut">GnomeVFSModuleCallbackAdditionalHeadersOut</a>;
71
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</a>
72
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersIn" title="GnomeVFSModuleCallbackReceivedHeadersIn">GnomeVFSModuleCallbackReceivedHeadersIn</a>;
73
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersOut" title="GnomeVFSModuleCallbackReceivedHeadersOut">GnomeVFSModuleCallbackReceivedHeadersOut</a>;
74
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</a>
75
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION">GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</a>
76
enum <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationAuthType" title="enum GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</a>;
77
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationIn" title="GnomeVFSModuleCallbackAuthenticationIn">GnomeVFSModuleCallbackAuthenticationIn</a>;
78
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationOut" title="GnomeVFSModuleCallbackAuthenticationOut">GnomeVFSModuleCallbackAuthenticationOut</a>;
81
<div class="refsect1" lang="en">
82
<a name="gnome-vfs-2.0-gnome-vfs-standard-callbacks.description"></a><h2>Description</h2>
86
<div class="refsect1" lang="en">
87
<a name="gnome-vfs-2.0-gnome-vfs-standard-callbacks.details"></a><h2>Details</h2>
88
<div class="refsect2" lang="en">
89
<a name="GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</h3>
90
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION "fill-authentication"
93
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
94
ask the keyring manager for login data. It is expected to return stored or cached
95
login data, but may not query the user.
98
The login data consists of a username, a password and a domain, and is used to
99
access a resource. If the data is not suitable for accessing the resource, the
100
<span class="type">GnomeVFSModule</span> typically issues a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a>
101
module callback to query the user right after the authentication failed.
105
<div class="variablelist"><table border="0">
106
<col align="left" valign="top">
109
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
111
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationIn" title="GnomeVFSModuleCallbackFillAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFillAuthenticationIn</span></a> * passed to the application,
112
specifying the authentication request. The application will usually proxy this
113
request to the keyring manager of the desktop environment, but it can also handle
118
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
120
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationOut" title="GnomeVFSModuleCallbackFillAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFillAuthenticationOut</span></a> * passing the cached
121
keyring data (i.e. username/password etc.) back to the module. Usually,
122
this is data that was stored using <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</span></a>,
123
and is either stored permanently on disk or cached.
132
<div class="refsect2" lang="en">
133
<a name="GnomeVFSModuleCallbackFillAuthenticationIn"></a><h3>GnomeVFSModuleCallbackFillAuthenticationIn</h3>
134
<pre class="programlisting">typedef struct {
143
} GnomeVFSModuleCallbackFillAuthenticationIn;
146
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationIn" title="GnomeVFSModuleCallbackFillAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFillAuthenticationIn</span></a> structure is passed to the
147
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a> callback, and informs the application
148
about the authentication parameters that should be requested from the user.
151
The <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a> application callback will then set
152
the members of a pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationOut" title="GnomeVFSModuleCallbackFillAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFillAuthenticationOut</span></a> structure
153
according to the stored or cached data.</p>
156
<div class="variablelist"><table border="0">
157
<col align="left" valign="top">
160
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.uri"></a>uri</code></em>;</span></p></td>
161
<td> The textual URI of the resource that requires authentication.
165
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.protocol"></a>protocol</code></em>;</span></p></td>
166
<td> One of the protocols supported by the invoking module.
167
Typically matches <em class="parameter"><code>uri</code></em>'s protocol.
171
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.server"></a>server</code></em>;</span></p></td>
172
<td> The server that contains the resource that requires authentication.
173
Typically matches <em class="parameter"><code>uri</code></em>'s hostname.
177
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.object"></a>object</code></em>;</span></p></td>
178
<td> The type of the resource that requires authentication.
182
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.port"></a>port</code></em>;</span></p></td>
183
<td> The port that was used to connect to <em class="parameter"><code>server</code></em>. 0 means unset.
187
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.authtype"></a>authtype</code></em>;</span></p></td>
188
<td> The type of authentication that was requested. For the
189
HTTP method, this may be "basic" or "proxy". For the SFTP method,
190
this may be "publickey" or "password".
194
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.username"></a>username</code></em>;</span></p></td>
195
<td> The username that was used to connect to <em class="parameter"><code>server</code></em>.
199
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationIn.domain"></a>domain</code></em>;</span></p></td>
200
<td> The domain that <em class="parameter"><code>server</code></em> belongs to (only used by the SMB method).
207
<div class="refsect2" lang="en">
208
<a name="GnomeVFSModuleCallbackFillAuthenticationOut"></a><h3>GnomeVFSModuleCallbackFillAuthenticationOut</h3>
209
<pre class="programlisting">typedef struct {
214
} GnomeVFSModuleCallbackFillAuthenticationOut;
217
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationOut" title="GnomeVFSModuleCallbackFillAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFillAuthenticationOut</span></a> structure is passed to the
218
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a> callback, and informs the module
219
about the authentication parameters that were found in the cache or permanently stored.
222
The login data returned by <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a> was usually
223
previously stored using #<span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION.</span></p>
226
<div class="variablelist"><table border="0">
227
<col align="left" valign="top">
230
<td><p><span class="term">gboolean <em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationOut.valid"></a>valid</code></em>;</span></p></td>
231
<td> Whether stored or cached login data was found for the resource referenced by
232
the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFillAuthenticationIn" title="GnomeVFSModuleCallbackFillAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFillAuthenticationIn</span></a> structure.
236
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationOut.username"></a>username</code></em>;</span></p></td>
237
<td> The cached username that should be used to access the resource.
238
This will be freed by the module when it isn't needed any longer. May only
239
be set if <em class="parameter"><code>valid</code></em> is <code class="literal">TRUE</code>.
243
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationOut.domain"></a>domain</code></em>;</span></p></td>
244
<td> The cached domain that should be used to access the resource.
245
This will be freed by the module when it isn't needed any longer. May only
246
be set if <em class="parameter"><code>valid</code></em> is <code class="literal">TRUE</code>.
250
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFillAuthenticationOut.password"></a>password</code></em>;</span></p></td>
251
<td> The cached password that should be used to access the resource.
252
This will be freed by the module when it isn't needed any longer. May only
253
be set if <em class="parameter"><code>valid</code></em> is <code class="literal">TRUE</code>.
260
<div class="refsect2" lang="en">
261
<a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</h3>
262
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION "full-authentication"
265
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
266
ask the user for login data. This includes username and password, but also
267
special login choices like anonymous login.
271
<div class="variablelist"><table border="0">
272
<col align="left" valign="top">
275
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
277
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a> * passed to the application,
278
specifying the authentication request.
282
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
284
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> * passing the user's
285
provided authentication data (i.e. his username/password etc.) back to the module.
294
<div class="refsect2" lang="en">
295
<a name="GnomeVFSModuleCallbackFullAuthenticationFlags"></a><h3>enum GnomeVFSModuleCallbackFullAuthenticationFlags</h3>
296
<pre class="programlisting">typedef enum {
297
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_PREVIOUS_ATTEMPT_FAILED = 1<<0,
298
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSWORD = 1<<1,
299
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME = 1<<2,
300
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN = 1<<3,
301
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED = 1<<4,
302
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED = 1<<5
303
} GnomeVFSModuleCallbackFullAuthenticationFlags;
306
These flags will be passed to the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback,
307
as part of the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a> structure. The output data
308
will be stored in a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> structure.</p>
311
<div class="variablelist"><table border="0">
312
<col align="left" valign="top">
315
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-PREVIOUS-ATTEMPT-FAILED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_PREVIOUS_ATTEMPT_FAILED</code></span></p></td>
316
<td> This is not the first login attempt,
317
i.e. this callback was already invoked but the provided login data was not suitable for a successful login.
321
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-PASSWORD:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSWORD</code></span></p></td>
322
<td> The application should ask the user for
323
a password and set the <em class="parameter"><code>password</code></em> field of <span class="type">GnomeVFSModuleCallbackFullAuthenticationOut.</span>
327
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-USERNAME:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME</code></span></p></td>
328
<td> The application should ask the user for
329
a username and set the <em class="parameter"><code>username</code></em> field of <span class="type">GnomeVFSModuleCallbackFullAuthenticationOut.</span>
333
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-NEED-DOMAIN:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN</code></span></p></td>
334
<td> The application should ask the user for
335
a domain and set the <em class="parameter"><code>domain</code></em> field of <span class="type">GnomeVFSModuleCallbackFullAuthenticationOut.</span>
339
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-SAVING-SUPPORTED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED</code></span></p></td>
340
<td> The application may ask the user
341
whether he wants to save the password. If this flag is not present, or the user does not want to
342
save the password, the application must set the <em class="parameter"><code>save_password</code></em> field of <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a>
343
to <code class="literal">FALSE</code> and its keyring field to <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. If the <em class="parameter"><code>save_password</code></em> field is <code class="literal">TRUE</code>, the module invoking
344
the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback is expected to invoke the
345
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</span></a> callback if the login attempt was successful with
346
the <em class="parameter"><code>username</code></em>, <em class="parameter"><code>password</code></em>, <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>keyring</code></em> fields of <span class="type">GnomeVFSModuleCallbackFullAuthenticationOut.</span>
350
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-ANON-SUPPORTED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED</code></span></p></td>
352
should offer the user a choice to login anonymously (used for example by the FTP module).
353
If the user requests anonymous login, <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED:CAPS"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED</span></a>
354
must be set in the <em class="parameter"><code>out_flags</code></em> field of <span class="type">GnomeVFSModuleCallbackFullAuthenticationOut.</span>
361
<div class="refsect2" lang="en">
362
<a name="GnomeVFSModuleCallbackFullAuthenticationIn"></a><h3>GnomeVFSModuleCallbackFullAuthenticationIn</h3>
363
<pre class="programlisting">typedef struct {
364
GnomeVFSModuleCallbackFullAuthenticationFlags flags;
375
/* for pre-filling the dialog */
377
char *default_domain;
378
} GnomeVFSModuleCallbackFullAuthenticationIn;
381
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a> structure is passed to the
382
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback, and informs the application
383
about the authentication parameters that should be requested from the user.
386
The <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> application callback will then set
387
the members of a pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> structure
388
according to the user input.</p>
391
<div class="variablelist"><table border="0">
392
<col align="left" valign="top">
395
<td><p><span class="term"><a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags">GnomeVFSModuleCallbackFullAuthenticationFlags</a> <em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.flags"></a>flags</code></em>;</span></p></td>
396
<td> <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a> influencing the user query.
400
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.uri"></a>uri</code></em>;</span></p></td>
401
<td> The textual URI of the resource that requires authentication.
405
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.protocol"></a>protocol</code></em>;</span></p></td>
406
<td> One of the protocols supported by the invoking module. Typically matches <em class="parameter"><code>uri</code></em>'s protocol.
410
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.server"></a>server</code></em>;</span></p></td>
411
<td> The server that contains the resource that requires authentication. Typically matches <em class="parameter"><code>uri</code></em>'s hostname.
415
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.object"></a>object</code></em>;</span></p></td>
416
<td> The type of the resource that requires authentication.
420
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.port"></a>port</code></em>;</span></p></td>
421
<td> The port that was used to connect to <em class="parameter"><code>server</code></em>. 0 means unset.
425
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.authtype"></a>authtype</code></em>;</span></p></td>
426
<td> The type of authentication that was requested. For the
427
HTTP method, this may be "basic" or "proxy". For the SFTP method,
428
this may be "publickey" or "password".
432
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.username"></a>username</code></em>;</span></p></td>
433
<td> The username that was used to connect to <em class="parameter"><code>server</code></em>. This variable
434
should just be used for display purposes, i.e. like “<span class="quote">You were trying
435
to access foo<em class="parameter"><code>bar.com</code></em></span>” where foo is the <em class="parameter"><code>username</code></em> and bar.com is the
436
<em class="parameter"><code>server</code></em>. Do not make the contents of the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a>
437
output variables depend on the value of this variable. If you want to handle
438
absence of user input, pass back <em class="parameter"><code>default_user</code></em> instead.
442
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.domain"></a>domain</code></em>;</span></p></td>
443
<td> The domain that <em class="parameter"><code>server</code></em> belongs to (only used by the SMB method).
444
This variable should just be used for display purposes where foo is the <em class="parameter"><code>username</code></em>
445
and bar.com is the <em class="parameter"><code>server</code></em>. Do not make the contents of the
446
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> output variables depend on the value
447
of this variable. If you want to handle absence of user input, pass back
448
<em class="parameter"><code>default_domain</code></em> instead.
452
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.default_user"></a>default_user</code></em>;</span></p></td>
453
<td> The username that should be provided to the user by default.
454
Typically matches <em class="parameter"><code>username</code></em>.
458
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationIn.default_domain"></a>default_domain</code></em>;</span></p></td>
459
<td> The domain that should be provided to the user by default.
460
Typically matches <em class="parameter"><code>domain</code></em>.
467
<div class="refsect2" lang="en">
468
<a name="GnomeVFSModuleCallbackFullAuthenticationOut"></a><h3>GnomeVFSModuleCallbackFullAuthenticationOut</h3>
469
<pre class="programlisting">typedef struct {
476
gboolean save_password;
480
} GnomeVFSModuleCallbackFullAuthenticationOut;
483
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> structure is passed to the
484
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback, and informs the module
485
about the authentication parameters that the user provided by setting the respective
486
fields according to the user input and the passed-in <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a>
490
<div class="variablelist"><table border="0">
491
<col align="left" valign="top">
494
<td><p><span class="term">gboolean <em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.abort_auth"></a>abort_auth</code></em>;</span></p></td>
495
<td> Whether the user somehow cancelled the login process. The application
496
is expected to offer the user a cancellation point during the authentication query.
497
In a graphical user interface, this is typically achieved by providing a "Cancel"
502
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.username"></a>username</code></em>;</span></p></td>
503
<td> The user-provided username that should be used to access the resource
504
referenced by <span class="type">GnomeVFSModuleCallbackFullAuthenticationIn.</span> This will be freed by
505
the module when it isn't needed any longer. Must not be set if the
506
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a> don't contain
507
<span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_USERNAME.</span>
511
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.domain"></a>domain</code></em>;</span></p></td>
512
<td> The user-provided domain that should be used to access the resource
513
referenced by <span class="type">GnomeVFSModuleCallbackFullAuthenticationIn.</span> This will be freed by
514
the module when it isn't needed any longer. Must not be set if the
515
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a> don't contain
516
<span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_DOMAIN.</span>
520
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.password"></a>password</code></em>;</span></p></td>
521
<td> The user-provided password that should be used to access the resource
522
referenced by <span class="type">GnomeVFSModuleCallbackFullAuthenticationIn.</span> This will be freed by
523
the module when it isn't needed any longer. Must not be set if the
524
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a> don't contain
525
<span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_NEED_PASSOWRD.</span>
529
<td><p><span class="term">gboolean <em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.save_password"></a>save_password</code></em>;</span></p></td>
530
<td> Flags whether the user requested to save the provided login
531
data. Must be <code class="literal">FALSE</code> if the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a>
532
don't contain <span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_SAVING_SUPPORTED.</span>
536
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.keyring"></a>keyring</code></em>;</span></p></td>
537
<td> Flags which keyring should be used to save the password. This will
538
later be passed to the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</span></a> callback
539
if the login attempt was successful with the specified <em class="parameter"><code>username</code></em>, <em class="parameter"><code>password</code></em> and
540
<em class="parameter"><code>domain</code></em>. This will NOT be freed by the module, so the application typically
541
provides a <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> pointer or a pointer to a static string.
545
<td><p><span class="term">gsize <em class="structfield"><code><a name="GnomeVFSModuleCallbackFullAuthenticationOut.out_flags"></a>out_flags</code></em>;</span></p></td>
546
<td> <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOutFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationOutFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOutFlags</span></a> signalling a special request, for instance
547
anonymous access to an FTP server.
554
<div class="refsect2" lang="en">
555
<a name="GnomeVFSModuleCallbackFullAuthenticationOutFlags"></a><h3>enum GnomeVFSModuleCallbackFullAuthenticationOutFlags</h3>
556
<pre class="programlisting">typedef enum {
557
GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED = 1<<0
558
} GnomeVFSModuleCallbackFullAuthenticationOutFlags;
561
These flags will be passed from a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback
562
back to the module, as part of the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> structure.</p>
565
<div class="variablelist"><table border="0">
566
<col align="left" valign="top">
568
<td><p><a name="GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION-OUT-ANON-SELECTED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_OUT_ANON_SELECTED</code></span></p></td>
569
<td> Anonymous login requested.
570
May only be set if the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a>'s
571
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationFlags" title="enum GnomeVFSModuleCallbackFullAuthenticationFlags"><span class="type">GnomeVFSModuleCallbackFullAuthenticationFlags</span></a> contain
572
<span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_ANON_SUPPORTED.</span>
578
<div class="refsect2" lang="en">
579
<a name="GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</h3>
580
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION "save-authentication"
583
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
584
request permanent or temporary storage of login data. The storage is typically
585
done using a keyring manager.
588
Called after a successfull authentication, to allow the client to e.g.
589
store the password for future use. It may be queried again within the
590
current session (temporary storage) or in future sessions (permanent
591
storage) using <span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION.</span>
594
This is typically called after the user provided login data with
595
<span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</span>
599
<div class="variablelist"><table border="0">
600
<col align="left" valign="top">
603
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
605
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackSaveAuthenticationIn" title="GnomeVFSModuleCallbackSaveAuthenticationIn"><span class="type">GnomeVFSModuleCallbackSaveAuthenticationIn</span></a> * specifying the login data.
609
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
611
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackSaveAuthenticationOut" title="GnomeVFSModuleCallbackSaveAuthenticationOut"><span class="type">GnomeVFSModuleCallbackSaveAuthenticationOut</span></a> * (unused).
620
<div class="refsect2" lang="en">
621
<a name="GnomeVFSModuleCallbackSaveAuthenticationIn"></a><h3>GnomeVFSModuleCallbackSaveAuthenticationIn</h3>
622
<pre class="programlisting">typedef struct {
634
} GnomeVFSModuleCallbackSaveAuthenticationIn;
637
A <span class="type">GnomeVFSModuleCallbackSaveAuthenticatioIn</span> pointer is passed to a
638
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</span></a> application callback,
639
and specifies the login data that should be stored permanently on
640
disk or temporarily cached.
643
This data may be queried in future sessions (permanent storage) or within
644
the current session (temporary storage) using
645
<span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION.</span></p>
648
<div class="variablelist"><table border="0">
649
<col align="left" valign="top">
652
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.keyring"></a>keyring</code></em>;</span></p></td>
653
<td> Keyring provided by <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a> callback.
657
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.uri"></a>uri</code></em>;</span></p></td>
658
<td> The textual URI of the resource that is accessed.
662
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.protocol"></a>protocol</code></em>;</span></p></td>
663
<td> One of the protocols supported by the invoking module.
664
Typically matches <em class="parameter"><code>uri</code></em>'s protocol.
668
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.server"></a>server</code></em>;</span></p></td>
669
<td> The server that contains the resource that is accessed.
670
Typically matches <em class="parameter"><code>uri</code></em>'s hostname.
674
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.object"></a>object</code></em>;</span></p></td>
675
<td> The type of the resource that is accessed.
679
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.port"></a>port</code></em>;</span></p></td>
680
<td> The port that was used to connect to <em class="parameter"><code>server</code></em>. 0 means unset.
684
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.authtype"></a>authtype</code></em>;</span></p></td>
685
<td> The type of authentication that was requested. For the
686
HTTP method, this may be "basic" or "proxy". For the SFTP method,
687
this may be "publickey" or "password".
691
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.username"></a>username</code></em>;</span></p></td>
692
<td> The username that was used to connect to <em class="parameter"><code>server</code></em>.
696
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.domain"></a>domain</code></em>;</span></p></td>
697
<td> The domain that <em class="parameter"><code>server</code></em> belongs to (only used by the SMB method).
701
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackSaveAuthenticationIn.password"></a>password</code></em>;</span></p></td>
702
<td> The password that was used to connect to <em class="parameter"><code>server</code></em>.
709
<div class="refsect2" lang="en">
710
<a name="GnomeVFSModuleCallbackSaveAuthenticationOut"></a><h3>GnomeVFSModuleCallbackSaveAuthenticationOut</h3>
711
<pre class="programlisting">typedef struct {
712
} GnomeVFSModuleCallbackSaveAuthenticationOut;
715
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackSaveAuthenticationOut" title="GnomeVFSModuleCallbackSaveAuthenticationOut"><span class="type">GnomeVFSModuleCallbackSaveAuthenticationOut</span></a> pointer is passed to a
716
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-SAVE-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_SAVE_AUTHENTICATION</span></a> application callback,
717
and is reserved for future use. Applications are not expected
718
to modify this data, because its interpretation might change
724
<div class="refsect2" lang="en">
725
<a name="GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_QUESTION</h3>
726
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_QUESTION "ask-question"
729
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
730
ask the user a question.
733
Called when access to a URI requires the user to make a choice.
737
<div class="variablelist"><table border="0">
738
<col align="left" valign="top">
741
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
743
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a> * passed to the application,
747
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
749
specifying the proxy authentication request.
750
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationOut" title="GnomeVFSModuleCallbackFullAuthenticationOut"><span class="type">GnomeVFSModuleCallbackFullAuthenticationOut</span></a> * passing the user's
751
provided proxy authentication data (i.e. his username/password) back to the module.
760
<div class="refsect2" lang="en">
761
<a name="GnomeVFSModuleCallbackQuestionIn"></a><h3>GnomeVFSModuleCallbackQuestionIn</h3>
762
<pre class="programlisting">typedef struct {
763
char *primary_message;
764
char *secondary_message;
766
} GnomeVFSModuleCallbackQuestionIn;
769
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionIn" title="GnomeVFSModuleCallbackQuestionIn"><span class="type">GnomeVFSModuleCallbackQuestionIn</span></a> pointer is passed to a
770
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_QUESTION"><span class="type">GNOME_VFS_MODULE_CALLBACK_QUESTION</span></a> application callback.
771
Applications are expected to request a decision from the
772
user, and store the answer in a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionOut" title="GnomeVFSModuleCallbackQuestionOut"><span class="type">GnomeVFSModuleCallbackQuestionOut</span></a>
776
<div class="variablelist"><table border="0">
777
<col align="left" valign="top">
780
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackQuestionIn.primary_message"></a>primary_message</code></em>;</span></p></td>
781
<td> A short message explaining the question to the user,
782
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no message.
786
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackQuestionIn.secondary_message"></a>secondary_message</code></em>;</span></p></td>
787
<td> The long version of the message, containing more
788
details, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no message.
792
<td><p><span class="term">char **<em class="structfield"><code><a name="GnomeVFSModuleCallbackQuestionIn.choices"></a>choices</code></em>;</span></p></td>
793
<td> <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated string list of choices the user has to choose from.
794
The first item in the list should be affermative, and will be put on the right
802
<div class="refsect2" lang="en">
803
<a name="GnomeVFSModuleCallbackQuestionOut"></a><h3>GnomeVFSModuleCallbackQuestionOut</h3>
804
<pre class="programlisting">typedef struct {
806
} GnomeVFSModuleCallbackQuestionOut;
809
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionOut" title="GnomeVFSModuleCallbackQuestionOut"><span class="type">GnomeVFSModuleCallbackQuestionOut</span></a> pointer is passed to a
810
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-QUESTION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_QUESTION"><span class="type">GNOME_VFS_MODULE_CALLBACK_QUESTION</span></a> application callback, and
811
is used by applications to store the user's decision.</p>
814
<div class="variablelist"><table border="0">
815
<col align="left" valign="top">
817
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackQuestionOut.answer"></a>answer</code></em>;</span></p></td>
818
<td> The index of the answer the user picked. Matches the base
819
pointer address of the user's choice in <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackQuestionIn" title="GnomeVFSModuleCallbackQuestionIn"><span class="type">GnomeVFSModuleCallbackQuestionIn</span></a>,
820
i.e. its index in choices, where the first choice has index <code class="literal">0</code>.
826
<div class="refsect2" lang="en">
827
<a name="GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</h3>
828
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE "status-message"
831
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
832
inform the user about an ongoing operation.
835
Called when a <span class="type">GnomeVFSModule</span> has a status message to return to the user.
839
<div class="variablelist"><table border="0">
840
<col align="left" valign="top">
843
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
845
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageIn" title="GnomeVFSModuleCallbackStatusMessageIn"><span class="type">GnomeVFSModuleCallbackStatusMessageIn</span></a> * containing the message to present to the user.
849
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
851
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageOut" title="GnomeVFSModuleCallbackStatusMessageOut"><span class="type">GnomeVFSModuleCallbackStatusMessageOut</span></a> * (not used).
860
<div class="refsect2" lang="en">
861
<a name="GnomeVFSModuleCallbackStatusMessageIn"></a><h3>GnomeVFSModuleCallbackStatusMessageIn</h3>
862
<pre class="programlisting">typedef struct {
866
} GnomeVFSModuleCallbackStatusMessageIn;
869
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageIn" title="GnomeVFSModuleCallbackStatusMessageIn"><span class="type">GnomeVFSModuleCallbackStatusMessageIn</span></a> pointer is passed to a
870
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS" title="GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE"><span class="type">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</span></a> application callback,
871
to inform it about the progress and/or status of an ongoing operation.</p>
874
<div class="variablelist"><table border="0">
875
<col align="left" valign="top">
878
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackStatusMessageIn.uri"></a>uri</code></em>;</span></p></td>
879
<td> The textual URI the status message refers to.
883
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackStatusMessageIn.message"></a>message</code></em>;</span></p></td>
884
<td> The message the application should display to the user,
885
indicating the current state, or it is <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.
889
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackStatusMessageIn.percentage"></a>percentage</code></em>;</span></p></td>
890
<td> The percentage indicating the completeness of
891
a currently pending operation on <em class="parameter"><code>uri</code></em> (1-100), or -1 if there
892
is no progress percentage to report.
899
<div class="refsect2" lang="en">
900
<a name="GnomeVFSModuleCallbackStatusMessageOut"></a><h3>GnomeVFSModuleCallbackStatusMessageOut</h3>
901
<pre class="programlisting">typedef struct {
902
/* empty structs not allowed */
904
} GnomeVFSModuleCallbackStatusMessageOut;
907
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackStatusMessageOut" title="GnomeVFSModuleCallbackStatusMessageOut"><span class="type">GnomeVFSModuleCallbackStatusMessageOut</span></a> pointer is passed to a
908
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-STATUS-MESSAGE:CAPS" title="GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE"><span class="type">GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE</span></a> application callback,
909
and is reserved for future use. Applications are not expected
910
to modify this data, because its interpretation might change
914
<div class="variablelist"><table border="0">
915
<col align="left" valign="top">
917
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackStatusMessageOut.dummy"></a>dummy</code></em>;</span></p></td>
924
<div class="refsect2" lang="en">
925
<a name="GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</h3>
926
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS "http:send-additional-headers"
929
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
930
request additional HTTP headers.
933
Called before sending headers to an HTTP server. Client applications can add
938
<div class="variablelist"><table border="0">
939
<col align="left" valign="top">
942
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
944
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersIn" title="GnomeVFSModuleCallbackAdditionalHeadersIn"><span class="type">GnomeVFSModuleCallbackAdditionalHeadersIn</span></a> * identifying the resource.
948
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
950
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersOut" title="GnomeVFSModuleCallbackAdditionalHeadersOut"><span class="type">GnomeVFSModuleCallbackAdditionalHeadersOut</span></a> * allowing to add headers
960
<div class="refsect2" lang="en">
961
<a name="GnomeVFSModuleCallbackAdditionalHeadersIn"></a><h3>GnomeVFSModuleCallbackAdditionalHeadersIn</h3>
962
<pre class="programlisting">typedef struct {
964
} GnomeVFSModuleCallbackAdditionalHeadersIn;
967
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersIn" title="GnomeVFSModuleCallbackAdditionalHeadersIn"><span class="type">GnomeVFSModuleCallbackAdditionalHeadersIn</span></a> pointer is passed to a
968
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS"><span class="type">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</span></a> application
969
callback, to inform it about a pending HTTP request and allow it to
970
add additional headers.</p>
973
<div class="variablelist"><table border="0">
974
<col align="left" valign="top">
976
<td><p><span class="term"><a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI">GnomeVFSURI</a> *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAdditionalHeadersIn.uri"></a>uri</code></em>;</span></p></td>
977
<td> A <a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="type">GnomeVFSURI</span></a> identifying the resource of the currently pending request.
983
<div class="refsect2" lang="en">
984
<a name="GnomeVFSModuleCallbackAdditionalHeadersOut"></a><h3>GnomeVFSModuleCallbackAdditionalHeadersOut</h3>
985
<pre class="programlisting">typedef struct {
987
} GnomeVFSModuleCallbackAdditionalHeadersOut;
990
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAdditionalHeadersOut" title="GnomeVFSModuleCallbackAdditionalHeadersOut"><span class="type">GnomeVFSModuleCallbackAdditionalHeadersOut</span></a> pointer is passed to a
991
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-SEND-ADDITIONAL-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS"><span class="type">GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS</span></a> application
992
callback, to store the headers the application wants to add to
993
a pending HTTP request.</p>
996
<div class="variablelist"><table border="0">
997
<col align="left" valign="top">
999
<td><p><span class="term">GList *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAdditionalHeadersOut.headers"></a>headers</code></em>;</span></p></td>
1000
<td> A <span class="type">GList</span> of strings, each of them is an additional header that
1001
is added to the HTTP request. <em class="parameter"><code>headers</code></em> and all its strings will be freed
1002
by the module when they aren't needed any longer.
1008
<div class="refsect2" lang="en">
1009
<a name="GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</h3>
1010
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS "http:received-headers"
1013
A module callback name used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a> to
1014
inform an application about the delivery of a HTTP request.
1017
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS"><span class="type">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</span></a> is called after
1018
receiving HTTP headers from a server that belonged to a HTTP
1019
request that was issued by the application and allows the
1020
application to analyze the returned headers.
1024
<div class="variablelist"><table border="0">
1025
<col align="left" valign="top">
1028
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
1030
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersIn" title="GnomeVFSModuleCallbackReceivedHeadersIn"><span class="type">GnomeVFSModuleCallbackReceivedHeadersIn</span></a> *.
1034
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
1036
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersOut" title="GnomeVFSModuleCallbackReceivedHeadersOut"><span class="type">GnomeVFSModuleCallbackReceivedHeadersOut</span></a> * (not used).
1045
<div class="refsect2" lang="en">
1046
<a name="GnomeVFSModuleCallbackReceivedHeadersIn"></a><h3>GnomeVFSModuleCallbackReceivedHeadersIn</h3>
1047
<pre class="programlisting">typedef struct {
1050
} GnomeVFSModuleCallbackReceivedHeadersIn;
1053
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersIn" title="GnomeVFSModuleCallbackReceivedHeadersIn"><span class="type">GnomeVFSModuleCallbackReceivedHeadersIn</span></a> pointer is passed to a
1054
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS"><span class="type">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</span></a> application
1055
callback, to inform it about a delivered HTTP request and allow
1056
it to analyze the returned headers.</p>
1059
<div class="variablelist"><table border="0">
1060
<col align="left" valign="top">
1063
<td><p><span class="term"><a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI">GnomeVFSURI</a> *<em class="structfield"><code><a name="GnomeVFSModuleCallbackReceivedHeadersIn.uri"></a>uri</code></em>;</span></p></td>
1064
<td> A <a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="type">GnomeVFSURI</span></a> identifying the resource of the currently delivered request.
1068
<td><p><span class="term">GList *<em class="structfield"><code><a name="GnomeVFSModuleCallbackReceivedHeadersIn.headers"></a>headers</code></em>;</span></p></td>
1069
<td> A <span class="type">GList</span> of strings, each of them is a header that was received when
1070
delivering the HTTP request. <em class="parameter"><code>headers</code></em> and all its strings will be freed
1071
by the module when they aren't needed any longer.
1078
<div class="refsect2" lang="en">
1079
<a name="GnomeVFSModuleCallbackReceivedHeadersOut"></a><h3>GnomeVFSModuleCallbackReceivedHeadersOut</h3>
1080
<pre class="programlisting">typedef struct {
1082
} GnomeVFSModuleCallbackReceivedHeadersOut;
1085
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackReceivedHeadersOut" title="GnomeVFSModuleCallbackReceivedHeadersOut"><span class="type">GnomeVFSModuleCallbackReceivedHeadersOut</span></a> pointer is passed to a
1086
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-HTTP-RECEIVED-HEADERS:CAPS" title="GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS"><span class="type">GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS</span></a> application
1087
callback, and is reserved for future use. Applications are not
1088
expected to modify this data, because its interpretation might
1089
change in the future.</p>
1092
<div class="variablelist"><table border="0">
1093
<col align="left" valign="top">
1095
<td><p><span class="term">int <em class="structfield"><code><a name="GnomeVFSModuleCallbackReceivedHeadersOut.dummy"></a>dummy</code></em>;</span></p></td>
1102
<div class="refsect2" lang="en">
1103
<a name="GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</h3>
1104
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION "simple-authentication"
1106
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1107
<h3 class="title">Warning</h3>
1108
<p><code class="literal">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</code> is deprecated and should not be used in newly-written code. Modules should use <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a>
1109
and <span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</span></p>
1112
A module callback name formerly used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a>.
1115
Formerly called when access to a URI requires a username/password.
1119
<div class="variablelist"><table border="0">
1120
<col align="left" valign="top">
1123
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
1125
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationIn" title="GnomeVFSModuleCallbackAuthenticationIn"><span class="type">GnomeVFSModuleCallbackAuthenticationIn</span></a> *.
1129
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
1131
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationOut" title="GnomeVFSModuleCallbackAuthenticationOut"><span class="type">GnomeVFSModuleCallbackAuthenticationOut</span></a> *.
1140
<div class="refsect2" lang="en">
1141
<a name="GNOME-VFS-MODULE-CALLBACK-HTTP-PROXY-AUTHENTICATION:CAPS"></a><h3>GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</h3>
1142
<pre class="programlisting">#define GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION "http:proxy-authentication"
1144
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1145
<h3 class="title">Warning</h3>
1146
<p><code class="literal">GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION</code> is deprecated and should not be used in newly-written code. Proxy authentication now works desktop-wide through GConf.</p>
1149
A module callback name formerly used together with <a class="link" href="gnome-vfs-2.0-gnome-vfs-module-callback-module-api.html#gnome-vfs-module-callback-invoke" title="gnome_vfs_module_callback_invoke ()"><code class="function">gnome_vfs_module_callback_invoke()</code></a>
1150
to ask the user for HTTP proxy login data. It works exactly like
1151
<a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FULL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION</span></a>, and used to be kept separate to
1152
allow applications to distinguish proxy authentication from actual server
1153
authentication, so that the wording of the interface could be adapted.
1156
Formerly called when access to an HTTP proxy required a username/password.
1160
<div class="variablelist"><table border="0">
1161
<col align="left" valign="top">
1164
<td><p><span class="term"><em class="parameter"><code>in arg</code></em> :</span></p></td>
1166
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationIn" title="GnomeVFSModuleCallbackAuthenticationIn"><span class="type">GnomeVFSModuleCallbackAuthenticationIn</span></a> *.
1170
<td><p><span class="term"><em class="parameter"><code>out arg</code></em> :</span></p></td>
1172
A <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationOut" title="GnomeVFSModuleCallbackAuthenticationOut"><span class="type">GnomeVFSModuleCallbackAuthenticationOut</span></a> *.
1181
<div class="refsect2" lang="en">
1182
<a name="GnomeVFSModuleCallbackAuthenticationAuthType"></a><h3>enum GnomeVFSModuleCallbackAuthenticationAuthType</h3>
1183
<pre class="programlisting">typedef enum {
1186
} GnomeVFSModuleCallbackAuthenticationAuthType;
1188
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1189
<h3 class="title">Warning</h3>
1190
<p><code class="literal">GnomeVFSModuleCallbackAuthenticationAuthType</code> is deprecated and should not be used in newly-written code. Modules should use <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a>
1191
and <span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</span></p>
1194
This defines the possible values of the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationIn" title="GnomeVFSModuleCallbackAuthenticationIn"><span class="type">GnomeVFSModuleCallbackAuthenticationIn</span></a>'s
1195
<code class="literal">auth_type</code> field.</p>
1198
<div class="variablelist"><table border="0">
1199
<col align="left" valign="top">
1202
<td><p><a name="AuthTypeBasic"></a><span class="term"><code class="literal">AuthTypeBasic</code></span></p></td>
1203
<td> transmit password unencrypted.
1207
<td><p><a name="AuthTypeDigest"></a><span class="term"><code class="literal">AuthTypeDigest</code></span></p></td>
1208
<td> transmit digest instead of plaintext credentials.
1215
<div class="refsect2" lang="en">
1216
<a name="GnomeVFSModuleCallbackAuthenticationIn"></a><h3>GnomeVFSModuleCallbackAuthenticationIn</h3>
1217
<pre class="programlisting">typedef struct {
1220
gboolean previous_attempt_failed;
1221
GnomeVFSModuleCallbackAuthenticationAuthType auth_type;
1222
} GnomeVFSModuleCallbackAuthenticationIn;
1224
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1225
<h3 class="title">Warning</h3>
1226
<p><code class="literal">GnomeVFSModuleCallbackAuthenticationIn</code> is deprecated and should not be used in newly-written code. Modules should use <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a>
1227
and <span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</span></p>
1230
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationIn" title="GnomeVFSModuleCallbackAuthenticationIn"><span class="type">GnomeVFSModuleCallbackAuthenticationIn</span></a> structure that used to be
1231
passed to the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</span></a> callback, and informed
1232
the application about the authentication parameters that should be requested.</p>
1235
<div class="variablelist"><table border="0">
1236
<col align="left" valign="top">
1239
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationIn.uri"></a>uri</code></em>;</span></p></td>
1240
<td> The textual URI of the resource that requires authentication.
1244
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationIn.realm"></a>realm</code></em>;</span></p></td>
1245
<td> "auth" for HTTP, <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> for others.
1249
<td><p><span class="term">gboolean <em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationIn.previous_attempt_failed"></a>previous_attempt_failed</code></em>;</span></p></td>
1250
<td> <code class="literal">TRUE</code> if there already was login data
1251
specified for this request, but the login failed. <code class="literal">FALSE</code> if no
1252
previous login attempt has been made right before this one.
1256
<td><p><span class="term"><a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationAuthType" title="enum GnomeVFSModuleCallbackAuthenticationAuthType">GnomeVFSModuleCallbackAuthenticationAuthType</a> <em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationIn.auth_type"></a>auth_type</code></em>;</span></p></td>
1257
<td> Whether the login data will be transmitted in plaintext or encrypted.
1264
<div class="refsect2" lang="en">
1265
<a name="GnomeVFSModuleCallbackAuthenticationOut"></a><h3>GnomeVFSModuleCallbackAuthenticationOut</h3>
1266
<pre class="programlisting">typedef struct {
1269
} GnomeVFSModuleCallbackAuthenticationOut;
1271
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1272
<h3 class="title">Warning</h3>
1273
<p><code class="literal">GnomeVFSModuleCallbackAuthenticationOut</code> is deprecated and should not be used in newly-written code. Modules should use <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-FILL-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_FILL_AUTHENTICATION</span></a>
1274
and <span class="type">GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION.</span></p>
1277
A pointer to a <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackAuthenticationOut" title="GnomeVFSModuleCallbackAuthenticationOut"><span class="type">GnomeVFSModuleCallbackAuthenticationOut</span></a> structure that used to be
1278
passed to the <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GNOME-VFS-MODULE-CALLBACK-AUTHENTICATION:CAPS" title="GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION"><span class="type">GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION</span></a> callback, and was
1279
used to pass the login data back to the module.</p>
1282
<div class="variablelist"><table border="0">
1283
<col align="left" valign="top">
1286
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationOut.username"></a>username</code></em>;</span></p></td>
1287
<td> The username that should be used to access the resource
1288
referenced by <a class="link" href="gnome-vfs-2.0-gnome-vfs-standard-callbacks.html#GnomeVFSModuleCallbackFullAuthenticationIn" title="GnomeVFSModuleCallbackFullAuthenticationIn"><span class="type">GnomeVFSModuleCallbackFullAuthenticationIn</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>
1289
if no data was provided. This will be freed by the module when it
1290
isn't needed any longer.
1294
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSModuleCallbackAuthenticationOut.password"></a>password</code></em>;</span></p></td>
1295
<td> The password that should be used to access the resource
1296
referenced by <span class="type">GnomeVFSModuleCallbackFullAuthenticationIn.</span> This will
1297
be freed by the module when it isn't needed any longer.
1305
<div class="footer">
1307
Generated by GTK-Doc V1.12</div>