Commit 8a003fb4 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add start and stop functions

parent 1dbec870
......@@ -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)
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment