Add start and stop functions

This commit is contained in:
Sebastian Ramacher 2018-01-29 00:04:19 +01:00
parent 1dbec870cb
commit 8a003fb4cd
2 changed files with 20 additions and 0 deletions

View File

@ -118,6 +118,16 @@ const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor)
return private->file_path; return private->file_path;
} }
void zathura_filemonitor_start(ZathuraFileMonitor* file_monitor)
{
ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->start(file_monitor);
}
void zathura_filemonitor_stop(ZathuraFileMonitor* file_monitor)
{
ZATHURA_FILEMONITOR_GET_CLASS(file_monitor)->stop(file_monitor);
}
ZathuraFileMonitor* ZathuraFileMonitor*
zathura_filemonitor_new(const char* file_path, zathura_filemonitor_new(const char* file_path,
zathura_filemonitor_type_t filemonitor_type) zathura_filemonitor_type_t filemonitor_type)

View File

@ -76,4 +76,14 @@ zathura_filemonitor_new(const char* file_path,
*/ */
const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor); const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor);
/**
* Start file monitor.
*/
void zathura_filemonitor_start(ZathuraFileMonitor* file_monitor);
/**
* Stop file monitor.
*/
void zathura_filemonitor_stop(ZathuraFileMonitor* file_monitor);
#endif #endif