Home
last modified time | relevance | path

Searched refs:OptInt (Results 1 – 2 of 2) sorted by relevance

/foundation/communication/dsoftbus/core/authentication/src/
Dauth_session_message.c206 static void OptInt(const JsonObj *json, const char * const key, int *target, int defaultValue) in OptInt() function
717 OptInt(obj, DATA_BUF_SIZE_TAG, &maxBuffSize, PACKET_SIZE); in UnPackVersionByDeviceId()
1150 OptInt(json, NODE_WEIGHT, &info->masterWeight, DEFAULT_NODE_WEIGHT); in UnpackCommon()
1151 OptInt(json, OS_TYPE, &info->deviceInfo.osType, -1); in UnpackCommon()
1159 OptInt(json, NEW_CONN_CAP, (int32_t *)&info->netCapacity, -1); in UnpackCommon()
1163 OptInt(json, WIFI_BUFF_SIZE, &info->wifiBuffSize, DEFAULT_WIFI_BUFF_SIZE); in UnpackCommon()
1164 OptInt(json, BR_BUFF_SIZE, &info->wifiBuffSize, DEFAULT_BR_BUFF_SIZE); in UnpackCommon()
1177 OptInt(json, P2P_ROLE, &info->p2pInfo.p2pRole, -1); in UnpackCommon()
1180 OptInt(json, STA_FREQUENCY, &info->p2pInfo.staFrequency, -1); in UnpackCommon()
1279 OptInt(json, STATE_VERSION, &info->stateVersion, 0); in UnpackBt()
[all …]
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
Dauth_session_message_test.cpp85 OptInt(json, P2P_ROLE, &val, 0);
87 OptInt(json, SOFTBUS_VERSION_TAG, &val, 0);