This commit is contained in:
flower_linux
2026-05-13 16:46:07 +08:00
commit 90ad86b4d0
52 changed files with 5251 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#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