Last 12 weeks · 0 commits
2 of 6 standards met
I've been poking around the code and struggling to work out how to read the parameters in a callback function handler. Given I cant find an example, I am not sure where to start. I am at the point where I am able to get the objc bluetooth api to report back discovery of bluetooth devices. But how do I extract the information? (My long term goal is to eventually have a zig cross platform bluetooth api, just working on it on the side when I have time.) For reference, here is how I am setting up this callback handler to be called:
This patch includes everything needed for 0.17 as of today. Use instead of Update how functions/fields are reflected (i.e. becomes and , etc...) It works at least for the objc calls that my app uses, but it could definitely do with a code review. This is not backwards compatible.** So once it is applied the branch will no longer be compatible with 0.16.
I have been exploring if I can use to replace my clunky swift side build. I first checked to see if there was sample code that might demonstrate the intent for how we would access enum values (to create an ) and how to provide a Any input would be greatly appreciated. PS: By way of feedback, I wonder if we could get an folder for to demonstrate some more advanced basic patterns like this. Thanks for your work on this cool zig project.
https://github.com/mitchellh/zig-objc/blob/f356ed02833f0f1b8e84d50bed9e807bf7cdc0ae/src/block.zig#L123-L135 this function must correspond to the signature of https://github.com/mitchellh/zig-objc/blob/f356ed02833f0f1b8e84d50bed9e807bf7cdc0ae/src/block.zig#L260 (as per Its signature is instead – the parameters are swapped. I could not find the definition of , but in its uses, the first argument does come from , the second comes from , so the call in seems to be correct.
Repository: mitchellh/zig-objc. Description: Objective-C runtime bindings for Zig (Zig calling ObjC). Stars: 350, Forks: 48. Primary language: Zig. Languages: Zig (97.9%), Nix (1.9%), Shell (0.2%). License: MIT. Open PRs: 3, open issues: 1. Last activity: 5mo ago. Community health: 42%. Top contributors: mitchellh, Nirlah, robbielyman, emilazy, francisqureshi, ritalin, amitayas, der-teufel-programming, Uzaaft, cherrythecool.