SenseApiMgr: Refcount device spec objects

This commit is contained in:
2025-08-29 09:50:26 -04:00
parent cd63593ae5
commit f3f2384f9b
5 changed files with 42 additions and 25 deletions
+5 -2
View File
@@ -6,14 +6,17 @@
#include <user/senseDeviceSpec.h>
#include <optional>
#include <string>
#include <memory>
namespace smo {
namespace sense_api {
typedef int (sal_mlo_initializeIndFn)(void);
typedef int (sal_mlo_finalizeIndFn)(void);
typedef int (sal_mlo_attachDeviceReqFn)(const device::SenseDeviceSpec &desc);
typedef int (sal_mlo_detachDeviceReqFn)(const device::SenseDeviceSpec &desc);
typedef int (sal_mlo_attachDeviceReqFn)(
const std::shared_ptr<device::SenseDeviceSpec>& desc);
typedef int (sal_mlo_detachDeviceReqFn)(
const std::shared_ptr<device::SenseDeviceSpec>& desc);
/**
* @brief Hooks provided by Salmanoff to senseApi libraries.