~ubuntu-branches/ubuntu/oneiric/gnome-vfs/oneiric

« back to all changes in this revision

Viewing changes to doc/html/gnome-vfs-2.0-gnome-vfs-monitor.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-25 15:30:01 UTC
  • mfrom: (0.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101125153001-0jr0wdxh5hjq6asw
Tags: 1:2.24.4-0ubuntu1
* New upstream release
* debian/control:
  - Drop build-depends on quit
  - Build-depend on dh-autoreconf, gnome-common
  - Use standards-version 3.9.1
* debian/rules:
  - Drop patchsys-quilt.mk
  - Use autoreconf.mk
* debian/source:
  - Use source format 3.0
* debian/patches/90_relibtoolize.patch:
  - Dropped, now use dh-autoreconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
9
9
<link rel="prev" href="gnome-vfs-2.0-gnome-vfs-xfer.html" title="File Transfers">
10
10
<link rel="next" href="gnome-vfs-2.0-gnome-vfs-file-advanced-ops.html" title="Backend-Specific Operations">
11
 
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
12
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">
23
13
</head>
24
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
36
26
                  <a href="#gnome-vfs-2.0-gnome-vfs-monitor.description" class="shortcut">Description</a>
37
27
</td></tr>
38
28
</table>
39
 
<div class="refentry" title="Monitoring">
 
29
<div class="refentry">
40
30
<a name="gnome-vfs-2.0-gnome-vfs-monitor"></a><div class="titlepage"></div>
41
31
<div class="refnamediv"><table width="100%"><tr>
42
32
<td valign="top">
45
35
</td>
46
36
<td valign="top" align="right"></td>
47
37
</tr></table></div>
48
 
<div class="refsynopsisdiv" title="Synopsis">
 
38
<div class="refsynopsisdiv">
49
39
<a name="gnome-vfs-2.0-gnome-vfs-monitor.synopsis"></a><h2>Synopsis</h2>
50
40
<pre class="synopsis">typedef             <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle">GnomeVFSMonitorHandle</a>;
51
41
enum                <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorType" title="enum GnomeVFSMonitorType">GnomeVFSMonitorType</a>;
52
42
enum                <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType">GnomeVFSMonitorEventType</a>;
53
 
<span class="returnvalue">void</span>                (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()">*GnomeVFSMonitorCallback</a>)          (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> *handle,
54
 
                                                         const <span class="returnvalue">gchar</span> *monitor_uri,
55
 
                                                         const <span class="returnvalue">gchar</span> *info_uri,
56
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="returnvalue">GnomeVFSMonitorEventType</span></a> event_type,
57
 
                                                         <span class="returnvalue">gpointer</span> user_data);
58
 
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()">gnome_vfs_monitor_add</a>               (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> **handle,
59
 
                                                         const <span class="returnvalue">gchar</span> *text_uri,
60
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorType" title="enum GnomeVFSMonitorType"><span class="returnvalue">GnomeVFSMonitorType</span></a> monitor_type,
61
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()"><span class="returnvalue">GnomeVFSMonitorCallback</span></a> callback,
62
 
                                                         <span class="returnvalue">gpointer</span> user_data);
63
 
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel" title="gnome_vfs_monitor_cancel ()">gnome_vfs_monitor_cancel</a>            (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> *handle);
64
 
<span class="returnvalue">void</span>                <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-callback" title="gnome_vfs_monitor_callback ()">gnome_vfs_monitor_callback</a>          (<span class="returnvalue">GnomeVFSMethodHandle</span> *method_handle,
65
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="returnvalue">GnomeVFSURI</span></a> *info_uri,
66
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="returnvalue">GnomeVFSMonitorEventType</span></a> event_type);
 
43
<span class="returnvalue">void</span>                (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()">*GnomeVFSMonitorCallback</a>)          (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> *handle</code></em>,
 
44
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *monitor_uri</code></em>,
 
45
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *info_uri</code></em>,
 
46
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="type">GnomeVFSMonitorEventType</span></a> event_type</code></em>,
 
47
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
 
48
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()">gnome_vfs_monitor_add</a>               (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> **handle</code></em>,
 
49
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text_uri</code></em>,
 
50
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorType" title="enum GnomeVFSMonitorType"><span class="type">GnomeVFSMonitorType</span></a> monitor_type</code></em>,
 
51
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()"><span class="type">GnomeVFSMonitorCallback</span></a> callback</code></em>,
 
52
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
 
53
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel" title="gnome_vfs_monitor_cancel ()">gnome_vfs_monitor_cancel</a>            (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> *handle</code></em>);
 
54
<span class="returnvalue">void</span>                <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-callback" title="gnome_vfs_monitor_callback ()">gnome_vfs_monitor_callback</a>          (<em class="parameter"><code><span class="type">GnomeVFSMethodHandle</span> *method_handle</code></em>,
 
55
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="type">GnomeVFSURI</span></a> *info_uri</code></em>,
 
56
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="type">GnomeVFSMonitorEventType</span></a> event_type</code></em>);
67
57
</pre>
68
58
</div>
69
 
<div class="refsect1" title="Description">
 
59
<div class="refsect1">
70
60
<a name="gnome-vfs-2.0-gnome-vfs-monitor.description"></a><h2>Description</h2>
71
61
<p>
72
62
</p>
73
63
</div>
74
 
<div class="refsect1" title="Details">
 
64
<div class="refsect1">
75
65
<a name="gnome-vfs-2.0-gnome-vfs-monitor.details"></a><h2>Details</h2>
76
 
<div class="refsect2" title="GnomeVFSMonitorHandle">
 
66
<div class="refsect2">
77
67
<a name="GnomeVFSMonitorHandle"></a><h3>GnomeVFSMonitorHandle</h3>
78
68
<pre class="programlisting">typedef struct GnomeVFSMonitorHandle GnomeVFSMonitorHandle;
79
69
</pre>
80
70
<p>
81
71
a handle representing a file or directory monitor that
82
72
was registered using <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a> and that
83
 
can be cancelled using <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel" title="gnome_vfs_monitor_cancel ()"><code class="function">gnome_vfs_monitor_cancel()</code></a>.</p>
 
73
can be cancelled using <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-cancel" title="gnome_vfs_monitor_cancel ()"><code class="function">gnome_vfs_monitor_cancel()</code></a>.
 
74
</p>
84
75
</div>
85
76
<hr>
86
 
<div class="refsect2" title="enum GnomeVFSMonitorType">
 
77
<div class="refsect2">
87
78
<a name="GnomeVFSMonitorType"></a><h3>enum GnomeVFSMonitorType</h3>
88
79
<pre class="programlisting">typedef enum {
89
80
  GNOME_VFS_MONITOR_FILE,
91
82
} GnomeVFSMonitorType;
92
83
</pre>
93
84
<p>
94
 
Type of resources that can be monitored.</p>
 
85
Type of resources that can be monitored.
 
86
</p>
95
87
<div class="variablelist"><table border="0">
96
88
<col align="left" valign="top">
97
89
<tbody>
98
90
<tr>
99
91
<td><p><a name="GNOME-VFS-MONITOR-FILE:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_FILE</code></span></p></td>
100
 
<td> the monitor is registered for a single file.
 
92
<td>the monitor is registered for a single file.
101
93
</td>
102
94
</tr>
103
95
<tr>
104
96
<td><p><a name="GNOME-VFS-MONITOR-DIRECTORY:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_DIRECTORY</code></span></p></td>
105
 
<td> the monitor is registered for all files in a directory,
 
97
<td>the monitor is registered for all files in a directory,
106
98
                                 and the directory itself.
107
99
</td>
108
100
</tr>
110
102
</table></div>
111
103
</div>
112
104
<hr>
113
 
<div class="refsect2" title="enum GnomeVFSMonitorEventType">
 
105
<div class="refsect2">
114
106
<a name="GnomeVFSMonitorEventType"></a><h3>enum GnomeVFSMonitorEventType</h3>
115
107
<pre class="programlisting">typedef enum {
116
108
  GNOME_VFS_MONITOR_EVENT_CHANGED,
122
114
} GnomeVFSMonitorEventType;
123
115
</pre>
124
116
<p>
125
 
Types of events that can be monitored.</p>
 
117
Types of events that can be monitored.
 
118
</p>
126
119
<div class="variablelist"><table border="0">
127
120
<col align="left" valign="top">
128
121
<tbody>
129
122
<tr>
130
123
<td><p><a name="GNOME-VFS-MONITOR-EVENT-CHANGED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_CHANGED</code></span></p></td>
131
 
<td> file data changed (FAM, inotify).
 
124
<td>file data changed (FAM, inotify).
132
125
</td>
133
126
</tr>
134
127
<tr>
135
128
<td><p><a name="GNOME-VFS-MONITOR-EVENT-DELETED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_DELETED</code></span></p></td>
136
 
<td> file deleted event (FAM, inotify).
 
129
<td>file deleted event (FAM, inotify).
137
130
</td>
138
131
</tr>
139
132
<tr>
140
133
<td><p><a name="GNOME-VFS-MONITOR-EVENT-STARTEXECUTING:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_STARTEXECUTING</code></span></p></td>
141
 
<td> file was executed (FAM only).
 
134
<td>file was executed (FAM only).
142
135
</td>
143
136
</tr>
144
137
<tr>
145
138
<td><p><a name="GNOME-VFS-MONITOR-EVENT-STOPEXECUTING:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_STOPEXECUTING</code></span></p></td>
146
 
<td> executed file isn't executed anymore (FAM only).
 
139
<td>executed file isn't executed anymore (FAM only).
147
140
</td>
148
141
</tr>
149
142
<tr>
150
143
<td><p><a name="GNOME-VFS-MONITOR-EVENT-CREATED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_CREATED</code></span></p></td>
151
 
<td> file created event (FAM, inotify).
 
144
<td>file created event (FAM, inotify).
152
145
</td>
153
146
</tr>
154
147
<tr>
155
148
<td><p><a name="GNOME-VFS-MONITOR-EVENT-METADATA-CHANGED:CAPS"></a><span class="term"><code class="literal">GNOME_VFS_MONITOR_EVENT_METADATA_CHANGED</code></span></p></td>
156
 
<td> file metadata changed (inotify only).
 
149
<td>file metadata changed (inotify only).
157
150
</td>
158
151
</tr>
159
152
</tbody>
160
153
</table></div>
161
154
</div>
162
155
<hr>
163
 
<div class="refsect2" title="GnomeVFSMonitorCallback ()">
 
156
<div class="refsect2">
164
157
<a name="GnomeVFSMonitorCallback"></a><h3>GnomeVFSMonitorCallback ()</h3>
165
 
<pre class="programlisting"><span class="returnvalue">void</span>                (*GnomeVFSMonitorCallback)          (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> *handle,
166
 
                                                         const <span class="returnvalue">gchar</span> *monitor_uri,
167
 
                                                         const <span class="returnvalue">gchar</span> *info_uri,
168
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="returnvalue">GnomeVFSMonitorEventType</span></a> event_type,
169
 
                                                         <span class="returnvalue">gpointer</span> user_data);</pre>
 
158
<pre class="programlisting"><span class="returnvalue">void</span>                (*GnomeVFSMonitorCallback)          (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> *handle</code></em>,
 
159
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *monitor_uri</code></em>,
 
160
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *info_uri</code></em>,
 
161
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="type">GnomeVFSMonitorEventType</span></a> event_type</code></em>,
 
162
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
170
163
<p>
171
 
Function called when a monitor detects a change.</p>
 
164
Function called when a monitor detects a change.
 
165
</p>
172
166
<div class="variablelist"><table border="0">
173
167
<col align="left" valign="top">
174
168
<tbody>
175
169
<tr>
176
170
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
177
 
<td> the handle of the monitor that created the event
 
171
<td>the handle of the monitor that created the event
178
172
</td>
179
173
</tr>
180
174
<tr>
181
175
<td><p><span class="term"><em class="parameter"><code>monitor_uri</code></em> :</span></p></td>
182
 
<td> the URI of the monitor that was triggered
 
176
<td>the URI of the monitor that was triggered
183
177
</td>
184
178
</tr>
185
179
<tr>
186
180
<td><p><span class="term"><em class="parameter"><code>info_uri</code></em> :</span></p></td>
187
 
<td> the URI of the actual file this event is concerned with (this can be different
 
181
<td>the URI of the actual file this event is concerned with (this can be different
188
182
from <em class="parameter"><code>monitor_uri</code></em> if it was a directory monitor)
189
183
</td>
190
184
</tr>
191
185
<tr>
192
186
<td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
193
 
<td> what happened to <em class="parameter"><code>info_uri</code></em>
 
187
<td>what happened to <em class="parameter"><code>info_uri</code></em>
194
188
</td>
195
189
</tr>
196
190
<tr>
197
191
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
198
 
<td> user data passed to <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a> when the monitor was created
 
192
<td>user data passed to <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a> when the monitor was created
199
193
</td>
200
194
</tr>
201
195
</tbody>
202
196
</table></div>
203
197
</div>
204
198
<hr>
205
 
<div class="refsect2" title="gnome_vfs_monitor_add ()">
 
199
<div class="refsect2">
206
200
<a name="gnome-vfs-monitor-add"></a><h3>gnome_vfs_monitor_add ()</h3>
207
 
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      gnome_vfs_monitor_add               (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> **handle,
208
 
                                                         const <span class="returnvalue">gchar</span> *text_uri,
209
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorType" title="enum GnomeVFSMonitorType"><span class="returnvalue">GnomeVFSMonitorType</span></a> monitor_type,
210
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()"><span class="returnvalue">GnomeVFSMonitorCallback</span></a> callback,
211
 
                                                         <span class="returnvalue">gpointer</span> user_data);</pre>
 
201
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      gnome_vfs_monitor_add               (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> **handle</code></em>,
 
202
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *text_uri</code></em>,
 
203
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorType" title="enum GnomeVFSMonitorType"><span class="type">GnomeVFSMonitorType</span></a> monitor_type</code></em>,
 
204
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()"><span class="type">GnomeVFSMonitorCallback</span></a> callback</code></em>,
 
205
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
212
206
<p>
213
207
Watch the file or directory at <em class="parameter"><code>text_uri</code></em> for changes (or the creation/deletion of the file)
214
208
and call <em class="parameter"><code>callback</code></em> when there is a change. If a directory monitor is added, <em class="parameter"><code>callback</code></em> is
215
 
notified when any file in the directory changes.</p>
 
209
notified when any file in the directory changes.
 
210
</p>
216
211
<div class="variablelist"><table border="0">
217
212
<col align="left" valign="top">
218
213
<tbody>
219
214
<tr>
220
215
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
221
 
<td> after the call, <em class="parameter"><code>handle</code></em> will be a pointer to an operation handle.
 
216
<td>after the call, <em class="parameter"><code>handle</code></em> will be a pointer to an operation handle.
222
217
</td>
223
218
</tr>
224
219
<tr>
225
220
<td><p><span class="term"><em class="parameter"><code>text_uri</code></em> :</span></p></td>
226
 
<td> string representing the uri to monitor.
 
221
<td>string representing the uri to monitor.
227
222
</td>
228
223
</tr>
229
224
<tr>
230
225
<td><p><span class="term"><em class="parameter"><code>monitor_type</code></em> :</span></p></td>
231
 
<td> add a directory or file monitor.
 
226
<td>add a directory or file monitor.
232
227
</td>
233
228
</tr>
234
229
<tr>
235
230
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
236
 
<td> function to call when the monitor is tripped.
 
231
<td>function to call when the monitor is tripped.
237
232
</td>
238
233
</tr>
239
234
<tr>
240
235
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
241
 
<td> data to pass to <em class="parameter"><code>callback</code></em>.
 
236
<td>data to pass to <em class="parameter"><code>callback</code></em>.
242
237
</td>
243
238
</tr>
244
239
<tr>
250
245
</table></div>
251
246
</div>
252
247
<hr>
253
 
<div class="refsect2" title="gnome_vfs_monitor_cancel ()">
 
248
<div class="refsect2">
254
249
<a name="gnome-vfs-monitor-cancel"></a><h3>gnome_vfs_monitor_cancel ()</h3>
255
 
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      gnome_vfs_monitor_cancel            (<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="returnvalue">GnomeVFSMonitorHandle</span></a> *handle);</pre>
 
250
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult"><span class="returnvalue">GnomeVFSResult</span></a>      gnome_vfs_monitor_cancel            (<em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorHandle" title="GnomeVFSMonitorHandle"><span class="type">GnomeVFSMonitorHandle</span></a> *handle</code></em>);</pre>
256
251
<p>
257
 
Cancel the monitor pointed to be <em class="parameter"><code>handle</code></em>.</p>
 
252
Cancel the monitor pointed to be <em class="parameter"><code>handle</code></em>.
 
253
</p>
258
254
<div class="variablelist"><table border="0">
259
255
<col align="left" valign="top">
260
256
<tbody>
261
257
<tr>
262
258
<td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td>
263
 
<td> handle of the monitor to cancel.
 
259
<td>handle of the monitor to cancel.
264
260
</td>
265
261
</tr>
266
262
<tr>
272
268
</table></div>
273
269
</div>
274
270
<hr>
275
 
<div class="refsect2" title="gnome_vfs_monitor_callback ()">
 
271
<div class="refsect2">
276
272
<a name="gnome-vfs-monitor-callback"></a><h3>gnome_vfs_monitor_callback ()</h3>
277
 
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_vfs_monitor_callback          (<span class="returnvalue">GnomeVFSMethodHandle</span> *method_handle,
278
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="returnvalue">GnomeVFSURI</span></a> *info_uri,
279
 
                                                         <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="returnvalue">GnomeVFSMonitorEventType</span></a> event_type);</pre>
 
273
<pre class="programlisting"><span class="returnvalue">void</span>                gnome_vfs_monitor_callback          (<em class="parameter"><code><span class="type">GnomeVFSMethodHandle</span> *method_handle</code></em>,
 
274
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI"><span class="type">GnomeVFSURI</span></a> *info_uri</code></em>,
 
275
                                                         <em class="parameter"><code><a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorEventType" title="enum GnomeVFSMonitorEventType"><span class="type">GnomeVFSMonitorEventType</span></a> event_type</code></em>);</pre>
280
276
<p>
281
277
<a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-callback" title="gnome_vfs_monitor_callback ()"><code class="function">gnome_vfs_monitor_callback()</code></a> is used by <span class="type">GnomeVFSMethods</span> to indicate that a particular
282
278
resource changed, and will issue the emission of the <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#GnomeVFSMonitorCallback" title="GnomeVFSMonitorCallback ()"><span class="type">GnomeVFSMonitorCallback</span></a> registered
283
 
using <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a>.</p>
 
279
using <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a>.
 
280
</p>
284
281
<div class="variablelist"><table border="0">
285
282
<col align="left" valign="top">
286
283
<tbody>
287
284
<tr>
288
285
<td><p><span class="term"><em class="parameter"><code>method_handle</code></em> :</span></p></td>
289
 
<td> Method-specific monitor handle obtained through <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a>.
 
286
<td>Method-specific monitor handle obtained through <a class="link" href="gnome-vfs-2.0-gnome-vfs-monitor.html#gnome-vfs-monitor-add" title="gnome_vfs_monitor_add ()"><code class="function">gnome_vfs_monitor_add()</code></a>.
290
287
</td>
291
288
</tr>
292
289
<tr>
293
290
<td><p><span class="term"><em class="parameter"><code>info_uri</code></em> :</span></p></td>
294
 
<td> URI that triggered the callback.
 
291
<td>URI that triggered the callback.
295
292
</td>
296
293
</tr>
297
294
<tr>
298
295
<td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
299
 
<td> The event obtained for <em class="parameter"><code>info_uri</code></em>.
 
296
<td>The event obtained for <em class="parameter"><code>info_uri</code></em>.
300
297
</td>
301
298
</tr>
302
299
</tbody>
306
303
</div>
307
304
<div class="footer">
308
305
<hr>
309
 
          Generated by GTK-Doc V1.14</div>
 
306
          Generated by GTK-Doc V1.15.1</div>
310
307
</body>
311
308
</html>
 
 
b'\\ No newline at end of file'