bool start(FileWatcher *watcher) { #ifndef DEBUG if (watcher->sdkVersion < 24) #endif addWatches(watcher); processInotifyEvent(watcher); return destroyWatches(watcher); }
void System::setWorld(World *world) { _world = world; diana_createSystem(world->getDiana(), _name.c_str(), _system_starting, _system_process, _system_ending, _system_subscribed, _system_unsubscribed, this, systemFlags(), &_id); addWatches(); }