client: Add OutsideTemperature, LampHeadBeam & Wiper 28/111028/2 accepted/tizen/3.0/ivi/20170120.100642 submit/tizen_3.0/20170119.075529
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 19 Jan 2017 07:49:27 +0000 (16:49 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 19 Jan 2017 07:52:00 +0000 (16:52 +0900)
This patch adds the macro for Outside Temperature, Lamp Head Beam & Wiper
related things.

Change-Id: I3174fbf01a9a5db53192a0a5ab3d44a2644a393f
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
lib/client/libamb-objects.h
lib/client/test/test.c

index b3448bf..0809f2c 100644 (file)
@@ -60,6 +60,7 @@ CAN_OBJECT(VehicleOdometer,   guint32, NULL);
  */
 CAN_OBJECT(EngineRPM,          guint16, NULL);
 CAN_OBJECT(WarterTemperature,  guint16, NULL);
+CAN_OBJECT(OutsideTemperature,         gdouble,  NULL);
 CAN_OBJECT(FuelGage,           guchar,  NULL);
 
 /**
@@ -79,6 +80,11 @@ CAN_OBJECT(LampAutomaticHold,   guchar, NULL);
 CAN_OBJECT(BatteryVoltage,      gdouble, NULL);
 CAN_OBJECT(BatteryCurrent,      guchar, NULL);
 CAN_OBJECT(BatteryChargeLevel,   guchar, NULL);
+CAN_OBJECT(Wiper_Lo,   gboolean, NULL);
+CAN_OBJECT(Wiper_Speed, guchar, NULL);
+CAN_OBJECT(Wiper_Hi,   gboolean, NULL);
+CAN_OBJECT(Wiper_Mist,         gboolean, NULL);
+CAN_OBJECT(Wiper_Auto,         gboolean, NULL);
 
 /**
  * Warning Message & Status
@@ -108,6 +114,7 @@ CAN_OBJECT(StsDoorOpen,     gboolean, NULL);
 CAN_OBJECT(StsTrunkOpen,       gboolean, NULL);
 CAN_OBJECT(WarningImmobilizer,         gboolean, NULL);
 CAN_OBJECT(LampRearFogLights,  gboolean, NULL);
+CAN_OBJECT(LampHeadBeam,       gboolean, NULL);
 
 CAN_OBJECT(LampHazardLight,    gboolean, NULL);
 CAN_OBJECT(LampFrontFog,       gboolean, NULL);
index 7f44f97..3f5219a 100644 (file)
@@ -256,6 +256,22 @@ static void test_FuelGage()
        amb_release_data(p);
 }
 
+static void test_OutsideTemperature()
+{
+       struct OutsideTemperatureType *p;
+       int ret = amb_get_OutsideTemperature_with_zone(&p, None);
+       if (ret != 0) {
+               fprintf(stderr, "Fail to %s\n", __func__);
+               return ;
+       }
+       fprintf(stderr, " == OutsideTemperature ==\n");
+       fprintf(stderr, "    Zone: %d\n", p->Zone);
+       fprintf(stderr, "    Value: %f\n", p->Value);
+       fprintf(stderr, "    ValueSequence: %d\n", p->ValueSequence);
+       fprintf(stderr, "    Time: %f\n", p->Time);
+
+       amb_release_data(p);
+}
 
 static void test_FR_KeyEvent01()
 {