2 * Copyright (c) 2018 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.
25 SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeVersionCheck(int * ver1, int * ver2, int * ver3 ) {
28 *ver1 = Dali::CORE_MAJOR_VERSION;
29 *ver2 = Dali::CORE_MINOR_VERSION;
30 *ver3 = Dali::CORE_MICRO_VERSION;
31 } CALL_CATCH_EXCEPTION(false);
36 SWIGEXPORT bool SWIGSTDCALL CSharp_NUI_InternalAPIVersionCheck(int * version, int * reserved1, int * reserved2 )
40 if(Dali::CORE_MAJOR_VERSION == 1 && Dali::CORE_MINOR_VERSION == 2)
42 //by dali_1.2.85, nui_api_internal_version is set as 400
43 if(Dali::CORE_MICRO_VERSION <= 85)
50 //from dali_1.2.86, nui_api_internal_version is set as 401
51 else if(Dali::CORE_MICRO_VERSION == 86)
58 //gotten wrong native wrong version
61 *version = Dali::CORE_MAJOR_VERSION;
62 *reserved1 = Dali::CORE_MINOR_VERSION;
63 *reserved2 = Dali::CORE_MICRO_VERSION;
67 else if(Dali::CORE_MAJOR_VERSION == 1 && Dali::CORE_MINOR_VERSION == 3)
69 if(Dali::CORE_MICRO_VERSION <= 22)
71 //by dali_1.3.22, nui_api_internal_version is set as 500
77 else if(Dali::CORE_MICRO_VERSION <= 27)
79 //from dali_1.3.23 to dali 1.3.27, nui_api_internal_version is set as 501
85 else if(Dali::CORE_MICRO_VERSION <= 33)
87 //from dali_1.3.28, nui_api_internal_version is set as 502
93 else if(Dali::CORE_MICRO_VERSION <= 40)
95 //from dali_1.3.34, nui_api_internal_version is set as 503
101 else if(Dali::CORE_MICRO_VERSION <= 47)
103 //from dali_1.3.41, nui_api_internal_version is set as 504
109 else if(Dali::CORE_MICRO_VERSION <= 99)
111 //from dali_1.3.48, nui_api_internal_version is set as 505
119 *version = Dali::CORE_MAJOR_VERSION;
120 *reserved1 = Dali::CORE_MINOR_VERSION;
121 *reserved2 = Dali::CORE_MICRO_VERSION;
128 *version = Dali::CORE_MAJOR_VERSION;
129 *reserved1 = Dali::CORE_MINOR_VERSION;
130 *reserved2 = Dali::CORE_MICRO_VERSION;
134 CALL_CATCH_EXCEPTION(false);