From: Jeongmo Yang Date: Thu, 15 Oct 2015 06:43:20 +0000 (+0900) Subject: Update header file for Tizen Coding Rule X-Git-Tag: accepted/tizen/mobile/20151015.093419^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F74%2F49574%2F1;p=platform%2Fcore%2Fapi%2Frecorder.git Update header file for Tizen Coding Rule Change-Id: I7056a8d499fa3a289b81420dc240d3d13aba39aa Signed-off-by: Jeongmo Yang --- diff --git a/include/recorder.h b/include/recorder.h index ed94804..d484b35 100644 --- a/include/recorder.h +++ b/include/recorder.h @@ -47,8 +47,7 @@ typedef struct recorder_s *recorder_h; * @brief Enumeration for error code of the media recorder. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ RECORDER_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ RECORDER_ERROR_INVALID_STATE = RECORDER_ERROR_CLASS | 0x02, /**< Invalid state */ @@ -70,8 +69,7 @@ typedef enum * @brief Enumeration for recorder states. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_STATE_NONE, /**< Recorder is not created */ RECORDER_STATE_CREATED, /**< Recorder is created, but not prepared */ RECORDER_STATE_READY, /**< Recorder is ready to record \n In case of video recorder, preview display will be shown */ @@ -83,8 +81,7 @@ typedef enum * @brief Enumeration for the recording limit. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_RECORDING_LIMIT_TIME, /**< Time limit (second) of recording file */ RECORDER_RECORDING_LIMIT_SIZE, /**< Size limit (kilo bytes [KB]) of recording file */ RECORDER_RECORDING_LIMIT_FREE_SPACE, /**< No free space in storage */ @@ -94,8 +91,7 @@ typedef enum * @brief Enumeration for the file container format. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_FILE_FORMAT_3GP, /**< 3GP file format */ RECORDER_FILE_FORMAT_MP4, /**< MP4 file format */ RECORDER_FILE_FORMAT_AMR, /**< AMR file format */ @@ -108,8 +104,7 @@ typedef enum * @brief Enumeration for the audio codec. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_AUDIO_CODEC_DISABLE = -1, /**< Disable audio track */ RECORDER_AUDIO_CODEC_AMR = 0, /**< AMR codec */ RECORDER_AUDIO_CODEC_AAC, /**< AAC codec */ @@ -121,8 +116,7 @@ typedef enum * @brief Enumeration for the video codec. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_VIDEO_CODEC_H263, /**< H263 codec */ RECORDER_VIDEO_CODEC_H264, /**< H264 codec */ RECORDER_VIDEO_CODEC_MPEG4, /**< MPEG4 codec */ @@ -133,8 +127,7 @@ typedef enum * @brief Enumeration for audio capture devices. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_AUDIO_DEVICE_MIC, /**< Mic device */ RECORDER_AUDIO_DEVICE_MODEM, /**< Modem */ } recorder_audio_device_e; @@ -143,8 +136,7 @@ typedef enum * @brief Enumeration for the recorder rotation type. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_ROTATION_NONE, /**< No rotation */ RECORDER_ROTATION_90, /**< 90 degree rotation */ RECORDER_ROTATION_180, /**< 180 degree rotation */ @@ -155,8 +147,7 @@ typedef enum * @brief Enumeration for the recorder policy. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { RECORDER_POLICY_NONE = 0, /**< None */ RECORDER_POLICY_SOUND, /**< Sound policy (Deprecated since 3.0) */ RECORDER_POLICY_SOUND_BY_CALL, /**< Sound policy by CALL (Deprecated since 3.0) */ @@ -829,8 +820,7 @@ int recorder_get_video_resolution(recorder_h recorder, int *width, int *height); * @see recorder_get_video_resolution() * @see recorder_supported_video_resolution_cb() */ -int recorder_foreach_supported_video_resolution(recorder_h recorder, - recorder_supported_video_resolution_cb foreach_cb, void *user_data); +int recorder_foreach_supported_video_resolution(recorder_h recorder, recorder_supported_video_resolution_cb foreach_cb, void *user_data); /** * @} diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index d8702cd..e619ef0 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -1,7 +1,7 @@ Name: capi-media-recorder Summary: A Recorder library in Tizen Native API -Version: 0.2.6 -Release: 1 +Version: 0.2.7 +Release: 0 Group: Multimedia/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz