summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eldbus_mono/eldbus_connection.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eldbus_mono/eldbus_connection.cs')
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_connection.cs29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/bindings/mono/eldbus_mono/eldbus_connection.cs b/src/bindings/mono/eldbus_mono/eldbus_connection.cs
index 6a75bb9..ba54408 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_connection.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_connection.cs
@@ -1,3 +1,18 @@
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 */
1#pragma warning disable 1591 16#pragma warning disable 1591
2 17
3using System; 18using System;
@@ -10,7 +25,7 @@ namespace eldbus
10{ 25{
11 26
12[EditorBrowsable(EditorBrowsableState.Never)] 27[EditorBrowsable(EditorBrowsableState.Never)]
13public static class EldbusConnectionNativeFunctions 28internal static class EldbusConnectionNativeFunctions
14{ 29{
15 [DllImport(efl.Libs.Eldbus)] public static extern IntPtr 30 [DllImport(efl.Libs.Eldbus)] public static extern IntPtr
16 eldbus_connection_get(eldbus.Connection.Type type); 31 eldbus_connection_get(eldbus.Connection.Type type);
@@ -283,7 +298,7 @@ public class Connection : IDisposable
283 298
284 if (msg == null) 299 if (msg == null)
285 { 300 {
286 throw new ArgumentNullException("msg"); 301 throw new ArgumentNullException(nameof(msg));
287 } 302 }
288 303
289 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 304 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());
@@ -332,7 +347,7 @@ public class Connection : IDisposable
332 347
333 if (bus == null) 348 if (bus == null)
334 { 349 {
335 throw new ArgumentNullException("bus"); 350 throw new ArgumentNullException(nameof(bus));
336 } 351 }
337 352
338 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 353 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());
@@ -361,7 +376,7 @@ public class Connection : IDisposable
361 376
362 if (bus == null) 377 if (bus == null)
363 { 378 {
364 throw new ArgumentNullException("bus"); 379 throw new ArgumentNullException(nameof(bus));
365 } 380 }
366 381
367 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 382 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());
@@ -390,7 +405,7 @@ public class Connection : IDisposable
390 405
391 if (bus == null) 406 if (bus == null)
392 { 407 {
393 throw new ArgumentNullException("bus"); 408 throw new ArgumentNullException(nameof(bus));
394 } 409 }
395 410
396 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 411 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());
@@ -419,7 +434,7 @@ public class Connection : IDisposable
419 434
420 if (bus == null) 435 if (bus == null)
421 { 436 {
422 throw new ArgumentNullException("bus"); 437 throw new ArgumentNullException(nameof(bus));
423 } 438 }
424 439
425 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 440 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());
@@ -518,7 +533,7 @@ public class Connection : IDisposable
518 533
519 if (bus == null) 534 if (bus == null)
520 { 535 {
521 throw new ArgumentNullException("bus"); 536 throw new ArgumentNullException(nameof(bus));
522 } 537 }
523 538
524 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr()); 539 IntPtr cb_wrapper = (dlgt == null ? IntPtr.Zero : eldbus.Common.GetMessageCbWrapperPtr());