Add SetSwitch API to Tizen.Runtime
[platform/core/dotnet/launcher.git] / NativeLauncher / inc / coreclr_host.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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 #ifndef __CORECLR_HOST_H__
18 #define __CORECLR_HOST_H__
19
20 extern "C"
21 {
22         typedef int (*coreclr_initialize_ptr)(
23                         const char* exePath,
24                         const char* appDomainFriendlyName,
25                         int propertyCount,
26                         const char** propertyKeys,
27                         const char** propertyValues,
28                         void** hostHandle,
29                         unsigned int* domainId);
30
31         typedef int (*coreclr_execute_assembly_ptr)(
32                         void* hostHandle,
33                         unsigned int domainId,
34                         int argc,
35                         const char** argv,
36                         const char* managedAssemblyPath,
37                         unsigned int* exitCode);
38
39         typedef int (*coreclr_shutdown_ptr)(
40                         void* hostHandle,
41                         unsigned int domainId);
42
43         typedef int (*coreclr_create_delegate_ptr)(
44                         void* hostHandle,
45                         unsigned int domainId,
46                         const char* entryPointAssemblyName,
47                         const char* entryPointTypeName,
48                         const char* entryPointMethodName,
49                         void** delegate);
50
51         typedef int (*coreclr_preload_assembly_ptr)(
52                  const char* assemblyPath);
53 }
54
55 #endif /* __CORECLR_HOST_H__ */