Skip to content

Commit

Permalink
feat: Rename displaydevice directory to display_device (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog authored Jul 17, 2024
1 parent b693e47 commit 85694e6
Show file tree
Hide file tree
Showing 90 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ endif()
add_subdirectory(platf)

# This is the main library
add_subdirectory(displaydevice)
add_subdirectory(display_device)
4 changes: 2 additions & 2 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set(MODULE libcommon)

# Globing headers (so that they appear in some IDEs) and sources
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/displaydevice/*.h")
file(GLOB HEADER_DETAIL_LIST CONFIGURE_DEPENDS "include/displaydevice/detail/*.h")
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/display_device/*.h")
file(GLOB HEADER_DETAIL_LIST CONFIGURE_DEPENDS "include/display_device/detail/*.h")
file(GLOB SOURCE_LIST CONFIGURE_DEPENDS "*.cpp")

# Automatic library - will be static or dynamic based on user setting
Expand Down
4 changes: 2 additions & 2 deletions src/common/file_settings_persistence.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// class header include
#include "displaydevice/file_settings_persistence.h"
#include "display_device/file_settings_persistence.h"

// system includes
#include <algorithm>
#include <fstream>
#include <iterator>

// local includes
#include "displaydevice/logging.h"
#include "display_device/logging.h"

namespace display_device {
FileSettingsPersistence::FileSettingsPersistence(std::filesystem::path filepath):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/common/json.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// header include
#include "displaydevice/json.h"
#include "display_device/json.h"

// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/detail/json_serializer.h"
#include "displaydevice/detail/json_converter.h"
#include "display_device/detail/json_serializer.h"
#include "display_device/detail/json_converter.h"
// clang-format on

namespace display_device {
Expand Down
4 changes: 2 additions & 2 deletions src/common/json_serializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/types.h"
#include "displaydevice/detail/json_serializer.h"
#include "display_device/types.h"
#include "display_device/detail/json_serializer.h"
// clang-format on

namespace display_device {
Expand Down
2 changes: 1 addition & 1 deletion src/common/logging.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// class header include
#include "displaydevice/logging.h"
#include "display_device/logging.h"

// system includes
#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion src/common/noop_audio_context.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noop_audio_context.h"
#include "display_device/noop_audio_context.h"

namespace display_device {
bool
Expand Down
2 changes: 1 addition & 1 deletion src/common/noop_settings_persistence.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// local includes
#include "displaydevice/noop_settings_persistence.h"
#include "display_device/noop_settings_persistence.h"

namespace display_device {
bool
Expand Down
2 changes: 1 addition & 1 deletion src/common/retry_scheduler.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/retry_scheduler.h"
#include "display_device/retry_scheduler.h"

namespace display_device {
SchedulerStopToken::SchedulerStopToken(std::function<void()> cleanup):
Expand Down
2 changes: 1 addition & 1 deletion src/common/types.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/types.h"
#include "display_device/types.h"

namespace {
bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set(MODULE libdisplaydevice)

# Globing headers (so that they appear in some IDEs) and sources
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/displaydevice/*.h")
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/display_device/*.h")
file(GLOB SOURCE_LIST CONFIGURE_DEPENDS "*.cpp")

# Automatic library - will be static or dynamic based on user setting
Expand Down
6 changes: 6 additions & 0 deletions src/display_device/libddplaceholder.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "display_device/libddplaceholder.h"

int
ddplaceholder() {
return 0;
}
6 changes: 0 additions & 6 deletions src/displaydevice/libddplaceholder.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion src/platf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set(MODULE libplatf)

# Globing headers (so that they appear in some IDEs) and sources
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/displaydevice/*.h")
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/display_device/*.h")
file(GLOB SOURCE_LIST CONFIGURE_DEPENDS "*.cpp")

# Automatic library - will be static or dynamic based on user setting
Expand Down
2 changes: 1 addition & 1 deletion src/platf/libplatfplaceholder.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "displaydevice/libplatfplaceholder.h"
#include "display_device/libplatfplaceholder.h"

int
plaftplaceholder() {
Expand Down
4 changes: 2 additions & 2 deletions src/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set(MODULE libwindows)

# Globing headers (so that they appear in some IDEs) and sources
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/displaydevice/windows/*.h")
file(GLOB HEADER_DETAIL_LIST CONFIGURE_DEPENDS "include/displaydevice/windows/detail/*.h")
file(GLOB HEADER_LIST CONFIGURE_DEPENDS "include/display_device/windows/*.h")
file(GLOB HEADER_DETAIL_LIST CONFIGURE_DEPENDS "include/display_device/windows/detail/*.h")
file(GLOB SOURCE_LIST CONFIGURE_DEPENDS "*.cpp")

# Automatic library - will be static or dynamic based on user setting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "displaydevice/detail/json_serializer.h"
#include "display_device/detail/json_serializer.h"

#ifdef DD_JSON_DETAIL
namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

// local includes
#include "displaydevice/json.h"
#include "display_device/json.h"
#include "types.h"

// Windows' converters (add as needed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <memory>

// local includes
#include "displaydevice/settings_persistence_interface.h"
#include "displaydevice/windows/win_display_device_interface.h"
#include "display_device/settings_persistence_interface.h"
#include "display_device/windows/win_display_device_interface.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#include <memory>

// local includes
#include "displaydevice/audio_context_interface.h"
#include "displaydevice/settings_manager_interface.h"
#include "displaydevice/windows/win_display_device_interface.h"
#include "display_device/audio_context_interface.h"
#include "display_device/settings_manager_interface.h"
#include "display_device/windows/win_display_device_interface.h"
#include "persistent_state.h"

namespace display_device {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <set>

// local includes
#include "displaydevice/types.h"
#include "display_device/types.h"

namespace display_device {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <set>

// local includes
#include "displaydevice/windows/types.h"
#include "display_device/windows/types.h"

namespace display_device {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/windows/json.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// header include
#include "displaydevice/windows/json.h"
#include "display_device/windows/json.h"

// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/windows/detail/json_serializer.h"
#include "displaydevice/detail/json_converter.h"
#include "display_device/windows/detail/json_serializer.h"
#include "display_device/detail/json_converter.h"
// clang-format on

namespace display_device {
Expand Down
4 changes: 2 additions & 2 deletions src/windows/json_serializer.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// special ordered include of details
#define DD_JSON_DETAIL
// clang-format off
#include "displaydevice/windows/types.h"
#include "displaydevice/windows/detail/json_serializer.h"
#include "display_device/windows/types.h"
#include "display_device/windows/detail/json_serializer.h"
// clang-format on

namespace display_device {
Expand Down
8 changes: 4 additions & 4 deletions src/windows/persistent_state.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// class header include
#include "displaydevice/windows/persistent_state.h"
#include "display_device/windows/persistent_state.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/noop_settings_persistence.h"
#include "displaydevice/windows/json.h"
#include "display_device/logging.h"
#include "display_device/noop_settings_persistence.h"
#include "display_device/windows/json.h"

namespace display_device {
PersistentState::PersistentState(std::shared_ptr<SettingsPersistenceInterface> settings_persistence_api, const std::optional<SingleDisplayConfigState> &fallback_state):
Expand Down
8 changes: 4 additions & 4 deletions src/windows/settings_manager_apply.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// class header include
#include "displaydevice/windows/settings_manager.h"
#include "display_device/windows/settings_manager.h"

// system includes
#include <algorithm>
#include <boost/scope/scope_exit.hpp>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/json.h"
#include "displaydevice/windows/settings_utils.h"
#include "display_device/logging.h"
#include "display_device/windows/json.h"
#include "display_device/windows/settings_utils.h"

namespace display_device {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions src/windows/settings_manager_general.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/settings_manager.h"
#include "display_device/windows/settings_manager.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/noop_audio_context.h"
#include "display_device/logging.h"
#include "display_device/noop_audio_context.h"

namespace display_device {
SettingsManager::SettingsManager(
Expand Down
8 changes: 4 additions & 4 deletions src/windows/settings_manager_revert.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// class header include
#include "displaydevice/windows/settings_manager.h"
#include "display_device/windows/settings_manager.h"

// system includes
#include <boost/scope/scope_exit.hpp>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/json.h"
#include "displaydevice/windows/settings_utils.h"
#include "display_device/logging.h"
#include "display_device/windows/json.h"
#include "display_device/windows/settings_utils.h"

namespace display_device {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions src/windows/settings_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// header include
#include "displaydevice/windows/settings_utils.h"
#include "display_device/windows/settings_utils.h"

// system includes
#include <algorithm>
#include <cmath>
#include <thread>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/json.h"
#include "display_device/logging.h"
#include "display_device/windows/json.h"

namespace display_device::win_utils {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion src/windows/types.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// header include
#include "displaydevice/windows/types.h"
#include "display_device/windows/types.h"

namespace display_device {
bool
Expand Down
4 changes: 2 additions & 2 deletions src/windows/win_api_layer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// class header include
#include "displaydevice/windows/win_api_layer.h"
#include "display_device/windows/win_api_layer.h"

// system includes
#include <boost/algorithm/string.hpp>
Expand All @@ -12,7 +12,7 @@
#include <iomanip>

// local includes
#include "displaydevice/logging.h"
#include "display_device/logging.h"

// Windows includes after "windows.h"
#include <SetupApi.h>
Expand Down
4 changes: 2 additions & 2 deletions src/windows/win_api_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// header include
#include "displaydevice/windows/win_api_utils.h"
#include "display_device/windows/win_api_utils.h"

// system includes
#include <unordered_set>

// local includes
#include "displaydevice/logging.h"
#include "display_device/logging.h"

namespace {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/windows/win_display_device_general.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// class header include
#include "displaydevice/windows/win_display_device.h"
#include "display_device/windows/win_display_device.h"

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/win_api_utils.h"
#include "display_device/logging.h"
#include "display_device/windows/win_api_utils.h"

namespace display_device {
WinDisplayDevice::WinDisplayDevice(std::shared_ptr<WinApiLayerInterface> w_api):
Expand Down
6 changes: 3 additions & 3 deletions src/windows/win_display_device_hdr.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// class header include
#include "displaydevice/windows/win_display_device.h"
#include "display_device/windows/win_display_device.h"

// system includes
#include <ranges>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/win_api_utils.h"
#include "display_device/logging.h"
#include "display_device/windows/win_api_utils.h"

namespace display_device {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions src/windows/win_display_device_modes.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// class header include
#include "displaydevice/windows/win_display_device.h"
#include "display_device/windows/win_display_device.h"

// system includes
#include <ranges>

// local includes
#include "displaydevice/logging.h"
#include "displaydevice/windows/win_api_utils.h"
#include "display_device/logging.h"
#include "display_device/windows/win_api_utils.h"

namespace display_device {
namespace {
Expand Down
Loading

0 comments on commit 85694e6

Please sign in to comment.