Change enum type name & call service_app_terminate()
authorjunkyu han <junkyu.han@samsung.com>
Thu, 5 Apr 2018 07:00:44 +0000 (16:00 +0900)
committerjunkyu han <junkyu.han@samsung.com>
Thu, 5 Apr 2018 07:00:44 +0000 (16:00 +0900)
workers/system-info/inc/controller.h
workers/system-info/src/controller.c

index 81ef0c9..53a1e7a 100644 (file)
@@ -27,228 +27,228 @@ typedef struct __info_s {
 } info_s;
 
 typedef enum {
-       INT = 0,
-       BOOL = 1,
-       STRING = 2,
+       KEY_TYPE_INT = 0,
+       KEY_TYPE_BOOL = 1,
+       KEY_TYPE_STRING = 2,
 } KEY_TYPE;
 
 info_s sys_info[INFO_KEY_MAX] = {
-       { "http://tizen.org/feature/account", BOOL },
-       { "http://tizen.org/feature/account.sync", BOOL },
-       { "http://tizen.org/feature/app_history", BOOL },
-       { "http://tizen.org/feature/battery", BOOL },
-       { "http://tizen.org/feature/camera", BOOL },
-       { "http://tizen.org/feature/camera.back", BOOL },
-       { "http://tizen.org/feature/camera.back.flash", BOOL },
-       { "http://tizen.org/feature/camera.front", BOOL },
-       { "http://tizen.org/feature/camera.front.flash", BOOL },
-       { "http://tizen.org/feature/consumer_ir", BOOL },
-       { "http://tizen.org/feature/contextual_trigger", BOOL },
-       { "http://tizen.org/feature/database.encryption", BOOL },
-       { "http://tizen.org/feature/download", BOOL },
-       { "http://tizen.org/feature/fido.uaf", BOOL },
-       { "http://tizen.org/feature/fmradio", BOOL },
-       { "http://tizen.org/feature/graphics.acceleration", BOOL },
-       { "http://tizen.org/feature/humanactivitymonitor", BOOL },
-       { "http://tizen.org/feature/input.keyboard", BOOL },
-       { "http://tizen.org/feature/input.keyboard.layout", STRING },
-       { "http://tizen.org/feature/input.rotating_bezel", BOOL },
-       { "http://tizen.org/feature/iot.ocf", BOOL },
-       { "http://tizen.org/feature/led", BOOL },
-       { "http://tizen.org/feature/location", BOOL },
-       { "http://tizen.org/feature/location.batch", BOOL },
-       { "http://tizen.org/feature/location.geofence", BOOL },
-       { "http://tizen.org/feature/location.gps", BOOL },
-       { "http://tizen.org/feature/location.gps.satellite", BOOL },
-       { "http://tizen.org/feature/location.wps", BOOL },
-       { "http://tizen.org/feature/maps", BOOL },
-       { "http://tizen.org/feature/media.audio_recording", BOOL },
-       { "http://tizen.org/feature/media.image_capture", BOOL },
-       { "http://tizen.org/feature/media.video_recording", BOOL },
-       { "http://tizen.org/feature/microphone", BOOL },
-       { "http://tizen.org/feature/multimedia.transcoder", BOOL },
-       { "http://tizen.org/feature/multi_point_touch.pinch_zoom", BOOL },
-       { "http://tizen.org/feature/multi_point_touch.point_count", INT },
-       { "http://tizen.org/feature/network.bluetooth", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.audio.call", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.audio.controller", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.audio.media", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.health", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.hid", BOOL },
-//     { "http://tizen.org/feature/network.bluetooth.hid.device", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.le", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.opp", BOOL },
-       { "http://tizen.org/feature/network.bluetooth.phonebook.client", BOOL },
-       { "http://tizen.org/feature/network.ethernet", BOOL },
-       { "http://tizen.org/feature/network.internet", BOOL },
-       { "http://tizen.org/feature/network.mtp", BOOL },
-       { "http://tizen.org/feature/network.net_proxy", BOOL },
-       { "http://tizen.org/feature/network.nfc", BOOL },
-       { "http://tizen.org/feature/network.nfc.card_emulation", BOOL },
-       { "http://tizen.org/feature/network.nfc.card_emulation.hce", BOOL },
-       { "http://tizen.org/feature/network.nfc.p2p", BOOL },
-       { "http://tizen.org/feature/network.nfc.reserved_push", BOOL },
-       { "http://tizen.org/feature/network.nfc.tag", BOOL },
-       { "http://tizen.org/feature/network.push", BOOL },
-       { "http://tizen.org/feature/network.secure_element", BOOL },
-       { "http://tizen.org/feature/network.secure_element.ese", BOOL },
-       { "http://tizen.org/feature/network.secure_element.uicc", BOOL },
-       { "http://tizen.org/feature/network.service_discovery.dnssd", BOOL },
-       { "http://tizen.org/feature/network.service_discovery.ssdp", BOOL },
-       { "http://tizen.org/feature/network.telephony", BOOL },
-       { "http://tizen.org/feature/network.telephony.mms", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.cdma", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.edge", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.gprs", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.gsm", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.hsdpa", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.hspa", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.hsupa", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.lte", BOOL },
-       { "http://tizen.org/feature/network.telephony.service.umts", BOOL },
-       { "http://tizen.org/feature/network.telephony.sms", BOOL },
-       { "http://tizen.org/feature/network.telephony.sms.cbs", BOOL },
-       { "http://tizen.org/feature/network.tethering", BOOL },
-       { "http://tizen.org/feature/network.tethering.bluetooth", BOOL },
-       { "http://tizen.org/feature/network.tethering.usb", BOOL },
-       { "http://tizen.org/feature/network.tethering.wifi", BOOL },
-       { "http://tizen.org/feature/network.vpn", BOOL },
-       { "http://tizen.org/feature/network.wifi", BOOL },
-       { "http://tizen.org/feature/network.wifi.direct", BOOL },
-       { "http://tizen.org/feature/network.wifi.direct.display", BOOL },
-       { "http://tizen.org/feature/network.wifi.direct.service_discovery", BOOL },
-       { "http://tizen.org/feature/network.wifi.tdls", BOOL },
-       { "http://tizen.org/feature/oauth2", BOOL },
-       { "http://tizen.org/feature/opengles", BOOL },
-//     { "http://tizen.org/feature/opengles.texture_format", STRING },
-       { "http://tizen.org/feature/opengles.texture_format.3dc", BOOL },
-       { "http://tizen.org/feature/opengles.texture_format.atc", BOOL },
-       { "http://tizen.org/feature/opengles.texture_format.etc", BOOL },
-       { "http://tizen.org/feature/opengles.texture_format.ptc", BOOL },
-       { "http://tizen.org/feature/opengles.texture_format.pvrtc", BOOL },
-       { "http://tizen.org/feature/opengles.texture_format.utc", BOOL },
-       { "http://tizen.org/feature/opengles.version.1_1", BOOL },
-       { "http://tizen.org/feature/opengles.version.2_0", BOOL },
-       { "http://tizen.org/feature/opengles.version.3_0", BOOL },
-       { "http://tizen.org/feature/opengles.version.3_1", BOOL },
-       { "http://tizen.org/feature/opengles.version.3_2", BOOL },
-       { "http://tizen.org/feature/platform.core.api.version", STRING },
-       { "http://tizen.org/feature/platform.core.cpu.arch", STRING },
-       { "http://tizen.org/feature/platform.core.cpu.arch.armv6", BOOL },
-       { "http://tizen.org/feature/platform.core.cpu.arch.armv7", BOOL },
-       { "http://tizen.org/feature/platform.core.cpu.arch.x86", BOOL },
-       { "http://tizen.org/feature/platform.core.cpu.frequency", INT },
-       { "http://tizen.org/feature/platform.core.fpu.arch", STRING },
-       { "http://tizen.org/feature/platform.core.fpu.arch.sse2", BOOL },
-       { "http://tizen.org/feature/platform.core.fpu.arch.sse3", BOOL },
-       { "http://tizen.org/feature/platform.core.fpu.arch.ssse3", BOOL },
-       { "http://tizen.org/feature/platform.core.fpu.arch.vfpv2", BOOL },
-       { "http://tizen.org/feature/platform.core.fpu.arch.vfpv3", BOOL },
-       { "http://tizen.org/feature/platform.native.api.version", STRING },
-       { "http://tizen.org/feature/platform.native.osp_compatible", BOOL },
-       { "http://tizen.org/feature/platform.version", STRING },
-       { "http://tizen.org/feature/platform.version.name", STRING },
-       { "http://tizen.org/feature/platform.web.api.version", STRING },
-       { "http://tizen.org/feature/profile", STRING },
-       { "http://tizen.org/feature/screen", BOOL },
-       { "http://tizen.org/feature/screen.always_on.high_color", BOOL },
-       { "http://tizen.org/feature/screen.always_on.low_bit_color", BOOL },
-       { "http://tizen.org/feature/screen.auto_rotation", BOOL },
-       { "http://tizen.org/feature/screen.bpp", INT },
-       { "http://tizen.org/feature/screen.coordinate_system.size.large", BOOL },
-       { "http://tizen.org/feature/screen.coordinate_system.size.normal", BOOL },
-       { "http://tizen.org/feature/screen.dpi", INT },
-       { "http://tizen.org/feature/screen.height", INT },
-       { "http://tizen.org/feature/screen.output.hdmi", BOOL },
-       { "http://tizen.org/feature/screen.output.rca", BOOL },
-       { "http://tizen.org/feature/screen.shape.circle", BOOL },
-       { "http://tizen.org/feature/screen.shape.rectangle", BOOL },
-       { "http://tizen.org/feature/screen.size.all", BOOL },
-       { "http://tizen.org/feature/screen.size.large", BOOL },
-       { "http://tizen.org/feature/screen.size.normal", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.240.400", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.320.320", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.320.480", BOOL },
-//     { "http://tizen.org/feature/screen.size.normal.360.360", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.360.480", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.480.800", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.540.960", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.600.1024", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.720.1280", BOOL },
-       { "http://tizen.org/feature/screen.size.normal.720.1280", BOOL },
-       { "http://tizen.org/feature/screen.width", INT },
-       { "http://tizen.org/feature/sensor.accelerometer", BOOL },
-       { "http://tizen.org/feature/sensor.accelerometer.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.activity_recognition", BOOL },
-       { "http://tizen.org/feature/sensor.barometer", BOOL },
-       { "http://tizen.org/feature/sensor.barometer.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.geomagnetic_rotation_vector", BOOL },
-       { "http://tizen.org/feature/sensor.gesture_recognition", BOOL },
-       { "http://tizen.org/feature/sensor.gravity", BOOL },
-       { "http://tizen.org/feature/sensor.gyroscope", BOOL },
-       { "http://tizen.org/feature/sensor.gyroscope_rotation_vector", BOOL },
-       { "http://tizen.org/feature/sensor.gyroscope.uncalibrated", BOOL },
-       { "http://tizen.org/feature/sensor.gyroscope.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.heart_rate_monitor", BOOL },
-       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_green", BOOL },
-       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_ir", BOOL },
-       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_red", BOOL },
-       { "http://tizen.org/feature/sensor.humidity", BOOL },
-       { "http://tizen.org/feature/sensor.linear_acceleration", BOOL },
-       { "http://tizen.org/feature/sensor.magnetometer", BOOL },
-       { "http://tizen.org/feature/sensor.magnetometer.uncalibrated", BOOL },
-       { "http://tizen.org/feature/sensor.magnetometer.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.pedometer", BOOL },
-       { "http://tizen.org/feature/sensor.photometer", BOOL },
-       { "http://tizen.org/feature/sensor.photometer.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.proximity", BOOL },
-       { "http://tizen.org/feature/sensor.proximity.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.rotation_vector", BOOL },
-       { "http://tizen.org/feature/sensor.significant_motion", BOOL },
-       { "http://tizen.org/feature/sensor.sleep_monitor", BOOL },
-       { "http://tizen.org/feature/sensor.stress_monitor", BOOL },
-       { "http://tizen.org/feature/sensor.temperature", BOOL },
-       { "http://tizen.org/feature/sensor.tiltmeter", BOOL },
-       { "http://tizen.org/feature/sensor.tiltmeter.wakeup", BOOL },
-       { "http://tizen.org/feature/sensor.ultraviolet", BOOL },
-       { "http://tizen.org/feature/sensor.wrist_up", BOOL },
-       { "http://tizen.org/feature/shell.appwidget", BOOL },
-       { "http://tizen.org/feature/sip.voip", BOOL },
-       { "http://tizen.org/feature/speech.control", BOOL },
-       { "http://tizen.org/feature/speech.recognition", BOOL },
-       { "http://tizen.org/feature/speech.synthesis", BOOL },
-       { "http://tizen.org/feature/systemsetting", BOOL },
-       { "http://tizen.org/feature/systemsetting.home_screen", BOOL },
-       { "http://tizen.org/feature/systemsetting.incoming_call", BOOL },
-       { "http://tizen.org/feature/systemsetting.lock_screen", BOOL },
-       { "http://tizen.org/feature/systemsetting.notification_email", BOOL },
-       { "http://tizen.org/feature/usb.accessory", BOOL },
-       { "http://tizen.org/feature/usb.host", BOOL },
-       { "http://tizen.org/feature/vision.barcode_detection", BOOL },
-       { "http://tizen.org/feature/vision.barcode_generation", BOOL },
-       { "http://tizen.org/feature/vision.face_recognition", BOOL },
-       { "http://tizen.org/feature/vision.image_recognition", BOOL },
-       { "http://tizen.org/feature/vision.qrcode_generation", BOOL },
-       { "http://tizen.org/feature/vision.qrcode_recognition", BOOL },
-       { "http://tizen.org/feature/web.ime", BOOL },
-       { "http://tizen.org/feature/web.service", BOOL },
-       { "http://tizen.org/system/build.date", STRING },
-       { "http://tizen.org/system/build.id", STRING },
-       { "http://tizen.org/system/build.string", STRING },
-       { "http://tizen.org/system/build.time", STRING },
-       { "http://tizen.org/system/build.type", STRING },
-       { "http://tizen.org/system/build.variant", STRING },
-       { "http://tizen.org/system/build.release", STRING },
-       { "http://tizen.org/system/manufacturer", STRING },
-       { "http://tizen.org/system/model_name", STRING },
-       { "http://tizen.org/system/platform.communication_processor", STRING },
-       { "http://tizen.org/system/platform.name", STRING },
-       { "http://tizen.org/system/platform.processor", STRING },
-       { "http://tizen.org/system/sound.media.volume.resolution.max", INT },
-       { "http://tizen.org/system/sound.notification.volume.resolution.max", INT },
-       { "http://tizen.org/system/sound.ringtone.volume.resolution.max", INT },
-       { "http://tizen.org/system/sound.system.volume.resolution.max", INT },
-       { "http://tizen.org/system/tizenid", STRING },
+       { "http://tizen.org/feature/account", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/account.sync", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/app_history", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/battery", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/camera", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/camera.back", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/camera.back.flash", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/camera.front", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/camera.front.flash", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/consumer_ir", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/contextual_trigger", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/database.encryption", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/download", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/fido.uaf", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/fmradio", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/graphics.acceleration", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/humanactivitymonitor", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/input.keyboard", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/input.keyboard.layout", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/input.rotating_bezel", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/iot.ocf", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/led", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location.batch", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location.geofence", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location.gps", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location.gps.satellite", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/location.wps", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/maps", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/media.audio_recording", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/media.image_capture", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/media.video_recording", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/microphone", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/multimedia.transcoder", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/multi_point_touch.pinch_zoom", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/multi_point_touch.point_count", KEY_TYPE_INT },
+       { "http://tizen.org/feature/network.bluetooth", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.audio.call", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.audio.controller", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.audio.media", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.health", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.hid", KEY_TYPE_BOOL },
+//     { "http://tizen.org/feature/network.bluetooth.hid.device", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.le", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.opp", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.bluetooth.phonebook.client", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.ethernet", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.internet", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.mtp", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.net_proxy", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc.card_emulation", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc.card_emulation.hce", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc.p2p", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc.reserved_push", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.nfc.tag", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.push", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.secure_element", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.secure_element.ese", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.secure_element.uicc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.service_discovery.dnssd", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.service_discovery.ssdp", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.mms", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.cdma", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.edge", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.gprs", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.gsm", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.hsdpa", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.hspa", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.hsupa", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.lte", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.service.umts", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.sms", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.telephony.sms.cbs", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.tethering", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.tethering.bluetooth", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.tethering.usb", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.tethering.wifi", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.vpn", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.wifi", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.wifi.direct", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.wifi.direct.display", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.wifi.direct.service_discovery", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/network.wifi.tdls", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/oauth2", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles", KEY_TYPE_BOOL },
+//     { "http://tizen.org/feature/opengles.texture_format", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/opengles.texture_format.3dc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.texture_format.atc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.texture_format.etc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.texture_format.ptc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.texture_format.pvrtc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.texture_format.utc", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.version.1_1", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.version.2_0", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.version.3_0", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.version.3_1", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/opengles.version.3_2", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.api.version", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.core.cpu.arch", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.core.cpu.arch.armv6", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.cpu.arch.armv7", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.cpu.arch.x86", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.cpu.frequency", KEY_TYPE_INT },
+       { "http://tizen.org/feature/platform.core.fpu.arch", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.core.fpu.arch.sse2", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.fpu.arch.sse3", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.fpu.arch.ssse3", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.fpu.arch.vfpv2", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.core.fpu.arch.vfpv3", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.native.api.version", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.native.osp_compatible", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/platform.version", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.version.name", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/platform.web.api.version", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/profile", KEY_TYPE_STRING },
+       { "http://tizen.org/feature/screen", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.always_on.high_color", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.always_on.low_bit_color", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.auto_rotation", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.bpp", KEY_TYPE_INT },
+       { "http://tizen.org/feature/screen.coordinate_system.size.large", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.coordinate_system.size.normal", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.dpi", KEY_TYPE_INT },
+       { "http://tizen.org/feature/screen.height", KEY_TYPE_INT },
+       { "http://tizen.org/feature/screen.output.hdmi", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.output.rca", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.shape.circle", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.shape.rectangle", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.all", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.large", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.240.400", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.320.320", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.320.480", KEY_TYPE_BOOL },
+//     { "http://tizen.org/feature/screen.size.normal.360.360", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.360.480", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.480.800", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.540.960", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.600.1024", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.720.1280", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.size.normal.720.1280", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/screen.width", KEY_TYPE_INT },
+       { "http://tizen.org/feature/sensor.accelerometer", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.accelerometer.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.activity_recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.barometer", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.barometer.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.geomagnetic_rotation_vector", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gesture_recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gravity", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gyroscope", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gyroscope_rotation_vector", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gyroscope.uncalibrated", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.gyroscope.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.heart_rate_monitor", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_green", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_ir", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.heart_rate_monitor.led_red", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.humidity", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.linear_acceleration", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.magnetometer", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.magnetometer.uncalibrated", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.magnetometer.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.pedometer", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.photometer", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.photometer.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.proximity", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.proximity.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.rotation_vector", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.significant_motion", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.sleep_monitor", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.stress_monitor", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.temperature", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.tiltmeter", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.tiltmeter.wakeup", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.ultraviolet", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sensor.wrist_up", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/shell.appwidget", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/sip.voip", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/speech.control", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/speech.recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/speech.synthesis", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/systemsetting", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/systemsetting.home_screen", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/systemsetting.incoming_call", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/systemsetting.lock_screen", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/systemsetting.notification_email", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/usb.accessory", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/usb.host", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.barcode_detection", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.barcode_generation", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.face_recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.image_recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.qrcode_generation", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/vision.qrcode_recognition", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/web.ime", KEY_TYPE_BOOL },
+       { "http://tizen.org/feature/web.service", KEY_TYPE_BOOL },
+       { "http://tizen.org/system/build.date", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.id", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.string", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.time", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.type", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.variant", KEY_TYPE_STRING },
+       { "http://tizen.org/system/build.release", KEY_TYPE_STRING },
+       { "http://tizen.org/system/manufacturer", KEY_TYPE_STRING },
+       { "http://tizen.org/system/model_name", KEY_TYPE_STRING },
+       { "http://tizen.org/system/platform.communication_processor", KEY_TYPE_STRING },
+       { "http://tizen.org/system/platform.name", KEY_TYPE_STRING },
+       { "http://tizen.org/system/platform.processor", KEY_TYPE_STRING },
+       { "http://tizen.org/system/sound.media.volume.resolution.max", KEY_TYPE_INT },
+       { "http://tizen.org/system/sound.notification.volume.resolution.max", KEY_TYPE_INT },
+       { "http://tizen.org/system/sound.ringtone.volume.resolution.max", KEY_TYPE_INT },
+       { "http://tizen.org/system/sound.system.volume.resolution.max", KEY_TYPE_INT },
+       { "http://tizen.org/system/tizenid", KEY_TYPE_STRING },
 };
 
 #endif /* __TTS_SYSTEM_INFO_CONTROLLER_H__ */
index 1930b3e..58bbb09 100644 (file)
@@ -62,6 +62,7 @@ static void service_app_terminate(void *data)
 static void service_app_control(app_control_h app_control, void *data)
 {
     /* APP_CONTROL */
+       service_app_exit();
 }
 
 static void service_app_lang_changed(app_event_info_h event_info, void *user_data)
@@ -170,6 +171,8 @@ static int __get_system_info_string(char *key, void *data)
                fprintf(ad->file, "[%s] : [%s]\n", key, val);
        }
 
+       free(val);
+
        return 0;
 
 ERROR:
@@ -208,13 +211,13 @@ static int __get_system_info(void *data)
        for (i = 0; i < INFO_KEY_MAX && sys_info[i].key != NULL; i++) {
                switch (sys_info[i].type)
                {
-               case INT:
+               case KEY_TYPE_INT:
                        ret = __get_system_info_int(sys_info[i].key, data);
                        break;
-               case BOOL:
+               case KEY_TYPE_BOOL:
                        ret = __get_system_info_bool(sys_info[i].key, data);
                        break;
-               case STRING:
+               case KEY_TYPE_STRING:
                        ret = __get_system_info_string(sys_info[i].key, data);
                        break;
                default: