!8353 refactor: 归一重构软总线DFX框架

Merge pull request !8353 from Zhangchunxin/refactor_dfx_gn
This commit is contained in:
openharmony_ci 2024-11-13 09:40:48 +00:00 committed by Gitee
commit b1a6bc9a31
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
837 changed files with 2079 additions and 2460 deletions

View File

@ -94,14 +94,12 @@ tests/core/common/ zhusiyuan2@huawei.com
interfaces/kits/common/softbus_common.h zhusiyuan2@huawei.com
[DFX]
adapter/common/dfx/ zhusiyuan2@huawei.com
core/common/dfx/ zhusiyuan2@huawei.com
tests/core/common/dfx zhusiyuan2@huawei.com
dfx/ zhusiyuan2@huawei.com
tests/dfx zhusiyuan2@huawei.com
[DFXInterface]
hisysevent.yaml litongxin3@huawei.com
interfaces/kits/common/softbus_error_code.h litongxin3@huawei.com
core/common/dfx/interface litongxin3@huawei.com
[Framework]
core/frame/ zhangfengxi@huawei.com

View File

@ -11,7 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("../core/common/dfx/dsoftbus_dfx.gni")
import("../dsoftbus.gni")
dsoftbus_root_path = ".."
@ -45,7 +44,7 @@ if (defined(ohos_lite)) {
}
common_include = [
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_dfx_path/interface/include",
"$dsoftbus_root_path/interfaces/kits",
"$dsoftbus_root_path/interfaces/kits/common",
]
@ -78,8 +77,8 @@ if (defined(ohos_lite)) {
cflags = [ "-Wall" ]
}
sources = [
"$softbus_adapter_common/dfx/softbus_adapter_hisysevent_mini.c",
"$softbus_adapter_common/dfx/softbus_adapter_hitrace_virtual.c",
"$dsoftbus_dfx_path/event/legacy/softbus_adapter_hisysevent_mini.c",
"$dsoftbus_dfx_path/trace/legacy/softbus_adapter_hitrace_virtual.c",
"$softbus_adapter_common/kernel/liteos_m/lnn_ip_utils_adapter.c",
"$softbus_adapter_common/kernel/liteos_m/softbus_adapter_file.c",
"$softbus_adapter_common/kernel/liteos_m/softbus_adapter_mem.c",
@ -100,8 +99,8 @@ if (defined(ohos_lite)) {
external_deps += [ "json:nlohmann_json_static" ]
sources = []
sources = [
"$softbus_adapter_common/dfx/softbus_adapter_hisysevent_mini.c",
"$softbus_adapter_common/dfx/softbus_adapter_hitrace_virtual.c",
"$dsoftbus_dfx_path/event/legacy/softbus_adapter_hisysevent_mini.c",
"$dsoftbus_dfx_path/trace/legacy/softbus_adapter_hitrace_virtual.c",
"$softbus_adapter_common/json/nlohmann/softbus_adapter_json.cpp",
"$softbus_adapter_common/kernel/liteos_m/lnn_ip_utils_adapter.c",
"$softbus_adapter_common/kernel/liteos_m/softbus_adapter_mem.c",
@ -122,8 +121,7 @@ if (defined(ohos_lite)) {
}
deps = [
"$dsoftbus_dfx_path/event:softbus_dfx_event",
"$dsoftbus_dfx_path/log:softbus_dfx_log",
"$dsoftbus_dfx_path:softbus_dfx",
"$hilog_lite_deps_path",
]
@ -154,8 +152,8 @@ if (defined(ohos_lite)) {
]
cflags_cc = [ "-fPIC" ]
sources = [
"$softbus_adapter_common/dfx/softbus_adapter_hisysevent_mini.c",
"$softbus_adapter_common/dfx/softbus_adapter_hitrace_virtual.c",
"$dsoftbus_dfx_path/event/legacy/softbus_adapter_hisysevent_mini.c",
"$dsoftbus_dfx_path/trace/legacy/softbus_adapter_hitrace_virtual.c",
"$softbus_adapter_common/json/nlohmann/softbus_adapter_json.cpp",
"$softbus_adapter_common/kernel/posix/lnn_ip_utils_adapter.c",
"$softbus_adapter_common/kernel/posix/softbus_adapter_file.c",
@ -175,8 +173,7 @@ if (defined(ohos_lite)) {
}
deps = [
"$dsoftbus_dfx_path/event:softbus_dfx_event",
"$dsoftbus_dfx_path/log:softbus_dfx_log",
"$dsoftbus_dfx_path:softbus_dfx",
"$hilog_lite_deps_path",
]
external_deps = [
@ -207,7 +204,7 @@ if (defined(ohos_lite)) {
"$softbus_adapter_common/include",
"$softbus_adapter_common/include/OS_adapter_define/linux",
"$dsoftbus_feature_product_config_path/spec_config",
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_dfx_path/interface/include",
"$dsoftbus_root_path/core/common/include",
]
}
@ -224,7 +221,7 @@ if (defined(ohos_lite)) {
branch_protector_ret = "pac_ret"
include_dirs = [
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_dfx_path/interface/include",
"$dsoftbus_root_path/interfaces/kits",
"$dsoftbus_root_path/interfaces/kits/common",
]
@ -236,8 +233,8 @@ if (defined(ohos_lite)) {
]
}
sources = [
"$softbus_adapter_common/dfx/softbus_adapter_hisysevent.cpp",
"$softbus_adapter_common/dfx/softbus_adapter_hitrace.c",
"$dsoftbus_dfx_path/event/legacy/softbus_adapter_hisysevent.cpp",
"$dsoftbus_dfx_path/trace/legacy/softbus_adapter_hitrace.c",
"$softbus_adapter_common/json/nlohmann/softbus_adapter_json.cpp",
"$softbus_adapter_common/kernel/posix/lnn_ip_utils_adapter.c",
"$softbus_adapter_common/kernel/posix/softbus_adapter_file.c",
@ -255,10 +252,7 @@ if (defined(ohos_lite)) {
[ "$softbus_adapter_config/spec_config/softbus_config_adapter.c" ]
}
public_deps = [
"$dsoftbus_dfx_path/event:softbus_dfx_event",
"$dsoftbus_dfx_path/log:softbus_dfx_log",
]
public_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ]
public_external_deps = [
"bounds_checking_function:libsec_shared",
"json:nlohmann_json_static",

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitBootEventMonitorImpl(void)
{

View File

@ -11,7 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("../../../core/common/dfx/dsoftbus_dfx.gni")
import("../../../dsoftbus.gni")
adapter_bus_center_path = "$softbus_adapter_common/bus_center"
@ -19,10 +18,9 @@ adapter_bus_center_path = "$softbus_adapter_common/bus_center"
bus_center_adapter_src = []
bus_center_adapter_inc = [
"$softbus_adapter_common/bus_center/include",
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_dfx_path/interface/include",
]
bus_center_adapter_deps =
[ "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log" ]
bus_center_adapter_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ]
if (!defined(global_parts_info) ||
defined(global_parts_info.notification_common_event_service)) {
@ -146,11 +144,10 @@ if (dsoftbus_feature_lnn_net) {
[ "$adapter_bus_center_path/network/lnn_bt_monitor.c" ]
bus_center_adapter_inc += [
"$softbus_adapter_common/net/bluetooth/include",
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_dfx_path/interface/include",
]
bus_center_adapter_external_deps += [ "wifi:wifi_sdk" ]
bus_center_adapter_deps +=
[ "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log" ]
bus_center_adapter_deps += [ "$dsoftbus_dfx_path:softbus_dfx" ]
} else {
bus_center_adapter_src +=
[ "$adapter_bus_center_path/network/lnn_bt_monitor_virtual.c" ]

View File

@ -31,7 +31,7 @@
#include "power_mgr_client.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static const int32_t DELAY_LEN = 1000;
static const int32_t RETRY_MAX = 20;

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitCommonEventMonitorImpl(void)
{

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitDriverMonitorImpl(void)
{

View File

@ -15,7 +15,7 @@
#include "lnn_driver_request.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnSendCmdToDriver(int32_t moduleId, const uint8_t *cmd, uint32_t cmdLen,
uint8_t *reply, uint32_t replyLen)

View File

@ -25,7 +25,7 @@
#include "lnn_network_manager.h"
#include "message_handler.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define DRIVER_SERVICE_NAME "hdf_dsoftbus"
#define NETIF_NAME_LENGTH 16

View File

@ -20,7 +20,7 @@
#include <securec.h>
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define DRIVER_SERVICE_NAME "hdf_dsoftbus"

View File

@ -23,7 +23,7 @@
#include "softbus_adapter_bt_common.h"
#include "softbus_adapter_mem.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
static int32_t g_btStateListenerId = -1;

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitBtStateMonitorImpl(void)
{

View File

@ -32,7 +32,7 @@
#include "softbus_adapter_errcode.h"
#include "softbus_adapter_socket.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define NETLINK_BUF_LEN 1024

View File

@ -18,7 +18,7 @@
#include "bus_center_event.h"
#include "lnn_log.h"
#include "lwip/netif.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define LWIP_NSC_IPSTATUS_CHANGE 0xf0

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitLwipMonitorImpl(void)
{

View File

@ -40,7 +40,7 @@
#include "softbus_base_listener.h"
#include "softbus_socket.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#undef NLMSG_OK
#define NLMSG_OK(nlh, len) \

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitNetlinkMonitorImpl(void)
{

View File

@ -31,7 +31,7 @@
#include "softbus_adapter_thread.h"
#include "softbus_bus_center.h"
#include "softbus_config_type.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
namespace OHOS {
namespace LnnNetManager {

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitNetManagerMonitorImpl(void)
{

View File

@ -17,7 +17,7 @@
#include "bus_center_event.h"
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "hdf_io_service_if.h"
#define HISYSLINK_SERVICE_NAME "hisyslink_service"

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitProductMonitorImpl(void)
{

View File

@ -27,7 +27,7 @@
#include "want.h"
#include "wifi_msg.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "kits/c/wifi_p2p.h"
#include "wifi_ap_msg.h"
#include "softbus_wifi_api_adapter.h"

View File

@ -15,7 +15,7 @@
#include "lnn_event_monitor_impl.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitWifiServiceMonitorImpl(void)
{

View File

@ -26,7 +26,7 @@
#include <string.h>
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#ifdef __cplusplus
extern "C" {

View File

@ -18,7 +18,7 @@
#include "cmsis_os2.h"
#include "comm_log.h"
#include "softbus_adapter_errcode.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "utils_file.h"
int32_t SoftBusReadFile(int32_t fd, void *readBuf, uint32_t maxLen)

View File

@ -19,7 +19,7 @@
#include <time.h>
#include "cmsis_os2.h"
#include "comm_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define MS_PER_SECOND 1000
#define US_PER_MSECOND 1000

View File

@ -24,7 +24,7 @@
#include "comm_log.h"
#include "softbus_adapter_errcode.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static int32_t SoftBusCreateFile(const char *fileName)
{

View File

@ -24,7 +24,7 @@
#include <string.h>
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static pthread_mutex_t g_adapterStaticLock = PTHREAD_MUTEX_INITIALIZER;
/* mutex */

View File

@ -29,7 +29,7 @@
#include "comm_log.h"
#include "securec.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define MS_PER_SECOND 1000
#define US_PER_MSECOND 1000

View File

@ -26,7 +26,7 @@
#include "mbedtls/md.h"
#include "mbedtls/platform.h"
#include "softbus_adapter_file.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#ifndef MBEDTLS_CTR_DRBG_C
#define MBEDTLS_CTR_DRBG_C

View File

@ -14,7 +14,7 @@
*/
#include "softbus_aes_encrypt.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t SoftBusGenerateHmacHash(
const EncryptKey *randomKey, const uint8_t *rootKey, uint32_t rootKeyLen, uint8_t *hash, uint32_t hashLen)

View File

@ -25,7 +25,7 @@
#include "softbus_common.h"
#include "softbus_conn_common.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
#include "conn_log.h"

View File

@ -23,7 +23,7 @@
#include "common_list.h"
#include "softbus_adapter_timer.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_type_def.h"
#include "softbus_adapter_mem.h"
#include "softbus_utils.h"

View File

@ -24,8 +24,8 @@
#include "softbus_broadcast_adapter_interface.h"
#include "softbus_broadcast_manager.h"
#include "softbus_broadcast_utils.h"
#include "softbus_errcode.h"
#include "softbus_hidumper_bc_mgr.h"
#include "softbus_error_code.h"
#include "legacy/softbus_hidumper_bc_mgr.h"
#include "softbus_utils.h"
#define BC_WAIT_TIME_MS 50

View File

@ -22,7 +22,7 @@
#include "comm_log.h"
#include "securec.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define STATE_LISTENER_MAX_NUM 18
#define BR_STATE_CB_TRANSPORT 1

View File

@ -15,7 +15,7 @@
#include "softbus_adapter_bt_common.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int SoftBusAddBtStateListener(const SoftBusBtStateListener *listener)
{

View File

@ -21,7 +21,6 @@ adapter_ble_inc = [
"$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface",
"$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/include",
"$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include",
"$dsoftbus_root_path/core/common/dfx/dumper/legacy/hidumper_adapter/include",
]
adapter_ble_src = [
"$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c",
@ -30,8 +29,8 @@ adapter_ble_src = [
"$dsoftbus_root_path/adapter/common/net/bluetooth/common/softbus_adapter_bt_common.c",
"$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_utils.c",
"$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/manager/src/softbus_broadcast_mgr.c",
"$dsoftbus_root_path/core/common/dfx/dumper/legacy/hidumper_adapter/softbus_hidumper_bc_mgr.c",
"$dsoftbus_root_path/core/common/dfx/dumper/legacy/hidumper_adapter/softbus_hidumper.c",
"$dsoftbus_dfx_path/dumper/legacy/softbus_hidumper_bc_mgr.c",
"$dsoftbus_dfx_path/dumper/legacy/softbus_hidumper.c",
]
if (dsoftbus_feature_ex_kits) {

View File

@ -23,7 +23,7 @@
#include "securec.h"
#include "softbus_adapter_mem.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "v1_1/iwlan_interface.h"
#define WLAN_SERVICE_NAME "wlan_interface_service"

View File

@ -14,7 +14,7 @@
*/
#include "softbus_adapter_wlan_extend.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t SoftBusRegWlanChannelInfoCb(WlanChannelInfoCb *cb)
{

View File

@ -20,7 +20,7 @@
#include "lnn_log.h"
#include "securec.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "kits/c/wifi_device.h"
#include "kits/c/wifi_hid2d.h"
#include "kits/c/wifi_hotspot.h"

View File

@ -14,7 +14,7 @@
*/
#include <stdlib.h>
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_wifi_api_adapter.h"
int32_t SoftBusGetWifiDeviceConfig(SoftBusWifiDevConf *configList, uint32_t *num)

View File

@ -23,7 +23,7 @@
#include "comm_log.h"
#include "softbus_adapter_file.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static SoftBusMutex g_randomLock;

View File

@ -25,7 +25,7 @@
#include "comm_log.h"
#include "softbus_adapter_crypto.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define AES_128_CFB_KEYLEN 16
#define AES_256_CFB_KEYLEN 32

View File

@ -16,7 +16,7 @@
#include <math.h>
#include "comm_log.h"
#include "softbus_adapter_range.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define MOCK_POWER (-17)
#define DB_BASE (10.0)

View File

@ -12,7 +12,6 @@
# limitations under the License.
DSOFTBUS_ROOT_PATH = "./../../.."
import("$DSOFTBUS_ROOT_PATH/core/common/dfx/dsoftbus_dfx.gni")
import("$DSOFTBUS_ROOT_PATH/dsoftbus.gni")
NSTACKX_ROOT = "$DSOFTBUS_ROOT_PATH/components/nstackx"

View File

@ -14,7 +14,7 @@
*/
#include "lnn_extdata_config.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t GetExtData(char *value, uint32_t len)
{

View File

@ -21,7 +21,7 @@
#include "c_header/ohos_bt_socket.h"
#include "conn_log.h"
#include "securec.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "string.h"
#define IS_BR_ENCRYPT false

View File

@ -29,7 +29,7 @@
#include "softbus_bus_center.h"
#include "softbus_common.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_feature_config.h"
#include "softbus_utils.h"

View File

@ -19,7 +19,7 @@
#include <securec.h>
#include "bus_center_adapter.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define DEFAULT_DEVICE_NAME "UNKNOWN"
#define DEFAULT_UDID_NAME "ABCDEF00ABCDEF00ABCDEF00ABCDEF00ABCDEF00ABCDEF00ABCDEF00ABCDEF00"

View File

@ -23,7 +23,7 @@
#include "lnn_kv_data_change_listener.h"
#include "lnn_log.h"
#include "lnn_node_info.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_def.h"
#include "softbus_utils.h"
#include "iservice_registry.h"

View File

@ -14,7 +14,7 @@
*/
#include "lnn_kv_adapter_wrapper.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnCreateKvAdapter(int32_t *dbId, const char *appId, int32_t appIdLen, const char *storeId, int32_t storeIdLen)
{

View File

@ -26,7 +26,7 @@
#include "softbus_adapter_crypto.h"
#include "softbus_adapter_mem.h"
#include "softbus_common.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
#include "lnn_connection_fsm.h"

View File

@ -21,7 +21,7 @@
#include "ohos_account_kits.h"
#include "os_account_manager.h"
#include "securec.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "auth_hichain_adapter.h"
static const int32_t ACCOUNT_STRTOLL_BASE = 10;

View File

@ -14,7 +14,7 @@
*/
#include "lnn_ohos_account.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnGetOhosAccountInfo(uint8_t *accountHash, uint32_t len)
{

View File

@ -14,7 +14,7 @@
*/
#include "lnn_oobe_manager.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnGetOOBEState(SoftBusOOBEState *state)
{

View File

@ -23,7 +23,7 @@
#include "lnn_log.h"
#include "softbus_bus_center.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "locale_config.h"
static constexpr const char *INTERNAL_NAME_CONCAT_STRING = "";

View File

@ -14,7 +14,7 @@
*/
#include "lnn_settingdata_event_monitor.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnGetUnifiedDisplayDeviceName(char *unifiedDisplayName, uint32_t len)
{

View File

@ -11,7 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("../../adapter/common/net/bluetooth/net_bluetooth.gni")
import("../../core/common/dfx/dsoftbus_dfx.gni")
import("../../dsoftbus.gni")
br_adapter_src =
@ -26,7 +25,7 @@ bus_center_core_adapter_src = [
"$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c",
]
bus_center_core_adapter_inc = [ "$dsoftbus_root_path/adapter/common/include" ]
bus_center_core_adapter_deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log" ]
bus_center_core_adapter_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ]
bus_center_core_adapter_external_deps = [ "init:libbegetutil" ]
if (dsoftbus_feature_lnn_cloud_sync) {

View File

@ -28,7 +28,7 @@
#include "comm_log.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static const uint8_t SOFTBUS_RSA_KEY_ALIAS[] = "DsoftbusRsaKey";
static const struct HksBlob g_rsaKeyAlias = { sizeof(SOFTBUS_RSA_KEY_ALIAS), (uint8_t *)SOFTBUS_RSA_KEY_ALIAS };

View File

@ -14,7 +14,7 @@
*/
#include "softbus_rsa_encrypt.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t SoftBusGetPublicKey(uint8_t *publicKey, uint32_t publicKeyLen)
{

View File

@ -24,7 +24,7 @@
#include "lnn_log.h"
#include "lnn_ohos_account.h"
#include "lnn_parameter_utils.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "datetime_ex.h"
namespace OHOS {

View File

@ -24,7 +24,7 @@
#include "lnn_kv_adapter_wrapper.h"
#include "lnn_log.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
namespace OHOS {
namespace {

View File

@ -12,7 +12,7 @@
# limitations under the License.
import("../../dsoftbus.gni")
import("../common/dfx/dsoftbus_dfx.gni")
AUTH_SERVER_DEFINES = []
if (dsoftbus_feature_auth_account == true) {
AUTH_SERVER_DEFINES += [ "AUTH_ACCOUNT" ]
@ -29,10 +29,9 @@ enhanced = exec_script("$dsoftbus_root_path/check_sub_module.py",
"value")
auth_server_inc = [
"$dsoftbus_dfx_path/interface/include",
"$dsoftbus_root_path/core/authentication/include",
"$dsoftbus_root_path/core/authentication/interface",
"$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include",
"$dsoftbus_root_path/core/common/dfx/interface/include",
"$dsoftbus_root_path/core/adapter/authentication/include",
"$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
"$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
@ -98,10 +97,7 @@ if (dsoftbus_feature_lnn_net) {
"$authentication_path/src/virtual/auth_meta_ptk_proc_virtual.c",
]
}
auth_server_deps = [
"$dsoftbus_dfx_path/anonymize:softbus_dfx_anonymizer",
"$dsoftbus_dfx_path/log:softbus_dfx_log",
]
auth_server_deps = [ "$dsoftbus_dfx_path:softbus_dfx" ]
auth_server_ex_deps = []
if (defined(ohos_lite)) {
if (ohos_kernel_type == "liteos_m") {

View File

@ -23,7 +23,7 @@
#include "lnn_device_info_recovery.h"
#include "softbus_common.h"
#include "softbus_conn_interface.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
#ifdef __cplusplus

View File

@ -27,7 +27,7 @@
#include "lnn_node_info.h"
#include "lnn_p2p_info.h"
#include "lnn_state_machine.h"
#include "softbus_hisysevt_bus_center.h"
#include "legacy/softbus_hisysevt_bus_center.h"
#ifdef __cplusplus
#if __cplusplus

View File

@ -30,7 +30,7 @@
#include "lnn_local_net_ledger.h"
#include "lnn_map.h"
#include "lnn_net_builder.h"
#include "softbus_adapter_hitrace.h"
#include "legacy/softbus_adapter_hitrace.h"
#include "softbus_adapter_mem.h"
#define DELAY_AUTH_TIME (8 * 1000L)

View File

@ -26,7 +26,7 @@
#include "device_auth_defines.h"
#include "lnn_ohos_account_adapter.h"
#include "softbus_adapter_mem.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_json_utils.h"
#define AUTH_APPID "softbus_auth"

View File

@ -39,7 +39,7 @@
#include "lnn_event.h"
#include "lnn_feature_capability.h"
#include "lnn_net_builder.h"
#include "softbus_adapter_hitrace.h"
#include "legacy/softbus_adapter_hitrace.h"
#include "softbus_adapter_mem.h"
#include "softbus_adapter_socket.h"
#include "softbus_def.h"

View File

@ -33,7 +33,7 @@
#include "lnn_event.h"
#include "lnn_feature_capability.h"
#include "softbus_adapter_bt_common.h"
#include "softbus_adapter_hitrace.h"
#include "legacy/softbus_adapter_hitrace.h"
#include "softbus_adapter_mem.h"
#include "softbus_def.h"

View File

@ -24,7 +24,7 @@
#include "softbus_adapter_mem.h"
#include "softbus_adapter_socket.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define SESSION_KEY_MAX_NUM 10
#define LAST_USE_THRESHOLD_MS (30 * 1000L) /* 30s */

View File

@ -15,7 +15,7 @@
#include "auth_attest_interface.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_error_code.h"
#include <stdint.h>

View File

@ -14,7 +14,7 @@
*/
#include "auth_device_common_key.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
void AuthLoadDeviceKey(void)

View File

@ -14,7 +14,7 @@
*/
#include "auth_hichain.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t RegHichainSaStatusListener(void)
{

View File

@ -15,7 +15,7 @@
#include "auth_interface.h"
#include "auth_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t RegAuthVerifyListener(const AuthVerifyListener *listener)
{

View File

@ -17,7 +17,7 @@
#include "auth_channel.h"
#include "auth_log.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t RegAuthChannelListener(int32_t module, const AuthChannelListener *listener)
{

View File

@ -16,7 +16,7 @@
#include "customized_security_protocol.h"
#include "auth_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t CustomizedSecurityProtocolInit(void)
{

View File

@ -14,7 +14,7 @@
*/
#include "broadcast_scheduler.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t SchedulerInitBroadcast(void)
{

View File

@ -49,22 +49,23 @@ bus_center_server_src += [
]
bus_center_server_inc += [
"$dsoftbus_root_path/interface/kits/bus_center",
"$dsoftbus_root_path/core/bus_center/interface",
"$dsoftbus_root_path/core/bus_center/ipc/include",
"$dsoftbus_root_path/core/bus_center/service/include",
"$dsoftbus_root_path/sdk/bus_center/manager/include",
"$softbus_adapter_common/dfx/include",
]
bus_center_server_external_deps = []
if (defined(global_parts_info) && defined(global_parts_info.hicollie)) {
bus_center_server_src +=
[ "$softbus_adapter_common/dfx/softbus_adapter_xcollie.cpp" ]
[ "$dsoftbus_dfx_path/watchdog/legacy/softbus_adapter_xcollie.cpp" ]
bus_center_server_external_deps += [ "hicollie:libhicollie" ]
} else {
bus_center_server_src +=
[ "$softbus_adapter_common/dfx/softbus_adapter_xcollie_virtual.cpp" ]
bus_center_server_src += [
"$dsoftbus_dfx_path/watchdog/legacy/softbus_adapter_xcollie_virtual.cpp",
]
}
if (defined(ohos_lite)) {

View File

@ -24,7 +24,7 @@
#include "lnn_log.h"
#include "lnn_meta_node_ledger.h"
#include "lnn_time_sync_manager.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static int32_t OnRefreshDeviceFound(const char *pkgName, const DeviceInfo *device,
const InnerDeviceInfoAddtions *additions);

View File

@ -23,7 +23,7 @@
#include "softbus_adapter_mem.h"
#include "softbus_client_info_manager.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_server_ipc_interface_code.h"
static int32_t GetSvcIdentityByPkgName(const char *pkgName, SvcIdentity *svc)

View File

@ -28,7 +28,7 @@
#include "lnn_time_sync_manager.h"
#include "softbus_adapter_mem.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
typedef struct {

View File

@ -20,7 +20,7 @@
#include "softbus_client_info_manager.h"
#include "softbus_bus_center.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_permission.h"
using namespace OHOS;

View File

@ -17,7 +17,7 @@
#include "lnn_log.h"
#include "message_parcel.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_server_ipc_interface_code.h"
namespace OHOS {

View File

@ -32,7 +32,7 @@
#include "lnn_meta_node_ledger.h"
#include "lnn_time_sync_manager.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_permission.h"
struct JoinLnnRequestInfo {

View File

@ -16,7 +16,7 @@
#include "lnn_decision_center.h"
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitDecisionCenter(uint32_t version)
{

View File

@ -25,7 +25,7 @@ if (dsoftbus_feature_lnn_net) {
}
bus_center_disc_mgr_inc = [
"$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include",
"$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include",
"$dsoftbus_root_path/core/common/dfx/interface/include/form",
"$dsoftbus_dfx_path/interface/include",
"$dsoftbus_dfx_path/interface/include/form",
]
bus_center_disc_mgr_deps = []

View File

@ -24,7 +24,7 @@
#include "softbus_adapter_crypto.h"
#include "softbus_adapter_mem.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
#define LNN_DISC_CAPABILITY "ddmpCapability"

View File

@ -20,7 +20,7 @@
#include "lnn_event.h"
#include "lnn_log.h"
#include "softbus_adapter_perf.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
static void DfxRecordLnnDiscServiceEnd(int32_t serverType, const char *packageName, int32_t reason)

View File

@ -20,8 +20,8 @@
#include "lnn_coap_discovery_impl.h"
#include "lnn_log.h"
#include "lnn_net_builder.h"
#include "softbus_errcode.h"
#include "softbus_hisysevt_bus_center.h"
#include "softbus_error_code.h"
#include "legacy/softbus_hisysevt_bus_center.h"
static void DeviceFound(const ConnectionAddr *addr, const LnnDfxDeviceInfoReport *infoReport);

View File

@ -16,7 +16,7 @@
#include "lnn_discovery_manager.h"
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitDiscoveryManager(void)
{

View File

@ -20,7 +20,7 @@
#include "lnn_lane_qos.h"
#include "lnn_log.h"
#include "lnn_time_sync_manager.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitLaneHub(void)

View File

@ -17,7 +17,7 @@
#include "lnn_log.h"
#include "bus_center_manager.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnInitLaneHub(void)
{

View File

@ -18,7 +18,7 @@
#include "bus_center_manager.h"
#include "lnn_heartbeat_medium_mgr.h"
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
static int32_t InitBleHeartbeat(const LnnHeartbeatMediumMgrCb *callback)
{

View File

@ -14,7 +14,7 @@
*/
#include "lnn_ble_lpdevice.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_adapter_mem.h"
int32_t LnnRegisterBleLpDeviceMediumMgr(void)

View File

@ -48,8 +48,8 @@
#include "softbus_adapter_mem.h"
#include "softbus_broadcast_type.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_hisysevt_bus_center.h"
#include "softbus_error_code.h"
#include "legacy/softbus_hisysevt_bus_center.h"
#include "softbus_utils.h"
#include "lnn_connection_fsm.h"

View File

@ -16,7 +16,7 @@
#include "lnn_heartbeat_ctrl.h"
#include "lnn_heartbeat_utils.h"
#include "lnn_log.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnStartHeartbeatFrameDelay(void)
{

View File

@ -34,8 +34,8 @@
#include "softbus_adapter_mem.h"
#include "softbus_adapter_timer.h"
#include "softbus_errcode.h"
#include "softbus_hisysevt_bus_center.h"
#include "softbus_error_code.h"
#include "legacy/softbus_hisysevt_bus_center.h"
#define TO_HEARTBEAT_FSM(ptr) CONTAINER_OF(ptr, LnnHeartbeatFsm, fsm)

View File

@ -49,7 +49,7 @@
#include "softbus_adapter_bt_common.h"
#include "softbus_adapter_timer.h"
#include "softbus_def.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#include "softbus_utils.h"
#define INVALID_BR_MAC_ADDR "00:00:00:00:00:00"

View File

@ -31,7 +31,7 @@
#include "softbus_adapter_mem.h"
#include "softbus_adapter_thread.h"
#include "softbus_adapter_timer.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
#define HB_GEARMODE_MAX_SET_CNT 100
#define HB_GEARMODE_LIFETIME_PERMANENT (-1)

View File

@ -15,7 +15,7 @@
#include "lnn_heartbeat_strategy.h"
#include "softbus_errcode.h"
#include "softbus_error_code.h"
int32_t LnnStartHbByTypeAndStrategy(LnnHeartbeatType hbType, LnnHeartbeatStrategyType strategyType, bool isRelay)
{

Some files were not shown because too many files have changed in this diff Show More