A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.1 KiB

  1. /* Copyright 2017 Max Voit
  2. *
  3. * This file is part of sxiv.
  4. *
  5. * sxiv is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published
  7. * by the Free Software Foundation; either version 2 of the License,
  8. * or (at your option) any later version.
  9. *
  10. * sxiv is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef AUTORELOAD_H
  19. #define AUTORELOAD_H
  20. #include "types.h"
  21. void arl_cleanup(void);
  22. void arl_handle(void);
  23. void arl_init(void);
  24. void arl_setup(void);
  25. void arl_setup_dir(void);
  26. typedef struct {
  27. int fd;
  28. int wd;
  29. bool watching_dir;
  30. } autoreload_t;
  31. extern autoreload_t autoreload;
  32. extern int fileidx;
  33. extern fileinfo_t *files;
  34. void load_image(int);
  35. void redraw(void);
  36. #endif /* AUTORELOAD_H */