Files
soft_bus_edge/src/device_bus/manager/SerialDeviceManager.h
flower_linux 90ad86b4d0 init
2026-05-13 16:46:07 +08:00

33 lines
967 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
// 与 softbus_daemon 同源布局;边缘侧去掉 Registry / Egress / Pipeline仅保留串口 + IIngressPort。
#include <functional>
#include <memory>
#include <QHash>
#include <QJsonObject>
#include <QSharedPointer>
#include <QString>
#include "core/memory/MemoryPool.h"
#include "devices/physical/SerialDevice.h"
#include "message_bus/ingress/IIngressPort.h"
class DeviceTreeModel;
namespace softbus::device_bus::manager
{
struct SerialInitDeps
{
DeviceTreeModel* treeModel{nullptr};
std::function<void()> dirtyCb;
softbus::message_bus::ingress::IIngressPort* ingressPort{nullptr};
std::shared_ptr<softbus::core::memory::MemoryPool> memoryPool;
QHash<QString, QSharedPointer<softbus::devices::physical::SerialDevice>>* serialDevicesByEndpoint{nullptr};
};
bool initializeSerialDeviceWithDeps(const QString& endpoint, const QJsonObject& params, const SerialInitDeps& deps);
} // namespace softbus::device_bus::manager