Menu

[b84aab]: / src / platform / tizen / main.cpp  Maximize  Restore  History

Download this file

35 lines (27 with data), 936 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// This file is part of SmallBASIC
//
// Copyright(C) 2001-2013 Chris Warren-Smith.
//
// This program is distributed under the terms of the GPL v2.0 or later
// Download the GNU Public License (GPL) from www.gnu.org
//
#include "config.h"
#include "platform/tizen/application.h"
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
/**
* The entry function of tizen application called by the operating system.
*/
extern "C" _EXPORT_ int OspMain(int argc, char *pArgv[]) {
result r = E_SUCCESS;
AppLog("Application started.");
ArrayList args(SingleObjectDeleter);
args.Construct();
for (int i = 0; i < argc; i++) {
args.Add(new (std::nothrow) Tizen::Base::String(pArgv[i]));
}
r = Tizen::App::UiApp::Execute(TizenApp::createInstance, &args);
TryLog(r == E_SUCCESS, "[%s] Application execution failed", GetErrorMessage(r));
AppLog("Application finished.");
return static_cast<int>(r);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.