Skip to content

Commit

Permalink
move context.h and device-factory.h into rscore
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Oct 14, 2023
1 parent 91b3814 commit 0f7a0a9
Show file tree
Hide file tree
Showing 17 changed files with 14 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ target_sources(${LRS_TARGET}
"${CMAKE_CURRENT_LIST_DIR}/device.cpp"
"${CMAKE_CURRENT_LIST_DIR}/device-info.cpp"
"${CMAKE_CURRENT_LIST_DIR}/device_hub.cpp"
"${CMAKE_CURRENT_LIST_DIR}/rscore/device-factory.h"
"${CMAKE_CURRENT_LIST_DIR}/environment.cpp"
"${CMAKE_CURRENT_LIST_DIR}/error-handling.cpp"
"${CMAKE_CURRENT_LIST_DIR}/firmware_logger_device.cpp"
Expand Down Expand Up @@ -118,7 +117,6 @@ target_sources(${LRS_TARGET}
"${CMAKE_CURRENT_LIST_DIR}/core/time-service.h"
"${CMAKE_CURRENT_LIST_DIR}/platform/uvc-device.h"
"${CMAKE_CURRENT_LIST_DIR}/platform/uvc-device-info.h"
"${CMAKE_CURRENT_LIST_DIR}/context.h"
"${CMAKE_CURRENT_LIST_DIR}/device.h"
"${CMAKE_CURRENT_LIST_DIR}/device-info.h"
"${CMAKE_CURRENT_LIST_DIR}/device_hub.h"
Expand Down
2 changes: 1 addition & 1 deletion src/backend-device-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.

#include "backend-device-factory.h"
#include "context.h"
#include <rscore/context.h>
#include "backend.h"
#include "platform/platform-device-info.h"
#include "platform/device-watcher.h"
Expand Down
2 changes: 1 addition & 1 deletion src/context.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.

#include "context.h"
#include <rscore/context.h>
#include "device-info.h"

#include "backend-device-factory.h"
Expand Down
1 change: 0 additions & 1 deletion src/dds/rs-dds-device-info.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include <src/context.h>
#include <src/device-info.h>

#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/dds/rsdds-device-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.

#include "rsdds-device-factory.h"
#include "context.h"
#include <rscore/context.h>
#include "rs-dds-device-info.h"

#include <librealsense2/h/rs_context.h> // RS2_PRODUCT_LINE_...
Expand Down
2 changes: 1 addition & 1 deletion src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "core/motion.h"
#include "core/frame-holder.h"
#include "sync.h"
#include "context.h" // rs2_device_info
#include <rscore/context.h> // rs2_device_info

#include <rsutils/string/from.h>
#include <rsutils/json.h>
Expand Down
2 changes: 2 additions & 0 deletions src/device_hub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "core/processing.h"
#include "proc/synthetic-stream.h"
#include "device_hub.h"
#include <rscore/context.h>


namespace librealsense
{
Expand Down
3 changes: 2 additions & 1 deletion src/device_hub.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#pragma once

#include "context.h"
#include "device.h"
#include <librealsense2/h/rs_context.h> // RS2_PRODUCT_LINE_...

Expand All @@ -16,6 +15,8 @@

namespace librealsense
{
class context;

/**
* device_hub class - encapsulate the handling of connect and disconnect events
*/
Expand Down
1 change: 0 additions & 1 deletion src/fw-update/fw-update-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "fw-update-device.h"
#include "../types.h"
#include "../context.h"
#include "../device-info.h"
#include "ds/d400/d400-private.h"

Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "pipeline.h"
#include "platform/platform-device-info.h"
#include "media/playback/playback-device-info.h"
#include "context.h"
#include <rscore/context.h>


namespace librealsense
Expand Down
5 changes: 2 additions & 3 deletions src/proc/colorizer.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.

#include "../include/librealsense2/hpp/rs_sensor.hpp"
#include "../include/librealsense2/hpp/rs_processing.hpp"
#include <librealsense2/hpp/rs_sensor.hpp>
#include <librealsense2/hpp/rs_processing.hpp>

#include "proc/synthetic-stream.h"
#include "context.h"
#include "environment.h"
#include "option.h"
#include "colorizer.h"
Expand Down
5 changes: 2 additions & 3 deletions src/proc/rotation-transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

#include "rotation-transform.h"

#include "../include/librealsense2/hpp/rs_sensor.hpp"
#include "../include/librealsense2/hpp/rs_processing.hpp"
#include "context.h"
#include <librealsense2/hpp/rs_sensor.hpp>
#include <librealsense2/hpp/rs_processing.hpp>
#include "image.h"
#include "stream.h"

Expand Down
1 change: 0 additions & 1 deletion src/proc/threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <src/core/depth-frame.h>
#include "proc/synthetic-stream.h"
#include "context.h"
#include "environment.h"
#include "option.h"
#include "threshold.h"
Expand Down
2 changes: 1 addition & 1 deletion src/rs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "api.h"
#include "log.h"
#include "context.h"
#include <rscore/context.h>
#include "device.h"
#include "algo.h"
#include "core/debug.h"
Expand Down
1 change: 0 additions & 1 deletion src/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "core/video.h"
#include "core/motion.h"
#include "core/stream-profile.h"
#include "context.h"
#include "image.h"
#include "environment.h"
#include "platform/stream-profile.h"
Expand Down

0 comments on commit 0f7a0a9

Please sign in to comment.