| 78 | static volatile bool _quit = false; |
| 79 | |
| 80 | static void notify_add_file(const char *path, Stat &st) |
| 81 | { |
| 82 | TempAllocator512 ta; |
| 83 | StringStream ss(ta); |
| 84 | ss << "{\"type\":\"add_file\""; |
| 85 | ss << ",\"path\":\"" << path << "\""; |
| 86 | ss << ",\"size\":\"" << st.size << "\""; |
| 87 | ss << ",\"mtime\":\"" << st.mtime << "\""; |
| 88 | ss << "}"; |
| 89 | console_server()->broadcast(string_stream::c_str(ss)); |
| 90 | } |
| 91 | |
| 92 | static void notify_remove_file(const char *path) |
| 93 | { |
no test coverage detected