BugID:19050431: ulocation support gaode locating service, fix coding style problem
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
-#ifndef _U_LOCATION_H_
-#define _U_LOCATION_H_
+#ifndef ULOCATION_H
+#define ULOCATION_H
-typedef enum
-{
+typedef enum {
ULOC_SCENARIO_OUTDOOR = 0,
ULOC_SCENARIO_INDOOR = 1,
ULOC_SCENARIO_COUNT
} uloc_scenario_e;
-typedef struct
-{
+typedef struct {
float longitude;
float latitude;
float altitude;
} outdoor_location_t;
-typedef struct
-{
+typedef struct {
float x;
float y;
float z;
} indoor_location_t;
-typedef union
-{
+typedef union {
indoor_location_t indoor;
outdoor_location_t outdoor;
- struct
- {
+ struct {
float x;
float y;
float z;
