zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

compat.h (1939B)


      1 /**
      2  * @headerfile compat.h
      3  * FSEventStream flag compatibility shim
      4  *
      5  * In order to compile a binary against an older SDK yet still support the
      6  * features present in later OS releases, we need to define any missing enum
      7  * constants not present in the older SDK. This allows us to safely defer
      8  * feature detection to runtime (and avoid recompilation).
      9  */
     10 
     11 
     12 #ifndef fsevent_watch_compat_h
     13 #define fsevent_watch_compat_h
     14 
     15 #ifndef __CORESERVICES__
     16 #include <CoreServices/CoreServices.h>
     17 #endif // __CORESERVICES__
     18 
     19 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
     20 // ignoring events originating from the current process introduced in 10.6
     21 extern FSEventStreamCreateFlags kFSEventStreamCreateFlagIgnoreSelf;
     22 #endif
     23 
     24 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
     25 // file-level events introduced in 10.7
     26 extern FSEventStreamCreateFlags kFSEventStreamCreateFlagFileEvents;
     27 extern FSEventStreamEventFlags  kFSEventStreamEventFlagItemCreated,
     28                                 kFSEventStreamEventFlagItemRemoved,
     29                                 kFSEventStreamEventFlagItemInodeMetaMod,
     30                                 kFSEventStreamEventFlagItemRenamed,
     31                                 kFSEventStreamEventFlagItemModified,
     32                                 kFSEventStreamEventFlagItemFinderInfoMod,
     33                                 kFSEventStreamEventFlagItemChangeOwner,
     34                                 kFSEventStreamEventFlagItemXattrMod,
     35                                 kFSEventStreamEventFlagItemIsFile,
     36                                 kFSEventStreamEventFlagItemIsDir,
     37                                 kFSEventStreamEventFlagItemIsSymlink;
     38 #endif
     39 
     40 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1090
     41 // marking, rather than ignoring, events originating from the current process introduced in 10.9
     42 extern FSEventStreamCreateFlags kFSEventStreamCreateFlagMarkSelf;
     43 extern FSEventStreamEventFlags  kFSEventStreamEventFlagOwnEvent;
     44 #endif
     45 
     46 
     47 #endif // fsevent_watch_compat_h