[SAMPLE APP][GPS-CONSUMER] non-public functions removed
authorMichal Pawluk <m.pawluk@samsung.com>
Fri, 7 Aug 2015 08:15:37 +0000 (10:15 +0200)
committerAgnieszka Janowicz <a.janowicz@samsung.com>
Fri, 7 Aug 2015 09:16:36 +0000 (11:16 +0200)
Change-Id: I51f782bc47ee5e8645d2430301485e2e1f09a4f7
Signed-off-by: Michal Pawluk <m.pawluk@samsung.com>
Signed-off-by: Agnieszka Janowicz <a.janowicz@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/gps_consumer_sd_mn.htm

index 990acfa..5e88fe1 100644 (file)
@@ -53,7 +53,7 @@
 int local_port_id = message_port_register_local_port(LOCAL_PORT_NAME, _msg_port_cb, NULL);
 if (local_port_id &lt; 0)
 {
-&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to register port, error: %d&quot;, local_port_id);
+&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to register port, error: %d&quot;, local_port_id);
        
 &nbsp;&nbsp;&nbsp;return false;
 }
@@ -79,7 +79,7 @@ _msg_port_cb(int local_port_id, const char *remote_app_id, const char *remote_po
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGI(&quot;Received message from %s: satellites_count %s&quot;, remote_app_id, satellites_count_str);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, (&quot;Received message from %s: satellites_count %s&quot;, remote_app_id, satellites_count_str);
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_satellites_update(satellites_count_str);
 &nbsp;&nbsp;&nbsp;}
 &nbsp;&nbsp;&nbsp;else if (!strncmp(msg_type, MESSAGE_TYPE_POSITION_UPDATE, strlen(msg_type)))
@@ -89,7 +89,7 @@ _msg_port_cb(int local_port_id, const char *remote_app_id, const char *remote_po
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGI(&quot;Received message from %s: position data: %s %s&quot;, remote_app_id, latitude_str, longitude_str);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_INFO, LOG_TAG, (&quot;Received message from %s: position data: %s %s&quot;, remote_app_id, latitude_str, longitude_str);
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_position_update(latitude_str, longitude_str);
 &nbsp;&nbsp;&nbsp;}
 }
@@ -101,7 +101,7 @@ _bundle_str_error_check_get(bundle *message, char *msg_type, char **message_cont
 {
 &nbsp;&nbsp;&nbsp;if (bundle_get_str(message, msg_type, message_content) != BUNDLE_ERROR_NONE)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to get message: %s&quot;, msg_type);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to get message: %s&quot;, msg_type);
                
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;
 &nbsp;&nbsp;&nbsp;}
@@ -120,7 +120,7 @@ _circle_init(char *circle_latitude_str, char *circle_longitude_str)
 
 &nbsp;&nbsp;&nbsp;if (!circle_latitude_str || !circle_longitude_str)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGE(&quot;Invalid parameter&quot;);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Invalid parameter&quot;);
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;}
 
@@ -141,7 +141,7 @@ _position_update(char *latitude_str, char *longitude_str)
 
 &nbsp;&nbsp;&nbsp;if (!latitude_str || !longitude_str)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGE(&quot;Invalid parameter&quot;);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Invalid parameter&quot;);
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;}
@@ -172,7 +172,7 @@ _map_create(Evas_Object *parent)
 &nbsp;&nbsp;&nbsp;Evas_Object *map = elm_map_add(parent);
 &nbsp;&nbsp;&nbsp;if (!map)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to create map&quot;);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to create map&quot;);
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return NULL;
 &nbsp;&nbsp;&nbsp;}
@@ -193,12 +193,12 @@ _map_create(Evas_Object *parent)
          <p>The minimum zoom level with which the overlay is displayed is set with the <span style="font-family: Courier New,Courier,monospace">elm_map_overlay_displayed_zoom_min_set()</span> function.</p>
       <pre class="prettyprint">
 // Create circle boundary
-LOGI(&quot;Circle boundary overlay at %lf, %lf&quot;, circle_longitude, circle_latitude);
+dlog_print(DLOG_INFO, LOG_TAG, (&quot;Circle boundary overlay at %lf, %lf&quot;, circle_longitude, circle_latitude);
 
 s_view_data.boundary_overlay = elm_map_overlay_circle_add(s_view_data.map, circle_longitude, circle_latitude, BOUNDARY_CIRCLE_RADIUS_REL);
 if (!s_view_data.boundary_overlay)
 {
-&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to create boundary overlay&quot;);
+&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to create boundary overlay&quot;);
 
 &nbsp;&nbsp;&nbsp;return;
 }
@@ -212,15 +212,15 @@ elm_map_overlay_displayed_zoom_min_set(s_view_data.boundary_overlay, ZOOM_LEVEL)
 circle_coords.longitude = circle_longitude;
  circle_coords.latitude = circle_latitude;
 
-LOGI(&quot;center: %lf %lf, radius %lf&quot;, circle_coords.longitude, circle_coords.latitude, BOUNDARY_CIRCLE_RADIUS_M);
+dlog_print(DLOG_INFO, LOG_TAG, (&quot;center: %lf %lf, radius %lf&quot;, circle_coords.longitude, circle_coords.latitude, BOUNDARY_CIRCLE_RADIUS_M);
 int ret = location_bounds_create_circle(circle_coords, BOUNDARY_CIRCLE_RADIUS_M, &amp;s_view_data.bounds);
 if (ret != LOCATIONS_ERROR_NONE)
 {
-&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to create circle bound: error %d&quot;, ret);
+&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to create circle bound: error %d&quot;, ret);
 
 &nbsp;&nbsp;&nbsp;return;
 }
-LOGI(&quot;Circle bounds created - %.1fm radius, center at %f, %f&quot;, BOUNDARY_CIRCLE_RADIUS_M, circle_coords.longitude, circle_coords.latitude);
+dlog_print(DLOG_INFO, LOG_TAG, (&quot;Circle bounds created - %.1fm radius, center at %f, %f&quot;, BOUNDARY_CIRCLE_RADIUS_M, circle_coords.longitude, circle_coords.latitude);
       </pre></li>
     </ul>
 
@@ -236,7 +236,7 @@ if (!s_view_data.pos_overlay)
 &nbsp;&nbsp;&nbsp;s_view_data.pos_overlay = elm_map_overlay_add(s_view_data.map, longitude, latitude);
 &nbsp;&nbsp;&nbsp;if (!s_view_data.pos_overlay)
 &nbsp;&nbsp;&nbsp;{
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOGE(&quot;Failed to create position overlay&quot;);
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dlog_print(DLOG_ERROR, LOG_TAG, &quot;Failed to create position overlay&quot;);
 
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;
 &nbsp;&nbsp;&nbsp;}
@@ -295,4 +295,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>