Skip to content

Devinfo - #12141

Merged
maloel merged 5 commits into
realsenseai:developmentfrom
maloel:devinfo
Aug 30, 2023
Merged

Devinfo#12141
maloel merged 5 commits into
realsenseai:developmentfrom
maloel:devinfo

Conversation

@maloel

@maloel maloel commented Aug 28, 2023 •

Copy link
Copy Markdown
Contributor

The whole point of this is to separate out the platform-specific (backend_device_group) from the base device_interface defined in the core. device_info played a minor role before, but is now much more central to a device.

To that end, I also split backend.h into multiple smaller files in a platform/ folder.

Lots of files, but most changes are in includes.

Tracked on [LRS-885]

@dmipx

dmipx commented Aug 28, 2023

Copy link
Copy Markdown

Small change?
134 files affected...

#include "device_watcher.h"
#include <vector>
#include <sstream>
#include <jni.h>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why was this removed?
No impact on android? (we do not build it in our CI)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We build it in GHA, which is where I saw things fail until I fixed these include.
I don't remember why jni.h is needed or why I removed, but it compiled without it so there doesn't seem to be a dependency in this .cpp...

Comment thread src/platform/backend-device-group.h Outdated
@@ -0,0 +1,135 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Consider updating to 2023, it's a new file

@maloel maloel Aug 30, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed here in one other spot

@maloel
maloel merged commit 074c175 into realsenseai:development Aug 30, 2023
@maloel
maloel deleted the devinfo branch August 30, 2023 05:22
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.

3 participants