Skip to content

Adapt IOBluetooth bindings to net10 and other versions #480

@darkhz

Description

@darkhz

Hello @peterfoot ,

This is a suggestion more than an issue, in the hope that it would help others work with IOBluetooth APIs more easily.

Instead of relying on the old Xamarin.Mac and Xamarin.MacCatalyst build targets, we can now directly use the macios project with the appropriate workload and the most supported macos build target (for example net10-macos, net9-maccatalyst).

Since no official IOBluetooth bindings exist yet, we can use your bindings, albeit with slight modifications, as I have done separately here (ApiDefinitions) and here (StructsAndEnums).

Then, all that remains is to add a linker argument in your IOBluetooth.csproj (or in the topmost csproj) as done here, and compile. The bindings are usable after this.

Please refer to the project for all the implementation and binding usages.

I would be willing to work with you to create a better IOBluetooth API, like how other bindings are nicely done and provided in the Macios project.

Other issues of the same type:
#376 #322 #276 #20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions