ZIF Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
#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
);
struct ZifMonitorClass { GObjectClass parent_class; /* Padding for future expansion */ void (*_zif_reserved1) (void); void (*_zif_reserved2) (void); void (*_zif_reserved3) (void); void (*_zif_reserved4) (void); };
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
"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. |