fix:add new type id

Signed-off-by: fangdong7 <fangdong7@huawei.com>
This commit is contained in:
fangdong7 2023-07-25 08:15:30 +00:00
parent 116aca8337
commit a71d0548e9
2 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,7 @@ typedef enum {
#define GET_TYPE_CAR "car"
#define GET_TYPE_WATCH "wearable"
#define GET_TYPE_IPCAMERA "smartVision"
#define GET_TYPE_2IN1 "2in1"
#define TYPE_UNKNOWN "UNKNOWN"
#define TYPE_PHONE "PHONE"
@ -48,6 +49,7 @@ typedef enum {
#define TYPE_IPCAMERA "WiFiCamara"
#define TYPE_PC "PC"
#define TYPE_SMART_DISPLAY "SMART_DISPLAY"
#define TYPE_2IN1 "A2F"
int32_t GetCommonDevInfo(const CommonDeviceKey key, char *value, uint32_t len);
int32_t GetWlanIpv4Addr(char *ip, uint32_t size);

View File

@ -44,6 +44,7 @@ static TypeInfo g_typeConvertMap[] = {
{GET_TYPE_CAR, TYPE_CAR},
{GET_TYPE_WATCH, TYPE_WATCH},
{GET_TYPE_IPCAMERA, TYPE_IPCAMERA},
{GET_TYPE_2IN1, TYPE_2IN1},
};
static int32_t SoftBusConvertDeviceType(const char *inBuf, char *outBuf, uint32_t outLen)