• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef LNN_DEVICE_INFO_STRUCT_H
17 #define LNN_DEVICE_INFO_STRUCT_H
18 
19 #include <stdint.h>
20 #include "lnn_event_form.h"
21 #include "softbus_bus_center.h"
22 #include "softbus_common.h"
23 #include "softbus_def.h"
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define TYPE_UNKNOW_ID 0x00
29 #define TYPE_PHONE_ID 0x0E
30 #define TYPE_PAD_ID 0x11
31 #define TYPE_TV_ID 0x9C
32 #define TYPE_AUDIO_ID 0x0A
33 #define TYPE_CAR_ID 0x83
34 #define TYPE_WATCH_ID 0x6D
35 #define TYPE_IPCAMERA_ID 0X08
36 #define TYPE_PC_ID 0x0C
37 #define TYPE_SMART_DISPLAY_ID 0xA02
38 #define TYPE_2IN1_ID 0xA2F
39 #define TYPE_GLASS_ID 0xA31
40 
41 typedef struct {
42     uint16_t deviceTypeId;
43     int32_t osType;
44     char deviceName[DEVICE_NAME_BUF_LEN];
45     char unifiedName[DEVICE_NAME_BUF_LEN];
46     char nickName[DEVICE_NAME_BUF_LEN];
47     char unifiedDefaultName[DEVICE_NAME_BUF_LEN];
48     char deviceUdid[UDID_BUF_LEN];
49     char osVersion[OS_VERSION_BUF_LEN];
50     char deviceVersion[DEVICE_VERSION_SIZE_MAX];
51     char productId[PRODUCT_ID_SIZE_MAX];
52     char modelName[MODEL_NAME_SIZE_MAX];
53 } DeviceBasicInfo;
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif // LNN_DEVICE_INFO_STRUCT_H
60