commit | 611c5c89134a7164af1275a71be2ca49143f89e1 | [log] [tgz] |
---|---|---|
author | Razvan Musaloiu-E <razvanm@google.com> | Tue Jun 07 19:26:48 2016 -0700 |
committer | Razvan Musaloiu-E. <razvanm@google.com> | Wed Jun 08 19:41:57 2016 +0000 |
tree | 584356f384627204c2d5144b3b8fb055b8d5028e | |
parent | 7ca505731d650565655fc61c9b56709b26a4e070 [diff] |
syncbase/bridge/cgo: Two changes to the C API for handling callbacks The first change is to switch the handle from 'int' to 'void*'. This will help interfacing with language where is easier to pass a pointer to a struct instead of explicitly managing the mapping to it. Both Java and Swift manage memory in a way that makes is hard/impossible to use pointers so the 'void*' will be used as a larger 'int'. The second change is to use a single handle instead of two for both watching and scanning. This makes the C API simpler and is more inline with what the Java/Swift need to do (namely, keeping a struct that describes both callbacks). Note: the author of the Swift code is Aaron Zinman <aaron@azinman.com>. MultiPart: 1/2 Change-Id: I6aa1f300a7d97aa1c9ef0f20b08cde7ac29cd5fa
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.