#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 {
if (hostEntry == null) {
#if MONOTOUCH
- monotouch_start_wwan (sPoint.Address.ToString ());
+ xamarin_start_wwan (sPoint.Address.ToString ());
hostEntry = sPoint.HostEntry;
if (hostEntry == null) {
#endif
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 ());
}
}
}
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);
{
string s = sb.ToString ();
try {
- monotouch_log (s);
+ xamarin_log (s);
}
catch (Exception) {
try {
}
[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);
}
[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);