Tizen Native API  5.0
Eio file and directory monitoring API

These function monitor changes in directories and files.

These functions use the best available method to monitor changes on a specified directory or file. They send ecore events when changes occur, and they maintain internal refcounts to reduce resource consumption on duplicate monitor targets.

Functions

Eio_Monitor * eio_monitor_add (const char *path)
 Adds a file/directory to monitor (inotify mechanism)
Eio_Monitor * eio_monitor_stringshared_add (const char *path)
 Adds a file/directory to monitor.
void eio_monitor_del (Eio_Monitor *monitor)
 Deletes a path from the “watched” list.
const char * eio_monitor_path_get (Eio_Monitor *monitor)
 returns the path being watched by the given Eio_Monitor.

Function Documentation

Eio_Monitor* eio_monitor_add ( const char *  path)

Adds a file/directory to monitor (inotify mechanism)

Parameters:
pathfile/directory to monitor
Returns:
NULL in case of a failure or a pointer to the monitor in case of success.

This function will add the given path to its internal list of files to monitor. It utilizes the inotify mechanism introduced in kernel 2.6.13 for passive monitoring.

Since :
3.0
void eio_monitor_del ( Eio_Monitor *  monitor)

Deletes a path from the “watched” list.

Parameters:
monitorThe Eio_Monitor you want to stop watching. It can only be an Eio_Monitor returned to you from calling eio_monitor_add() or eio_monitor_stringshared_add()
Since :
3.0
const char* eio_monitor_path_get ( Eio_Monitor *  monitor)

returns the path being watched by the given Eio_Monitor.

Parameters:
monitorEio_Monitor to return the path of
Returns:
The stringshared path belonging to monitor
Since :
3.0
Eio_Monitor* eio_monitor_stringshared_add ( const char *  path)

Adds a file/directory to monitor.

Parameters:
pathfile/directory to monitor
Returns:
NULL in case of a failure or a pointer to the monitor in case of success.
Warning:
Do NOT pass non-stringshared strings to this function! If you don't know what this means, use eio_monitor_add().

This fuction is just like eio_monitor_add(), however the string passed by argument must be created using eina_stringshare_add().

Since :
3.0

Variable Documentation

A directory has been closed in a watched directory. This event is never sent on Windows and OSX, or for non-fallback monitors

Since :
3.0

A new directory was created in a watched directory

Since :
3.0

A directory has been deleted: this can be either a watched directory or one of its subdirectories

Since :
3.0

A directory has been modified in a watched directory

Since :
3.0

During operation the monitor failed and will no longer work. eio_monitor_del must be called on it.

Since :
3.0

A file was closed in a watched directory. This event is never sent on Windows and OSX, or for non-fallback monitors

Since :
3.0

A new file was created in a watched directory

Since :
3.0

A watched file was deleted, or a file in a watched directory was deleted

Since :
3.0

A file was modified in a watched directory

Since :
3.0

The monitored path has been removed. This event is never sent on OSX

Since :
3.0

The monitored path has been renamed, an error could happen just after if the renamed path doesn't exist. This event is never sent on OSX, or for non-fallback monitors

Since :
3.0