[runtime-info] exchange removed key to available key in tutorial
authorTaeyoung Kim <ty317.kim@samsung.com>
Thu, 9 Jul 2015 08:40:19 +0000 (17:40 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Thu, 9 Jul 2015 08:40:19 +0000 (17:40 +0900)
Change-Id: I10e7f63a3f4969d6273339b2d33a8ddd5dab06cc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
org.tizen.tutorials/html/native/system/runtime_tutorial_n.htm

index 71b14e5..da6feea 100644 (file)
@@ -83,8 +83,8 @@ void func(void)
 &nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Bluetooth: %s&quot;, value ? &quot;Enabled&quot; : &quot;Disabled&quot;);
 }
 </pre></li>
-<li>Get the Wi-Fi status.
-<p>Use the <span style="font-family: Courier New,Courier,monospace">RUNTIME_INFO_KEY_WIFI_STATUS</span> key to get the Wi-Fi status. The type of the value is <span style="font-family: Courier New,Courier,monospace">integer</span>, and the <span style="font-family: Courier New,Courier,monospace">runtime_info_get_value_int()</span> function is used for the information.</p>
+<li>Get the audio jack status.
+<p>Use the <span style="font-family: Courier New,Courier,monospace">RUNTIME_INFO_KEY_AUDIO_JACK_STATUS</span> key to get the audio jack status. The type of the value is <span style="font-family: Courier New,Courier,monospace">integer</span>, and the <span style="font-family: Courier New,Courier,monospace">runtime_info_get_value_int()</span> function is used for the information.</p>
        
 <pre class="prettyprint">
 #include &lt;runtime_info.h&gt;
@@ -94,24 +94,24 @@ void func(void)
 &nbsp;&nbsp;&nbsp;int value;
 &nbsp;&nbsp;&nbsp;int ret;
 
-&nbsp;&nbsp;&nbsp;ret = runtime_info_get_value_int(RUNTIME_INFO_KEY_WIFI_STATUS, &amp;value);
+&nbsp;&nbsp;&nbsp;ret = runtime_info_get_value_int(RUNTIME_INFO_KEY_AUDIO_JACK_STATUS, &amp;value);
 &nbsp;&nbsp;&nbsp;if (ret != RUNTIME_INFO_ERROR_NONE)
 &nbsp;&nbsp;&nbsp;{
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Error handling
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;}
 
-&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Wi-Fi status: %d&quot;, value);
+&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, &quot;Audio jack status: %d&quot;, value);
 &nbsp;&nbsp;&nbsp;switch (value)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_WIFI_STATUS_DISABLED:
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Wi-Fi is disabled 
+&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_AUDIO_JACK_STATUS_UNCONNECTED:
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Audio jack is disabled
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
-&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_WIFI_STATUS_UNCONNECTED:
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Wi-Fi is disconnected 
+&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE:
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 3-conductor wire is disconnected
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
-&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_WIFI_STATUS_CONNECTED:
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Wi-Fi is connected 
+&nbsp;&nbsp;&nbsp;case RUNTIME_INFO_AUDIO_JACK_STATUS_CONNECTED_3WIRE:
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 4-conductor wire is connected
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
 &nbsp;&nbsp;&nbsp;}
 }