A Simple X Image Viewer
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

37 řádky
999 B

  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. typedef struct {
  22. int fd;
  23. int wd_dir;
  24. int wd_file;
  25. char *filename;
  26. } arl_t;
  27. void arl_init(arl_t*);
  28. void arl_cleanup(arl_t*);
  29. void arl_setup(arl_t*, const char* /* result of realpath(3) */);
  30. bool arl_handle(arl_t*);
  31. #endif /* AUTORELOAD_H */