minor ios API update

This commit is contained in:
Joseph Henry
2016-08-11 23:27:05 -07:00
parent 0a17633f57
commit 3ec5cf04e1
5 changed files with 194 additions and 14 deletions

View File

@@ -47,15 +47,20 @@ extern "C" void start_service_and_rpc(const char * path, const char * nwid) {
}
// Joins a ZeroTier virtual network
extern "C" void zt_join_network(const char * nwid){
extern "C" void zt_join_network(const char * nwid) {
zts_join_network(nwid);
}
// Leaves a ZeroTier virtual network
extern "C" void zt_leave_network(const char * nwid){
extern "C" void zt_leave_network(const char * nwid) {
zts_leave_network(nwid);
}
// Returns a list of addresses associated with this device on the given network
extern "C" void zt_get_addresses(const char * nwid, char * addrstr) {
zts_get_addresses(nwid, addrstr);
}
// Explicit ZT API wrappers
#if !defined(__IOS__)
// This isn't available for iOS since function interposition isn't as reliable