From f691187c22ddfbf02a008f2a4c00732b915cf9fd Mon Sep 17 00:00:00 2001 From: Taeyoung Kim Date: Thu, 9 Jul 2015 17:40:19 +0900 Subject: [PATCH] [runtime-info] exchange removed key to available key in tutorial Change-Id: I10e7f63a3f4969d6273339b2d33a8ddd5dab06cc Signed-off-by: Taeyoung Kim --- .../html/native/system/runtime_tutorial_n.htm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/org.tizen.tutorials/html/native/system/runtime_tutorial_n.htm b/org.tizen.tutorials/html/native/system/runtime_tutorial_n.htm index 71b14e5..da6feea 100644 --- a/org.tizen.tutorials/html/native/system/runtime_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/system/runtime_tutorial_n.htm @@ -83,8 +83,8 @@ void func(void)    dlog_print(DLOG_INFO, LOG_TAG, "Bluetooth: %s", value ? "Enabled" : "Disabled"); } -
  • Get the Wi-Fi status. -

    Use the RUNTIME_INFO_KEY_WIFI_STATUS key to get the Wi-Fi status. The type of the value is integer, and the runtime_info_get_value_int() function is used for the information.

    +
  • Get the audio jack status. +

    Use the RUNTIME_INFO_KEY_AUDIO_JACK_STATUS key to get the audio jack status. The type of the value is integer, and the runtime_info_get_value_int() function is used for the information.

     #include <runtime_info.h>
    @@ -94,24 +94,24 @@ void func(void)
        int value;
        int ret;
     
    -   ret = runtime_info_get_value_int(RUNTIME_INFO_KEY_WIFI_STATUS, &value);
    +   ret = runtime_info_get_value_int(RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, &value);
        if (ret != RUNTIME_INFO_ERROR_NONE)
        {
           // Error handling
           return;
        }
     
    -   dlog_print(DLOG_INFO, LOG_TAG, "Wi-Fi status: %d", value);
    +   dlog_print(DLOG_INFO, LOG_TAG, "Audio jack status: %d", value);
        switch (value)
        {
    -   case RUNTIME_INFO_WIFI_STATUS_DISABLED:
    -      // Wi-Fi is disabled 
    +   case RUNTIME_INFO_AUDIO_JACK_STATUS_UNCONNECTED:
    +      // Audio jack is disabled
           break;
    -   case RUNTIME_INFO_WIFI_STATUS_UNCONNECTED:
    -      // Wi-Fi is disconnected 
    +   case RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE:
    +      // 3-conductor wire is disconnected
           break;
    -   case RUNTIME_INFO_WIFI_STATUS_CONNECTED:
    -      // Wi-Fi is connected 
    +   case RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE:
    +      // 4-conductor wire is connected
           break;
        }
     }
    -- 
    2.7.4