Home
last modified time | relevance | path

Searched refs:cnnCode (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c156 static int32_t InitConnectionCode(ConnectionCode *cnnCode) in InitConnectionCode() argument
158 if (cnnCode == NULL) { in InitConnectionCode()
162 LnnMapInit(&cnnCode->connectionCode); in InitConnectionCode()
166 static void DeinitConnectionCode(ConnectionCode *cnnCode) in DeinitConnectionCode() argument
168 if (cnnCode == NULL) { in DeinitConnectionCode()
172 LnnMapDelete(&cnnCode->connectionCode); in DeinitConnectionCode()
184 DeinitConnectionCode(&g_distributedNetLedger.cnnCode); in LnnDeinitDistributedLedger()
581 if (LnnMapSet(cnnCode, key, (void *)&seq, sizeof(short)) != SOFTBUS_OK) { in AddCnnCode()
590 static void RemoveCnnCode(Map *cnnCode, const char *uuid, DiscoveryType type) in RemoveCnnCode() argument
597 if (LnnMapErase(cnnCode, key) != SOFTBUS_OK) { in RemoveCnnCode()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_disctributed_net_ledger_test.cpp662 Map cnnCode; variable
666 int32_t ret = AddCnnCode(&cnnCode, nullptr, type, authSeqNum);
668 ret = AddCnnCode(&cnnCode, uuid, type, authSeqNum);
673 short* code = (short *)LnnMapGet(&cnnCode, key);
676 (void)RemoveCnnCode(&cnnCode, nullptr, type);
677 (void)RemoveCnnCode(&cnnCode, uuid, type);
679 code = (short *)LnnMapGet(&cnnCode, key);
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/include/
H A Dlnn_distributed_net_ledger_common.h81 ConnectionCode cnnCode; member