[Release version 0.2.48] Fix coding rule violation 92/64392/2 accepted/tizen/common/20160413.131029 accepted/tizen/ivi/20160413.082816 accepted/tizen/mobile/20160413.073306 accepted/tizen/tv/20160413.075601 accepted/tizen/wearable/20160413.080607 submit/tizen/20160412.081107
authorhaesu.gwon <haesu.gwon@samsung.com>
Fri, 1 Apr 2016 02:47:03 +0000 (11:47 +0900)
committerhaesu.gwon <haesu.gwon@samsung.com>
Fri, 1 Apr 2016 02:55:04 +0000 (11:55 +0900)
Change-Id: I35f36121a880d7df04b75687c2913a66c945b384
Signed-off-by: haesu.gwon <haesu.gwon@samsung.com>
doc/camera_doc.h
packaging/capi-media-camera.spec
src/camera.c
test/camera_test.c

index 5d2c4a1..1372c49 100644 (file)
 /**
  * @ingroup CAPI_MEDIA_CAMERA_MODULE
  * @defgroup CAPI_MEDIA_CAMERA_ATTRIBUTES_MODULE Attributes
- * @brief The @ref CAPI_MEDIA_CAMERA_ATTRIBUTES_MODULE API provides functions to fetch camera attributes. 
+ * @brief The @ref CAPI_MEDIA_CAMERA_ATTRIBUTES_MODULE API provides functions to fetch camera attributes.
  *
  * @section CAPI_MEDIA_CAMERA_ATTRIBUTES_MODULE_HEADER Required Header
  *   \#include <camera.h>
index 116074e..5e4b42a 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.2.47
+Version:    0.2.48
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 004027f..55725b8 100644 (file)
@@ -69,9 +69,8 @@ static void __global(void *data, struct wl_registry *registry,
                LOGD("binding tizen surface for wayland");
 
                *tz_surface = wl_registry_bind(registry, name, &tizen_surface_interface, version);
-               if (*tz_surface == NULL) {
+               if (*tz_surface == NULL)
                        LOGE("failed to bind");
-               }
 
                LOGD("done");
        }
@@ -85,8 +84,7 @@ static void __global_remove(void *data, struct wl_registry *wl_registry, uint32_
        return;
 }
 
-static const struct wl_registry_listener _camera_wl_registry_listener =
-{
+static const struct wl_registry_listener _camera_wl_registry_listener = {
        __global,
        __global_remove
 };
@@ -100,13 +98,12 @@ void __parent_id_getter(void *data, struct tizen_resource *tizen_resource, uint3
 
        *((unsigned int *)data) = id;
 
-    LOGD("[CLIENT] got parent_id [%u] from server", id);
+       LOGD("[CLIENT] got parent_id [%u] from server", id);
 
        return;
 }
 
-static const struct tizen_resource_listener _camera_tz_resource_listener =
-{
+static const struct tizen_resource_listener _camera_tz_resource_listener = {
        __parent_id_getter
 };
 
index 6ec0003..dbd713d 100644 (file)
@@ -1047,11 +1047,11 @@ static void setting_menu(gchar buf)
                        err = scanf("%d", &idx);
                        bret = camera_attr_set_flash_mode(hcamcorder->camera, idx);
                        break;
-               case 'S' : // Setting > flash state
+               case 'S': /* Setting > flash state */
                        g_print("*flash state\n");
                        err = camera_get_flash_state(cam_info, (camera_flash_state_e *)&idx);
                        if (CAMERA_ERROR_NONE == err)
-                               g_print("Current flash state = %s\n", idx?"ON":"OFF");
+                               g_print("Current flash state = %s\n", idx ? "ON" : "OFF");
                        else
                                g_print("* Error : %d\n", err);
                        break;