mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:13:48 +01:00
Add start and stop functions
This commit is contained in:
parent
1dbec870cb
commit
8a003fb4cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user