fsevents: improve documentation #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 usablewith this package's API because there is no way to get an
FSEventStreamRef
value because it's hidden inside an unexportedfield inside the
EventStream
struct.Also unexport the
CFRunLoopRef
because it's similarlynot 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.
What does this pull request do?
Where should the reviewer start?
How should this be manually tested?