summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eldbus_mono/eldbus_object.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eldbus_mono/eldbus_object.cs')
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_object.cs26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/bindings/mono/eldbus_mono/eldbus_object.cs b/src/bindings/mono/eldbus_mono/eldbus_object.cs
index 7c7e325..3c77d25 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_object.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_object.cs
@@ -1,3 +1,19 @@
1/*
2 * Copyright 2019 by its authors. See AUTHORS.
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
1#pragma warning disable 1591 17#pragma warning disable 1591
2 18
3using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
@@ -11,7 +27,7 @@ namespace eldbus
11{ 27{
12 28
13[EditorBrowsable(EditorBrowsableState.Never)] 29[EditorBrowsable(EditorBrowsableState.Never)]
14public static class EldbusObjectNativeFunctions 30internal static class EldbusObjectNativeFunctions
15{ 31{
16 [DllImport(efl.Libs.Eldbus)] public static extern IntPtr 32 [DllImport(efl.Libs.Eldbus)] public static extern IntPtr
17 eldbus_object_get(IntPtr conn, string bus, string path); 33 eldbus_object_get(IntPtr conn, string bus, string path);
@@ -130,17 +146,17 @@ public class Object : System.IDisposable
130 { 146 {
131 if (conn == null) 147 if (conn == null)
132 { 148 {
133 throw new System.ArgumentNullException("conn"); 149 throw new System.ArgumentNullException(nameof(conn));
134 } 150 }
135 151
136 if (bus == null) 152 if (bus == null)
137 { 153 {
138 throw new System.ArgumentNullException("bus"); 154 throw new System.ArgumentNullException(nameof(bus));
139 } 155 }
140 156
141 if (path == null) 157 if (path == null)
142 { 158 {
143 throw new System.ArgumentNullException("path"); 159 throw new System.ArgumentNullException(nameof(path));
144 } 160 }
145 161
146 var handle = eldbus_object_get(conn.Handle, bus, path); 162 var handle = eldbus_object_get(conn.Handle, bus, path);
@@ -300,7 +316,7 @@ public class Object : System.IDisposable
300 316
301 if (msg == null) 317 if (msg == null)
302 { 318 {
303 throw new System.ArgumentNullException("msg"); 319 throw new System.ArgumentNullException(nameof(msg));
304 } 320 }
305 321
306 IntPtr cb_wrapper = dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr(); 322 IntPtr cb_wrapper = dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr();