1 /** 2 * @file 3 * Monitor files for changes 4 * 5 * @authors 6 * Copyright (C) 2018 Gero Treuner <gero@70t.de> 7 * 8 * @copyright 9 * This program is free software: you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License as published by the Free Software 11 * Foundation, either version 2 of the License, or (at your option) any later 12 * version. 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * details. 18 * 19 * You should have received a copy of the GNU General Public License along with 20 * this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 #ifndef MUTT_MONITOR_H 24 #define MUTT_MONITOR_H 25 26 #include <stdbool.h> 27 28 struct Mailbox; 29 30 extern bool MonitorFilesChanged; ///< true after a monitored file has changed 31 extern bool MonitorContextChanged; ///< true after the current mailbox has changed 32 33 int mutt_monitor_add(struct Mailbox *m); 34 int mutt_monitor_remove(struct Mailbox *m); 35 int mutt_monitor_poll(void); 36 37 #endif /* MUTT_MONITOR_H */ 38