| 114 | } |
| 115 | |
| 116 | static void notify_change_file(const char *path, Stat &st) |
| 117 | { |
| 118 | TempAllocator512 ta; |
| 119 | StringStream ss(ta); |
| 120 | ss << "{\"type\":\"change_file\""; |
| 121 | ss << ",\"path\":\"" << path << "\""; |
| 122 | ss << ",\"size\":\"" << st.size << "\""; |
| 123 | ss << ",\"mtime\":\"" << st.mtime << "\""; |
| 124 | ss << "}"; |
| 125 | console_server()->broadcast(string_stream::c_str(ss)); |
| 126 | } |
| 127 | |
| 128 | SourceIndex::SourceIndex() |
| 129 | : _paths(default_allocator()) |
no test coverage detected