-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsevents: improve documentation (#52)
This PR adds comprehensive doc comments to all exported constants, mostly derived from the Apple documentation but with changes to make them directly relevant to this package's API. It also uses C constants directly rather than relying on an implicit association between `1<<iota` and the actual enum values. It also unexports `GetStreamRefPaths`, `GetStreamRefDescription` and `GetStreamRefDeviceID` because none of them are usable with this package's API because there is no way to get an `FSEventStreamRef` value because it's hidden inside an unexported field inside the `EventStream` struct. Also unexport the `CFRunLoopRef` because it's similarly not useful or usable. Other than the above unexports, the API remains identical. Unfortunately I am unable to get the tests to pass, which makes me think that something is wrong somewhere, but that applies to the original code too, not just the code with these changes applied.
- Loading branch information
Showing
4 changed files
with
278 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.