[corlib] A few XI-internal functions have been renamed; use the new names.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 26 May 2015 11:12:02 +0000 (13:12 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 26 May 2015 12:08:54 +0000 (14:08 +0200)
mcs/class/System/System.Net/WebConnection.cs
mcs/class/corlib/System.Globalization/RegionInfo.MonoTouch.cs
mcs/class/corlib/System/Console.iOS.cs
mcs/class/corlib/System/TimeZoneInfo.MonoTouch.cs

index d54c0cab147987855ac99612381a977419da400a..52a88f7e2df45aff89a7cd1a20255e52c1a44ca8 100644 (file)
@@ -106,7 +106,7 @@ namespace System.Net
 
 #if MONOTOUCH
                [System.Runtime.InteropServices.DllImport ("__Internal")]
-               static extern void monotouch_start_wwan (string uri);
+               static extern void xamarin_start_wwan (string uri);
 #endif
 
                internal ChunkStream ChunkStream {
@@ -171,7 +171,7 @@ namespace System.Net
 
                                if (hostEntry == null) {
 #if MONOTOUCH
-                                       monotouch_start_wwan (sPoint.Address.ToString ());
+                                       xamarin_start_wwan (sPoint.Address.ToString ());
                                        hostEntry = sPoint.HostEntry;
                                        if (hostEntry == null) {
 #endif
index 435035b39735789b3865aa51e4586c8eaf300203..22ef188f52c7b05bfcfed090eba6d95828ef1d6f 100644 (file)
@@ -42,11 +42,11 @@ namespace System.Globalization {
        public partial class RegionInfo {
 
                [DllImport ("__Internal")]
-               extern static string monotouch_get_locale_country_code ();
+               extern static string xamarin_get_locale_country_code ();
 
                static RegionInfo CreateFromNSLocale ()
                {
-                       return new RegionInfo (monotouch_get_locale_country_code ());
+                       return new RegionInfo (xamarin_get_locale_country_code ());
                }
        }
 }
index 61534deffa557da57cfe4801c919097c63e0871a..00ebfb3e84fb4508cdcbe2c342278abc883c82b6 100644 (file)
@@ -20,7 +20,7 @@ namespace System {
 
                class NSLogWriter : TextWriter {
                        [DllImport ("__Internal", CharSet=CharSet.Unicode)]
-                       extern static void monotouch_log (string s);
+                       extern static void xamarin_log (string s);
 
                        [DllImport ("/usr/lib/libSystem.dylib")]
                        extern static /* ssize_t */ IntPtr write (int fd, byte [] buffer, /* size_t */ IntPtr n);
@@ -48,7 +48,7 @@ namespace System {
                        {
                                string s = sb.ToString ();
                                try {
-                                       monotouch_log (s);
+                                       xamarin_log (s);
                                }
                                catch (Exception) {
                                        try {
index 1f0f1fea35de6e2e0606604e348e6e1c14838d3b..3db0c0ab646d33141b3a373c49c7f557b43817d7 100644 (file)
@@ -70,12 +70,12 @@ namespace System {
                }
                
                [DllImport ("__Internal")]
-               extern static IntPtr monotouch_timezone_get_names (ref int count);
+               extern static IntPtr xamarin_timezone_get_names (ref int count);
 
                static ReadOnlyCollection<string> GetMonoTouchNames ()
                {
                        int count = 0;
-                       IntPtr array = monotouch_timezone_get_names (ref count);
+                       IntPtr array = xamarin_timezone_get_names (ref count);
                        string [] names = new string [count];
                        for (int i = 0, offset = 0; i < count; i++, offset += IntPtr.Size) {
                                IntPtr p = Marshal.ReadIntPtr (array, offset);
@@ -87,12 +87,12 @@ namespace System {
                }
 
                [DllImport ("__Internal")]
-               extern static IntPtr monotouch_timezone_get_data (string name, ref int size);
+               extern static IntPtr xamarin_timezone_get_data (string name, ref int size);
 
                static Stream GetMonoTouchData (string name, bool throw_on_error = true)
                {
                        int size = 0;
-                       IntPtr data = monotouch_timezone_get_data (name, ref size);
+                       IntPtr data = xamarin_timezone_get_data (name, ref size);
                        if (size <= 0) {
                                if (throw_on_error)
                                        throw new TimeZoneNotFoundException (name);