Line data Source code
1 : /**
2 : * Copyright (c) 2025 Huawei Technologies Co., Ltd.
3 : * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
4 : * CANN Open Software License Agreement Version 2.0 (the "License").
5 : * Please refer to the License for details. You may not use this file except in compliance with the License.
6 : * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
7 : * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 : * See LICENSE in the root of the software repository for the full text of the License.
9 : */
10 :
11 : #include "server/bqs_server.h"
12 :
13 : namespace bqs {
14 :
15 1 : BqsServer::BqsServer()
16 1 : {}
17 :
18 1 : BqsServer::~BqsServer()
19 1 : {}
20 :
21 2 : BqsServer &BqsServer::GetInstance()
22 : {
23 2 : static BqsServer instance;
24 2 : return instance;
25 : }
26 :
27 :
28 : /**
29 : * Bqs server enqueue bind msg request process
30 : * @return NA
31 : */
32 1 : void BqsServer::BindMsgProc()
33 : {
34 1 : BQS_LOG_INFO("BqsServer BindMsgProc begin");
35 1 : BQS_LOG_INFO("BqsServer BindMsgProc end");
36 1 : return;
37 : }
38 :
39 : /**
40 : * Init bqs server, including init easycomm server and bind relation
41 : * @return BQS_STATUS_OK:success other:failed
42 : */
43 1 : BqsStatus BqsServer::InitBqsServer(const std::string &qsInitGrpName, const uint32_t deviceId)
44 : {
45 1 : BQS_LOG_INFO("BqsServer Init begin");
46 1 : BQS_LOG_INFO("BqsServer Init success qsInitGrpName[%s] deviceId[%u]", qsInitGrpName.c_str(), deviceId);
47 1 : return BQS_STATUS_OK;
48 : }
49 : } // namespace bqs
|