Skip to content

[REFACTOR] Clarify public vs internal buffer APIs#317

Merged
kcenon merged 2 commits into
mainfrom
refactor/clarify-buffer-apis
Jan 3, 2026
Merged

[REFACTOR] Clarify public vs internal buffer APIs#317
kcenon merged 2 commits into
mainfrom
refactor/clarify-buffer-apis

Conversation

@kcenon

@kcenon kcenon commented Jan 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Added clear documentation distinguishing public vs internal buffer APIs
  • Enhanced internal API headers with warnings and C++20 module migration notes
  • Added @public tags to public API headers for clear API boundaries
  • Prepared buffer layer for C++20 module partitioning

Changes

Public API Headers (include/)

  • thread_local_buffer.h - Added @public documentation and module migration notes
  • time_series_buffer.h - Added @public documentation and module migration notes
  • socket_buffer_collector.h - Added @public documentation and module migration notes

Internal API Headers (src/utils/)

  • ring_buffer.h - Enhanced @internal documentation with warnings
  • buffering_strategy.h - Enhanced @internal documentation with warnings
  • buffer_manager.h - Enhanced @internal documentation with warnings

Documentation

  • Updated CHANGELOG.md with changes
  • Updated CHANGELOG_KO.md with changes

Test plan

  • Build passes on all platforms
  • All 49 tests pass
  • No breaking changes to public API
  • Internal API documentation clearly warns against direct use

Closes #313

kcenon added 2 commits January 3, 2026 18:09
- Add @public tags to public API headers (thread_local_buffer.h,
  time_series_buffer.h, socket_buffer_collector.h)
- Enhance @internal documentation in internal headers (ring_buffer.h,
  buffering_strategy.h, buffer_manager.h)
- Add C++20 module migration notes to all buffer headers
- Add warning messages to prevent direct use of internal APIs

Part of #313
Update CHANGELOG.md and CHANGELOG_KO.md with #313 changes:
- Document public/internal API documentation additions
- Document C++20 module migration notes
- Document buffer layer preparation for module partitioning

Part of #313
@kcenon kcenon merged commit 5d4d54c into main Jan 3, 2026
21 checks passed
@kcenon kcenon deleted the refactor/clarify-buffer-apis branch January 3, 2026 09:25
kcenon added a commit that referenced this pull request Apr 13, 2026
* docs(buffer): add public/internal API documentation to buffer headers

- Add @public tags to public API headers (thread_local_buffer.h,
  time_series_buffer.h, socket_buffer_collector.h)
- Enhance @internal documentation in internal headers (ring_buffer.h,
  buffering_strategy.h, buffer_manager.h)
- Add C++20 module migration notes to all buffer headers
- Add warning messages to prevent direct use of internal APIs

Part of #313

* docs(changelog): add buffer API clarification changes

Update CHANGELOG.md and CHANGELOG_KO.md with #313 changes:
- Document public/internal API documentation additions
- Document C++20 module migration notes
- Document buffer layer preparation for module partitioning

Part of #313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Clarify public vs internal buffer APIs

1 participant