Skip to content

build: Rename headers with internal json wrappers#47

Merged
tomasz-blasz merged 1 commit intomainfrom
topic/rename-internals
Feb 27, 2026
Merged

build: Rename headers with internal json wrappers#47
tomasz-blasz merged 1 commit intomainfrom
topic/rename-internals

Conversation

@tomasz-blasz
Copy link
Contributor

No description provided.

@tomasz-blasz tomasz-blasz force-pushed the topic/rename-internals branch from ac50c26 to ce78575 Compare February 27, 2026 13:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the internal JSON wrapper headers by renaming them from the jsondata_* naming pattern to a more organized json_types/ directory structure. The changes improve code organization by consolidating all JSON serialization/deserialization wrappers into a single directory with cleaner, module-based naming.

Changes:

  • Renamed JSON wrapper headers from jsondata_*.h to json_types/*.h (e.g., jsondata_device_types.hjson_types/device.h)
  • Updated all include statements across source and test files to use the new header paths
  • Removed redundant include directory from CMakeLists.txt since json_types is now relative to src/

Reviewed changes

Copilot reviewed 15 out of 24 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/unit/deviceTest.cpp Updated include from jsondata_device_types.h to json_types/device.h
test/component/deviceTest.cpp Updated include from jsondata_device_types.h to json_types/device.h
test/api_test_app/apis/lifecycleDemo.cpp Updated include from jsondata_lifecycle_types.h to json_types/lifecycle.h
test/api_test_app/apis/discoveryDemo.cpp Updated include from jsondata_common.h to json_types/common.h
test/api_test_app/apis/deviceDemo.cpp Updated include from jsondata_device_types.h to json_types/device.h
src/texttospeech_impl.cpp Updated include from jsondata_texttospeech_types.h to json_types/texttospeech.h
src/stats_impl.cpp Updated include from jsondata_stats_types.h to json_types/stats.h
src/metrics_impl.cpp Updated includes from jsondata_common.h and jsondata_metrics_types.h to json_types/common.h and json_types/metrics.h
src/lifecycle_impl.cpp Updated include from jsondata_lifecycle_types.h to json_types/lifecycle.h
src/json_types/texttospeech.h New JSON wrapper header for TextToSpeech module with enum and class definitions
src/json_types/stats.h New JSON wrapper header for Stats module
src/json_types/metrics.h New JSON wrapper header for Metrics module
src/json_types/lifecycle.h New JSON wrapper header for Lifecycle module
src/json_types/display.h New JSON wrapper header for Display module
src/json_types/device.h New JSON wrapper header for Device module
src/json_types/common.h New JSON wrapper header for common types
src/json_types/advertising.h New JSON wrapper header for Advertising module
src/json_types/accessibility.h New JSON wrapper header for Accessibility module
src/display_impl.cpp Updated include from jsondata_display_types.h to json_types/display.h
src/discovery_impl.cpp Updated include from jsondata_common.h to json_types/common.h
src/device_impl.cpp Updated include from jsondata_device_types.h to json_types/device.h
src/advertising_impl.cpp Updated include from jsondata_advertising_types.h to json_types/advertising.h
src/accessibility_impl.cpp Updated include from jsondata_accessibility_types.h to json_types/accessibility.h
src/CMakeLists.txt Removed redundant json_types include directory path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tomasz-blasz tomasz-blasz merged commit 7b2a83c into main Feb 27, 2026
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2026
@tomasz-blasz tomasz-blasz deleted the topic/rename-internals branch February 27, 2026 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants