Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

make most headers private #622

Merged
merged 4 commits into from
Dec 4, 2014
Merged

make most headers private #622

merged 4 commits into from
Dec 4, 2014

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented Dec 4, 2014

Only a small subset of headers should be publicly accessible -- those that form the public API for mapbox-gl-native. Everything else should live in src. Where necessary we should add forward declarations or use the pimpl idiom to hide implementation details and avoid public headers including private headers.

@ljbade
Copy link
Contributor

ljbade commented Nov 21, 2014

What do we consider the 'public' API? Just Map and any classes needed for it's public functions (from the first block with comments, assuming the second uncommented public block is for internal use only).

@jfirebaugh
Copy link
Contributor Author

Off the top of my head: Map, View, style-related stuff, and basic geo stuff like LatLng.

jfirebaugh added a commit that referenced this pull request Nov 27, 2014
It was an attempt to obtain runtime libuv version independence
that turned out to be impossible.

More thorough header privatization is tracked in #622
kkaefer added a commit that referenced this pull request Dec 4, 2014
@kkaefer kkaefer merged commit 22f02ac into master Dec 4, 2014
@kkaefer kkaefer deleted the private-headers branch December 4, 2014 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants