2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file SecurirtyServiceEntry.cpp
19 * @brief This is the implementation file for SecurirtyService entry point.
22 #include <FOspConfig.h>
23 #include <FBaseSysLog.h>
24 #include <FBaseColArrayList.h>
26 #include "SecurityService.h"
28 using namespace Tizen::Base;
29 using namespace Tizen::Base::Collection;
36 _OSP_EXPORT_ int OspMain(int argc, char *pArgv[]);
38 extern void start_profile (void);
39 extern void end_profile (void);
41 #define start_profile(void)
42 #define end_profile(void)
47 * The entry function of Tizen application called by the operating system.
50 OspMain(int argc, char *pArgv[])
54 AppLog("Application started.");
55 ArrayList* pArgs = new ArrayList();
57 for (int i = 0; i < argc; i++)
59 pArgs->Add(*(new String(pArgv[i])));
63 r = Tizen::App::ServiceApp::Execute(SecurityService::CreateInstance, pArgs);
66 AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
71 pArgs->RemoveAll(true);
73 AppLog("Application finished.");
75 return static_cast<int>(r);