summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eldbus_mono/eldbus_message.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eldbus_mono/eldbus_message.cs')
-rw-r--r--src/bindings/mono/eldbus_mono/eldbus_message.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/bindings/mono/eldbus_mono/eldbus_message.cs b/src/bindings/mono/eldbus_mono/eldbus_message.cs
index b3826d6..a8c96ff 100644
--- a/src/bindings/mono/eldbus_mono/eldbus_message.cs
+++ b/src/bindings/mono/eldbus_mono/eldbus_message.cs
@@ -279,42 +279,42 @@ public class Message : IDisposable
279 { 279 {
280 CheckHandle(); 280 CheckHandle();
281 var ptr = eldbus_message_path_get(Handle); 281 var ptr = eldbus_message_path_get(Handle);
282 return Marshal.PtrToStringAuto(ptr); 282 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
283 } 283 }
284 284
285 public string GetInterface() 285 public string GetInterface()
286 { 286 {
287 CheckHandle(); 287 CheckHandle();
288 var ptr = eldbus_message_interface_get(Handle); 288 var ptr = eldbus_message_interface_get(Handle);
289 return Marshal.PtrToStringAuto(ptr); 289 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
290 } 290 }
291 291
292 public string GetMember() 292 public string GetMember()
293 { 293 {
294 CheckHandle(); 294 CheckHandle();
295 var ptr = eldbus_message_member_get(Handle); 295 var ptr = eldbus_message_member_get(Handle);
296 return Marshal.PtrToStringAuto(ptr); 296 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
297 } 297 }
298 298
299 public string GetDestination() 299 public string GetDestination()
300 { 300 {
301 CheckHandle(); 301 CheckHandle();
302 var ptr = eldbus_message_destination_get(Handle); 302 var ptr = eldbus_message_destination_get(Handle);
303 return Marshal.PtrToStringAuto(ptr); 303 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
304 } 304 }
305 305
306 public string GetSender() 306 public string GetSender()
307 { 307 {
308 CheckHandle(); 308 CheckHandle();
309 var ptr = eldbus_message_sender_get(Handle); 309 var ptr = eldbus_message_sender_get(Handle);
310 return Marshal.PtrToStringAuto(ptr); 310 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
311 } 311 }
312 312
313 public string GetSignature() 313 public string GetSignature()
314 { 314 {
315 CheckHandle(); 315 CheckHandle();
316 var ptr = eldbus_message_signature_get(Handle); 316 var ptr = eldbus_message_signature_get(Handle);
317 return Marshal.PtrToStringAuto(ptr); 317 return Eina.StringConversion.NativeUtf8ToManagedString(ptr);
318 } 318 }
319 319
320 public eldbus.Message NewError(string error_name, string error_msg) 320 public eldbus.Message NewError(string error_name, string error_msg)
@@ -341,8 +341,8 @@ public class Message : IDisposable
341 IntPtr name_ptr; 341 IntPtr name_ptr;
342 IntPtr text_ptr; 342 IntPtr text_ptr;
343 bool r = eldbus_message_error_get(Handle, out name_ptr, out text_ptr); 343 bool r = eldbus_message_error_get(Handle, out name_ptr, out text_ptr);
344 name = Marshal.PtrToStringAuto(name_ptr); 344 name = Eina.StringConversion.NativeUtf8ToManagedString(name_ptr);
345 text = Marshal.PtrToStringAuto(text_ptr); 345 text = Eina.StringConversion.NativeUtf8ToManagedString(text_ptr);
346 return r; 346 return r;
347 } 347 }
348 348
@@ -408,7 +408,7 @@ public class Message : IDisposable
408 CheckHandle(); 408 CheckHandle();
409 IntPtr aux; 409 IntPtr aux;
410 var r = eldbus_message_arguments_get(Handle, Argument.StringType.Signature, out aux); 410 var r = eldbus_message_arguments_get(Handle, Argument.StringType.Signature, out aux);
411 val = Marshal.PtrToStringAuto(aux); 411 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
412 return r; 412 return r;
413 } 413 }
414 414
@@ -417,7 +417,7 @@ public class Message : IDisposable
417 CheckHandle(); 417 CheckHandle();
418 IntPtr aux; 418 IntPtr aux;
419 var r = eldbus_message_arguments_get(Handle, Argument.ObjectPathType.Signature, out aux); 419 var r = eldbus_message_arguments_get(Handle, Argument.ObjectPathType.Signature, out aux);
420 val = Marshal.PtrToStringAuto(aux); 420 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
421 return r; 421 return r;
422 } 422 }
423 423
@@ -426,7 +426,7 @@ public class Message : IDisposable
426 CheckHandle(); 426 CheckHandle();
427 IntPtr aux; 427 IntPtr aux;
428 var r = eldbus_message_arguments_get(Handle, Argument.SignatureType.Signature, out aux); 428 var r = eldbus_message_arguments_get(Handle, Argument.SignatureType.Signature, out aux);
429 val = Marshal.PtrToStringAuto(aux); 429 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
430 return r; 430 return r;
431 } 431 }
432 432
@@ -617,7 +617,7 @@ public class MessageIterator
617 CheckHandle(); 617 CheckHandle();
618 IntPtr aux; 618 IntPtr aux;
619 bool r = eldbus_message_iter_get_and_next(Handle, Argument.StringType.Code, out aux); 619 bool r = eldbus_message_iter_get_and_next(Handle, Argument.StringType.Code, out aux);
620 val = Marshal.PtrToStringAuto(aux); 620 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
621 return r; 621 return r;
622 } 622 }
623 623
@@ -626,7 +626,7 @@ public class MessageIterator
626 CheckHandle(); 626 CheckHandle();
627 IntPtr aux; 627 IntPtr aux;
628 bool r = eldbus_message_iter_get_and_next(Handle, Argument.ObjectPathType.Code, out aux); 628 bool r = eldbus_message_iter_get_and_next(Handle, Argument.ObjectPathType.Code, out aux);
629 val = Marshal.PtrToStringAuto(aux); 629 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
630 return r; 630 return r;
631 } 631 }
632 632
@@ -635,7 +635,7 @@ public class MessageIterator
635 CheckHandle(); 635 CheckHandle();
636 IntPtr aux; 636 IntPtr aux;
637 bool r = eldbus_message_iter_get_and_next(Handle, Argument.SignatureType.Code, out aux); 637 bool r = eldbus_message_iter_get_and_next(Handle, Argument.SignatureType.Code, out aux);
638 val = Marshal.PtrToStringAuto(aux); 638 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
639 return r; 639 return r;
640 } 640 }
641 641
@@ -732,7 +732,7 @@ public class MessageIterator
732 CheckHandle(); 732 CheckHandle();
733 IntPtr aux; 733 IntPtr aux;
734 eldbus_message_iter_basic_get(Handle, out aux); 734 eldbus_message_iter_basic_get(Handle, out aux);
735 val = Marshal.PtrToStringAuto(aux); 735 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
736 } 736 }
737 737
738 public void Get(out eldbus.ObjectPath val) 738 public void Get(out eldbus.ObjectPath val)
@@ -740,7 +740,7 @@ public class MessageIterator
740 CheckHandle(); 740 CheckHandle();
741 IntPtr aux; 741 IntPtr aux;
742 eldbus_message_iter_basic_get(Handle, out aux); 742 eldbus_message_iter_basic_get(Handle, out aux);
743 val = Marshal.PtrToStringAuto(aux); 743 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
744 } 744 }
745 745
746 public void Get(out eldbus.SignatureString val) 746 public void Get(out eldbus.SignatureString val)
@@ -748,7 +748,7 @@ public class MessageIterator
748 CheckHandle(); 748 CheckHandle();
749 IntPtr aux; 749 IntPtr aux;
750 eldbus_message_iter_basic_get(Handle, out aux); 750 eldbus_message_iter_basic_get(Handle, out aux);
751 val = Marshal.PtrToStringAuto(aux); 751 val = Eina.StringConversion.NativeUtf8ToManagedString(aux);
752 } 752 }
753 753
754 public void Get(out eldbus.UnixFd val) 754 public void Get(out eldbus.UnixFd val)