How to create an observer using fsevents in mac osx 10.6

I am trying to get file event notifications using the fsevents.h file.

I work with Mac OS X 10.6 and Xcode 3.1.4, in which I found fsevents.h in the following four places

  • /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/FSEvents.h
  • /Xcode3.1.4/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
  • /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
  • /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers

I have the following problems accessing fsevents.h

1) Of the above four places that should be included, since fsevents are not included, if I did not include the following include syntax include <../../../../ Developer / SDKs / MacOSX10.6.sdk / System / Library /Frames/CoreServices.framework/Versions/A/Frames/CarbonCore.framework/Versions/A/Headers/fsevents.h>

2) Where can I find the definition of a function whose prototypes are declared in fsevents.h using the keyword "extern"

+3
source share
1 answer

Source: https://habr.com/ru/post/1743957/