monitor.c File Reference

#include
#include "nntpgrab_utils.h"

Functions

NGFileMonitor nntpgrab_utils_monitor_directory (const char *path, char **errmsg)
  Start the monitoring of a directory.
void  nntpgrab_utils_cancel_directory_monitor (NGFileMonitor *monitor)
  Cancel the monitoring of a directory.

Function Documentation

void nntpgrab_utils_cancel_directory_monitor ( NGFileMonitor monitor  ) 

Cancel the monitoring of a directory.

Parameters:
monitor  The instance of the NGFileMonitor which needs to be stopped

NGFileMonitor* nntpgrab_utils_monitor_directory ( const char *  path,
char **  errmsg  
)

Start the monitoring of a directory.

Parameters:
path  The directory which needs to be monitored for changes
errmsg  Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree(). Can be NULL to ignore errors
Returns:
An instance of a NGFileMonitor or NULL in case an error occured (errmsg will be set)
Note:
The NGFileMonitor is an GObject where the event 'changed' can be caught using ng_signal_connect()


Generated on Fri May 8 20:37:22 2009 for NNTPGrab by  1.5.4