Skip to content

refactor: consolidate adapter headers into umbrella files#600

Merged
kcenon merged 2 commits into
mainfrom
refactor/599-consolidate-adapters
Mar 20, 2026
Merged

refactor: consolidate adapter headers into umbrella files#600
kcenon merged 2 commits into
mainfrom
refactor/599-consolidate-adapters

Conversation

@kcenon

@kcenon kcenon commented Mar 20, 2026

Copy link
Copy Markdown
Owner

What

Consolidates 8 bidirectional adapter files into 3 umbrella headers (common_adapters.h, thread_adapters.h, logger_adapters.h) while maintaining full backward compatibility through existing include paths.

Why

Fixes #599 -- The adapter layer had proliferated into many small files with overlapping concerns (e.g., common_monitor_adapter.h, common_system_adapter.h, monitoring_to_common_adapter.h, common_to_monitoring_adapter.h). Users had to know which specific file to include. Umbrella headers provide a single include point per subsystem.

How

  • Created 3 new umbrella headers:
    • common_adapters.h: Consolidates common_system <-> monitoring_system adapters
    • thread_adapters.h: Consolidates thread_system adapters + backward-compatible thread_system_adapter alias
    • logger_adapters.h: Consolidates logger_system adapters + backward-compatible logger_system_adapter alias
  • Updated legacy headers (common_monitor_adapter.h, common_system_adapter.h, thread_system_adapter.h, logger_system_adapter.h) to include the new umbrella headers
  • CMakeLists.txt: Updated install list to include all adapter headers (umbrella + individual + legacy)
  • CHANGELOG.md: Added entry under "Changed"

Backward Compatibility

Fully backward compatible -- All existing include paths continue to work. The legacy headers now redirect to the umbrella headers. Type aliases (logger_system_adapter, thread_system_adapter) are preserved.

kcenon added 2 commits March 20, 2026 15:01
Create common_adapters.h, thread_adapters.h, and logger_adapters.h
as consolidated entry points. Old per-direction and compatibility
headers now redirect to the new umbrella files, preserving backward
compatibility. Update CMakeLists.txt install rules.
Add changed entry for adapter file consolidation into
umbrella headers.
@kcenon kcenon added priority/medium Medium priority - Important but not urgent type/refactor Code refactoring without functional changes area/core Core architecture and infrastructure labels Mar 20, 2026
@kcenon kcenon merged commit 4b5f069 into main Mar 20, 2026
25 checks passed
@kcenon kcenon deleted the refactor/599-consolidate-adapters branch March 20, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Core architecture and infrastructure priority/medium Medium priority - Important but not urgent type/refactor Code refactoring without functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(adapters): consolidate bidirectional adapter files

1 participant