~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/maccore/src/CoreLocation/CoreLocation2.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
30
//
31
31
using System;
32
 
using System.Runtime.InteropServices;
33
32
using MonoMac.ObjCRuntime;
34
33
 
35
34
namespace MonoMac.CoreLocation {
44
43
 
45
44
                static CLLocation ()
46
45
                {
47
 
                        var handle = Dlfcn.dlopen (Constants.CoreLocationLibrary, 0);
48
 
 
 
46
                        var handle = Libraries.CoreLocation.Handle;
49
47
                        if (handle == IntPtr.Zero)
50
48
                                return;
51
49
 
52
 
                        try {
53
 
                                AccurracyBestForNavigation = Dlfcn.GetDouble (handle, "kCLLocationAccuracyBestForNavigation");
54
 
                                AccuracyBest = Dlfcn.GetDouble (handle, "kCLLocationAccuracyBest");
55
 
                                AccuracyNearestTenMeters = Dlfcn.GetDouble (handle, "kCLLocationAccuracyNearestTenMeters");
56
 
                                AccuracyHundredMeters = Dlfcn.GetDouble (handle, "kCLLocationAccuracyHundredMeters");
57
 
                                AccuracyKilometer = Dlfcn.GetDouble (handle, "kCLLocationAccuracyKilometer");
58
 
                                AccuracyThreeKilometers = Dlfcn.GetDouble (handle, "kCLLocationAccuracyThreeKilometers");
59
 
                        } finally {
60
 
                                Dlfcn.dlclose (handle);
61
 
                        }
 
50
                        AccurracyBestForNavigation = Dlfcn.GetDouble (handle, "kCLLocationAccuracyBestForNavigation");
 
51
                        AccuracyBest = Dlfcn.GetDouble (handle, "kCLLocationAccuracyBest");
 
52
                        AccuracyNearestTenMeters = Dlfcn.GetDouble (handle, "kCLLocationAccuracyNearestTenMeters");
 
53
                        AccuracyHundredMeters = Dlfcn.GetDouble (handle, "kCLLocationAccuracyHundredMeters");
 
54
                        AccuracyKilometer = Dlfcn.GetDouble (handle, "kCLLocationAccuracyKilometer");
 
55
                        AccuracyThreeKilometers = Dlfcn.GetDouble (handle, "kCLLocationAccuracyThreeKilometers");
62
56
                }
63
57
        }
64
58
}