aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libsurvive/survive_api.h7
-rw-r--r--include/libsurvive/survive_types.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/include/libsurvive/survive_api.h b/include/libsurvive/survive_api.h
index 30e30ac..aacd47a 100644
--- a/include/libsurvive/survive_api.h
+++ b/include/libsurvive/survive_api.h
@@ -8,7 +8,7 @@ extern "C" {
struct SurviveAsyncContext;
typedef struct SurviveAsyncContext SurviveAsyncContext;
- SURVIVE_EXPORT SurviveAsyncContext *survive_asyc_init(int argc, char *const *argv);
+ SURVIVE_EXPORT SurviveAsyncContext *survive_async_init(int argc, char *const *argv);
SURVIVE_EXPORT void survive_async_close(SurviveAsyncContext* actx);
SURVIVE_EXPORT void survive_async_start_thread(SurviveAsyncContext* actx);
@@ -22,8 +22,9 @@ extern "C" {
SURVIVE_EXPORT const SurviveAsyncObject* survive_async_get_next_tracked(SurviveAsyncContext* actx, const SurviveAsyncObject* curr);
SURVIVE_EXPORT const SurviveAsyncObject* survive_async_get_next_updated(SurviveAsyncContext* actx);
- SURVIVE_EXPORT survive_timecode survive_async_object_get_latest_pose(const SurviveAsyncObject* sao, SurvivePose* pose);
- SURVIVE_EXPORT const char* survive_async_object_name(SurviveAsyncObject* sao);
+ SURVIVE_EXPORT survive_timecode survive_async_object_get_latest_pose(const SurviveAsyncObject *sao,
+ SurvivePose *OUTPUT);
+ SURVIVE_EXPORT const char *survive_async_object_name(const SurviveAsyncObject *sao);
#ifdef __cplusplus
}
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h
index b9d145f..7fa5e0f 100644
--- a/include/libsurvive/survive_types.h
+++ b/include/libsurvive/survive_types.h
@@ -4,11 +4,13 @@
#include "linmath.h"
#include "stdint.h"
+#ifndef SURVIVE_EXPORT
#ifdef _WIN32
#define SURVIVE_EXPORT __declspec(dllexport)
#else
#define SURVIVE_EXPORT __attribute__((visibility("default")))
#endif
+#endif
#ifdef __cplusplus
extern "C" {