Branch: Tag:

2012-07-11

2012-07-11 07:10:19 by Bill Welliver <bill@welliver.org>

System.FSEvents: Some minor CMOD reorganization and a Blocking example.

244:       if(THIS->isRunning)    { -  Pike_error("monitor is already running.\n"); +  Pike_error("EventStream: monitor is already running.\n");    }    -  +  if(!THIS->_paths) +  Pike_error("EventStream: no paths.\n"); +  +  if(!THIS->_sinceWhen) +  Pike_error("EventStream: no startdate.\n"); +  +  if(!THIS->_latency) +  Pike_error("EventStream: no latency.\n"); +     if(CFArrayGetCount(THIS->_paths))    {    THIS->runLoop = CFRunLoopGetCurrent();
258:    context.release = NULL;    context.copyDescription = NULL;    -  if(!THIS->_paths) -  Pike_error("no paths.\n"); -  -  if(!THIS->_sinceWhen) -  Pike_error("no startdate.\n"); -  -  if(!THIS->_latency) -  Pike_error("no latency.\n"); -  +     THIS->stream = FSEventStreamCreate(kCFAllocatorDefault,    &event_callback,    &context,
283:    }    else    { -  Pike_error("No paths registered for monitoring.\n"); +  Pike_error("EventStream: No paths registered for monitoring.\n");    }   }