Commit b6c35ec 1 parent 46f6e1f commit b6c35ec Copy full SHA for b6c35ec
File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,12 @@ qvi_hwpool_dev_s::operator==(
193
193
return m_uuid == x.m_uuid ;
194
194
}
195
195
196
+ qv_hw_obj_type_t
197
+ qvi_hwpool_dev_s::type (void )
198
+ const {
199
+ return m_type;
200
+ }
201
+
196
202
int
197
203
qvi_hwpool_dev_s::id (
198
204
qv_device_id_type_t format,
@@ -388,7 +394,7 @@ qvi_hwpool_s::add_device(
388
394
const qvi_hwpool_dev_s &dev
389
395
) {
390
396
auto shdev = std::make_shared<qvi_hwpool_dev_s>(dev);
391
- m_devs.insert ({dev.m_type , shdev});
397
+ m_devs.insert ({dev.type () , shdev});
392
398
return QV_SUCCESS;
393
399
}
394
400
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ struct qvi_hwpool_cpu_s : qvi_hwpool_res_s {
68
68
* because we only maintain information relevant for user-facing operations.
69
69
*/
70
70
struct qvi_hwpool_dev_s : qvi_hwpool_res_s {
71
- /* * Hardware pools are our friends. */
72
- friend qvi_hwpool_s;
73
71
private:
74
72
/* * Device type. */
75
73
qv_hw_obj_type_t m_type = QV_HW_OBJ_LAST;
@@ -99,6 +97,9 @@ struct qvi_hwpool_dev_s : qvi_hwpool_res_s {
99
97
operator ==(
100
98
const qvi_hwpool_dev_s &x
101
99
) const ;
100
+ /* * Returns the device's type. */
101
+ qv_hw_obj_type_t
102
+ type (void ) const ;
102
103
/* * Returns the device's ID string formatted as specified. */
103
104
int
104
105
id (
You can’t perform that action at this time.
0 commit comments