![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define ZIF_MONITOR_ERROR struct ZifMonitor; struct ZifMonitorClass; enum ZifMonitorError; GQuark zif_monitor_error_quark (void
); ZifMonitor * zif_monitor_new (void
); gboolean zif_monitor_add_watch (ZifMonitor *monitor
,const gchar *filename
,GError **error
); ZifMonitorPrivate;
typedef enum { ZIF_MONITOR_ERROR_FAILED, ZIF_MONITOR_ERROR_LAST } ZifMonitorError;
GQuark zif_monitor_error_quark (void
);
Returns : |
An error quark. |
Since 0.1.0
ZifMonitor * zif_monitor_new (void
);
Returns : |
A new ZifMonitor instance. |
Since 0.1.0
gboolean zif_monitor_add_watch (ZifMonitor *monitor
,const gchar *filename
,GError **error
);
Sets up a watch on the file, and reports the 'changed' signal when the file is changed.
|
A ZifMonitor |
|
The full filename to watch |
|
A GError, or NULL
|
Returns : |
TRUE for success, FALSE otherwise |
Since 0.1.0