mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-30 12:20:43 +00:00
fix:add new type id
Signed-off-by: fangdong7 <fangdong7@huawei.com>
This commit is contained in:
parent
116aca8337
commit
a71d0548e9
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user