comparison src/fswatcher.cpp @ 699:646e48a0d3a5

Some work on macOS packaging
author Chris Cannam
date Tue, 11 Dec 2018 16:40:57 +0000
parents a03264984ef8
children f1dc72b940d5
comparison
equal deleted inserted replaced
698:52b8a499f379 699:646e48a0d3a5
142 #endif 142 #endif
143 } 143 }
144 144
145 #ifdef Q_OS_MAC 145 #ifdef Q_OS_MAC
146 static void 146 static void
147 fsEventsCallback(ConstFSEventStreamRef streamRef, 147 fsEventsCallback(ConstFSEventStreamRef /* streamRef */,
148 void *clientCallBackInfo, 148 void *clientCallBackInfo,
149 size_t numEvents, 149 size_t numEvents,
150 void *paths, 150 void *paths,
151 const FSEventStreamEventFlags eventFlags[], 151 const FSEventStreamEventFlags /* eventFlags */[],
152 const FSEventStreamEventId eventIDs[]) 152 const FSEventStreamEventId /*eventIDs */[])
153 { 153 {
154 FsWatcher *watcher = reinterpret_cast<FsWatcher *>(clientCallBackInfo); 154 FsWatcher *watcher = reinterpret_cast<FsWatcher *>(clientCallBackInfo);
155 const char *const *cpaths = reinterpret_cast<const char *const *>(paths); 155 const char *const *cpaths = reinterpret_cast<const char *const *>(paths);
156 for (size_t i = 0; i < numEvents; ++i) { 156 for (size_t i = 0; i < numEvents; ++i) {
157 #ifdef DEBUG_FSWATCHER 157 #ifdef DEBUG_FSWATCHER