| Top |
| typedef | GnomeVFSMonitorHandle |
| enum | GnomeVFSMonitorType |
| enum | GnomeVFSMonitorEventType |
void (*GnomeVFSMonitorCallback) (GnomeVFSMonitorHandle *handle,const gchar *monitor_uri,const gchar *info_uri,GnomeVFSMonitorEventType event_type,gpointer user_data);
Function called when a monitor detects a change.
handle |
the handle of the monitor that created the event |
|
monitor_uri |
the URI of the monitor that was triggered |
|
info_uri |
the URI of the actual file this event is concerned with (this can be different
from |
|
event_type |
what happened to |
|
user_data |
user data passed to |
GnomeVFSResult gnome_vfs_monitor_add (GnomeVFSMonitorHandle **handle,const gchar *text_uri,GnomeVFSMonitorType monitor_type,GnomeVFSMonitorCallback callback,gpointer user_data);
Watch the file or directory at text_uri
for changes (or the creation/deletion of the file)
and call callback
when there is a change. If a directory monitor is added, callback
is
notified when any file in the directory changes.
GnomeVFSResult
gnome_vfs_monitor_cancel (GnomeVFSMonitorHandle *handle);
Cancel the monitor pointed to be handle
.
void gnome_vfs_monitor_callback (GnomeVFSMethodHandle *method_handle,GnomeVFSURI *info_uri,GnomeVFSMonitorEventType event_type);
gnome_vfs_monitor_callback() is used by GnomeVFSMethods to indicate that a particular
resource changed, and will issue the emission of the GnomeVFSMonitorCallback registered
using gnome_vfs_monitor_add().
method_handle |
Method-specific monitor handle obtained through |
|
info_uri |
URI that triggered the callback. |
|
event_type |
The event obtained for |
typedef struct GnomeVFSMonitorHandle GnomeVFSMonitorHandle;
a handle representing a file or directory monitor that
was registered using gnome_vfs_monitor_add() and that
can be cancelled using gnome_vfs_monitor_cancel().