Add event for update application
[platform/framework/native/appfw.git] / src / app / FAppInit.cpp
1 //
2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file        FApp_AppInit.cpp
19  */
20
21 #include "FApp_AppControlRegistry.h"
22 #include "FApp_AppManagerProxy.h"
23
24
25 using namespace Tizen::App;
26
27
28 static _AppControlRegistry* pRegs = null;
29
30 extern "C"
31 {
32
33 void
34 FApp_Initialize(void)
35 {
36         pRegs = _AppControlRegistry::GetInstance();
37 }
38
39 void
40 FApp_Finalize(void)
41 {
42         delete pRegs;
43         pRegs = null;
44
45         _AppManagerProxy::DeleteService();
46 }
47
48 }
49