Tizen 2.0 Release
[framework/osp/media.git] / src / FMedia_CameraRefHelper.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                        FMedia_CameraRefHelper.cpp
20  * @brief                       This file contains the implementation of the %_CameraRefHelper class.
21  *
22  */
23
24 #include "FMedia_CameraRefHelper.h"
25
26 namespace Tizen { namespace Media
27 {
28
29 _CameraRefHelper::_CameraRefHelper()
30         : __refCount(0)
31 {
32 }
33
34 _CameraRefHelper::~_CameraRefHelper()
35 {
36 }
37
38 int
39 _CameraRefHelper::AddRefCount(void)
40 {
41         __refCount++;
42         return __refCount;
43 }
44
45 int
46 _CameraRefHelper::ReleaseRefCount(void)
47 {
48         if ( __refCount > 0 )
49         {
50                 __refCount--;
51         }
52         return __refCount;
53 }
54
55 }}// Tizen::Media