DALi C# binding
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / cpp / DaliWrapper.cpp
1 /*
2  * Copyright (c) 2016 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 // DaliWrapper.cpp : Defines the entry point for the DLL application.
19 //
20
21 #include "stdafx.h"
22 #include "DaliWrapper.h"
23
24 BOOL APIENTRY DllMain( HANDLE hModule,
25                         DWORD  ul_reason_for_call,
26                         LPVOID lpReserved
27                       )
28 {
29   switch (ul_reason_for_call)
30   {
31     case DLL_PROCESS_ATTACH:
32     case DLL_THREAD_ATTACH:
33     case DLL_THREAD_DETACH:
34     case DLL_PROCESS_DETACH:
35     break;
36   }
37   return TRUE;
38 }
39
40 // This is an example of an exported variable
41 DALIWRAPPER_API int nDaliWrapper=0;
42
43 // This is an example of an exported function.
44 DALIWRAPPER_API int fnDaliWrapper(void)
45 {
46   return 18;
47 }
48
49 // This is the constructor of a class that has been exported.
50 // see DaliWrapper.h for the class definition
51 CDaliWrapper::CDaliWrapper()
52 {
53   return;
54 }