diff --git a/zathura/file-monitor.c b/zathura/file-monitor.c index 6de9bc4..4ef9eee 100644 --- a/zathura/file-monitor.c +++ b/zathura/file-monitor.c @@ -118,6 +118,16 @@ const char* zathura_filemonitor_get_filepath(ZathuraFileMonitor* file_monitor) 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* zathura_filemonitor_new(const char* file_path, zathura_filemonitor_type_t filemonitor_type) diff --git a/zathura/file-monitor.h b/zathura/file-monitor.h index ba1e73d..1c056bc 100644 --- a/zathura/file-monitor.h +++ b/zathura/file-monitor.h @@ -76,4 +76,14 @@ zathura_filemonitor_new(const char* file_path, */ 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