Minor function definition tweaks for C/Swift compatibility
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "libztDefs.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdint>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <sys/socket.h>
|
||||
@@ -99,7 +99,7 @@ ZT_SOCKET_API int ZTCALL zts_set_service_port(int portno);
|
||||
* @param nwid A 16-digit hexidecimal network identifier (e.g. Earth: `8056c2e21c000001`)
|
||||
* @return 0 if successful; or 1 if failed
|
||||
*/
|
||||
ZT_SOCKET_API int ZTCALL zts_start(const char *path, bool blocking);
|
||||
ZT_SOCKET_API int ZTCALL zts_start(const char *path, int blocking);
|
||||
|
||||
/**
|
||||
* @brief Starts libzt
|
||||
|
||||
@@ -419,7 +419,7 @@ int zts_ready()
|
||||
return zts_core_running() && zts_stack_running();
|
||||
}
|
||||
|
||||
int zts_start(const char *path, bool blocking = false)
|
||||
int zts_start(const char *path, int blocking = false)
|
||||
{
|
||||
if (zt1Service) {
|
||||
return 0; // already initialized, ok
|
||||
|
||||
Reference in New Issue
Block a user