TimerFileWatcher.h 728 B

12345678910111213141516171819202122232425
  1. #ifndef INCLUDED_TIMER_FILE_WATCHER_H
  2. #define INCLUDED_TIMER_FILE_WATCHER_H
  3. #include <glib-object.h>
  4. G_BEGIN_DECLS
  5. #define TIMER_TYPE_FILE_WATCHER timer_file_watcher_get_type()
  6. G_DECLARE_FINAL_TYPE(TimerFileWatcher, timer_file_watcher, TIMER, FILE_WATCHER, GObject);
  7. TimerFileWatcher *timer_file_watcher_new(const char *path);
  8. const char *timer_file_watcher_get_path(TimerFileWatcher *self);
  9. void timer_file_watcher_pause(TimerFileWatcher *self);
  10. /* update: if true, call update action if file was changed, else just resume */
  11. void timer_file_watcher_resume(TimerFileWatcher *self, gboolean update);
  12. gboolean timer_file_watcher_is_paused(TimerFileWatcher *self);
  13. G_END_DECLS
  14. #endif /* INCLUDED_TIMER_FILE_WATCHER_H */