![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#define ZIF_MONITOR_ERROR ZifMonitor; ZifMonitorClass; enum ZifMonitorError; gboolean zif_monitor_add_watch (ZifMonitor *monitor
,const gchar *filename
,GError **error
); GQuark zif_monitor_error_quark (void
); ZifMonitor * zif_monitor_new (void
);
typedef enum { ZIF_MONITOR_ERROR_FAILED, ZIF_MONITOR_ERROR_LAST } ZifMonitorError;
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
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
"changed"
signalvoid user_function (ZifMonitor *zifmonitor, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |