summaryrefslogtreecommitdiffstats
path: root/autoreload_nop.c
AgeCommit message (Collapse)Author
2021-09-16Rename, Update Docs and Prepare for Release (#9)Berke Kocaoğlu
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Arthur Williams <taaparthur@gmail.com> Co-authored-by: eylles <ed.ylles1997@gmail.com>
2017-12-13Fix autoreload-nop accidentally selecting on stdinLeonardo Taccari
When sxiv is built with AUTORELOAD=nop if something is feed via stdin it will start to infinitely call select() leading to a 100% CPU usage. Thanks to @sdx23 for helping in analyzing that problem! Fixes issue #297.
2017-10-16One header file for type definitions and function declarationsBert Münnich
2017-05-17Adapt inotify_nop to API changesBert Münnich
2017-05-17Revised autoreload interfaceBert Münnich
Make the header only contain the public interface and nothing from the implementation. All functions get a handle to their self object, like the img_ and tns_ and win_ functions. All necessary data (file path) is also passed as an argument, so that no extern redeclarations are needed. Make arl_setup_dir() private, it's not called outside the module. Make arl_handle() return true if the file has changed, so that the reloading of the file can be done by the caller.
2017-05-17Add autoreload support by inotify (and dummy backend nop)Max Voit