Skip to content
Permalink
Browse files

Working on IOBluetooth API. Naming conventions and partial classes for

helper methods/properties
  • Loading branch information...
peterfoot
peterfoot committed Jul 4, 2019
1 parent 04ded85 commit 574ed690203d1c0d38e27d6adfcd93ed3c15d20b

Large diffs are not rendered by default.

@@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;

namespace IOBluetooth
{
public partial class BluetoothDevice
{
public BluetoothDeviceAddress Address
{
get
{
return (BluetoothDeviceAddress)Marshal.PtrToStructure(GetAddress(), typeof(IOBluetooth.BluetoothDeviceAddress));
}
}

public override string ToString()
{
return this.NameOrAddress;
}
}
}
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.props')" />
<Import Project="..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -32,6 +32,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BTouchExtraArgs>-x:Extra.cs</BTouchExtraArgs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
@@ -49,6 +50,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Extra.cs" />
</ItemGroup>
<ItemGroup>
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
@@ -60,11 +62,12 @@
<NativeReference Include="..\..\..\..\..\..\..\System\Library\Frameworks\IOBluetooth.framework">
<Kind>Framework</Kind>
<SmartLink>False</SmartLink>
<ForceLoad>True</ForceLoad>
</NativeReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.ObjcBinding.CSharp.targets" />
<Import Project="..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.0\build\NuGet.Build.Packaging.targets')" />
<Import Project="..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets" Condition="Exists('..\packages\NuGet.Build.Packaging.0.2.2\build\NuGet.Build.Packaging.targets')" />
</Project>

0 comments on commit 574ed69

Please sign in to comment.
You can’t perform that action at this time.