Add plugin api to add native dll searching path (#343)
[platform/core/dotnet/launcher.git] / NativeLauncher / dotnet-plugin / dotnet_plugin.cc
1 /*\r
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the License);\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  * http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an AS IS BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 #include <unistd.h>\r
18 \r
19 #include "dotnet_launcher_plugin.h"\r
20 #include "log.h"\r
21 \r
22 void plugin_initialize(const char* appType)\r
23 {\r
24         _SOUT("### plugin_initialize called");\r
25 }\r
26 \r
27 void plugin_preload()\r
28 {\r
29         _SOUT("### plugin_preload called");\r
30 }\r
31 \r
32 void plugin_set_app_info(const char* appId, const char* managedAssemblyPath)\r
33 {\r
34         _SOUT("### plugin_set_app_info called");\r
35 }\r
36 \r
37 bool plugin_has_log_control()\r
38 {\r
39         _SOUT("### plugin_has_log_control called");\r
40         return false;\r
41 }\r
42 \r
43 void plugin_set_coreclr_info(void* hostHandle, unsigned int domainId, coreclr_create_delegate_ptr delegateFunc)\r
44 {\r
45         _SOUT("### plugin_set_coreclr_info called");\r
46 }\r
47 \r
48 char* plugin_get_dll_path()\r
49 {\r
50         _SOUT("### plugin_get_dll_path called");\r
51         return "";\r
52 }\r
53 \r
54 char* plugin_get_native_dll_searching_path()\r
55 {\r
56         _SOUT("### plugin_get_native_dll_searching_path called");\r
57         return "";\r
58 }\r
59 \r
60 char* plugin_get_tpa()\r
61 {\r
62         _SOUT("### plugin_get_tpa called");\r
63         return "";\r
64 }\r
65 \r
66 void plugin_before_execute()\r
67 {\r
68         _SOUT("### plugin_before_execute called");\r
69 }\r
70 \r
71 void plugin_finalize()\r
72 {\r
73         _SOUT("### plugin_finalize called");\r
74 }\r
75 \r