Restructure packaging directories. Move C# bindings, minor compilation fix.

This commit is contained in:
Joseph Henry
2021-02-01 17:59:21 -08:00
parent 3544eab41d
commit 38ea47212d
16 changed files with 106 additions and 71 deletions

View File

@@ -39,6 +39,11 @@
extern "C" {
#endif
#ifdef ZTS_PINVOKE
// Used by P/INVOKE wrappers
typedef void (*CppCallback)(void *msg);
#endif
//////////////////////////////////////////////////////////////////////////////
// Event codes //
//////////////////////////////////////////////////////////////////////////////
@@ -1096,8 +1101,6 @@ ZTS_API int ZTCALL zts_disable_local_storage(uint8_t disabled);
* @return ZTS_ERR_OK on success. ZTS_ERR_SERVICE or ZTS_ERR_ARG on failure
*/
#ifdef ZTS_PINVOKE
// Used by P/INVOKE wrappers
typedef void (*CppCallback)(void *msg);
ZTS_API int ZTCALL zts_start(const char *path, CppCallback callback, uint16_t port);
#else
ZTS_API int ZTCALL zts_start(const char *path, void (*callback)(void *), uint16_t port);