Function

AstalIOmonitor_file

Declaration

GFileMonitor*
astal_io_monitor_file (
  const gchar* path,
  GClosure* callback
)

Description

Monitor a file for changes. If the path is a directory, monitor it recursively. The callback will be called passed two parameters: the path of the file that changed and an GFileMonitorEvent indicating the reason.

Parameters

path

Type: const gchar*

No description available.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
callback

Type: GClosure

No description available.

The data is owned by the caller of the function.

Return value

Type: GFileMonitor

No description available.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.