aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-05 07:56:01 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-05 07:56:01 -0600
commit9e1883922de980c01e60bde10c1e67261752afa6 (patch)
tree0732dbbc7817644e1f03cea7c8432284af98bd04 /src
parent4b045e61ed6f3812cbf273ae279bfd7bc1ce029c (diff)
downloadlibsurvive-9e1883922de980c01e60bde10c1e67261752afa6.tar.gz
libsurvive-9e1883922de980c01e60bde10c1e67261752afa6.tar.bz2
Fixed typo; naming suggestions
Diffstat (limited to 'src')
-rw-r--r--src/survive_api.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/survive_api.c b/src/survive_api.c
index bb1f090..e2c3d54 100644
--- a/src/survive_api.c
+++ b/src/survive_api.c
@@ -12,7 +12,7 @@ struct SurviveAsyncObject {
} type;
union {
- int lighthosue;
+ int lighthouse;
struct SurviveObject* so;
} data;
@@ -67,7 +67,7 @@ struct SurviveAsyncContext *survive_async_init(int argc, char *const *argv) {
int i = 0;
for (i = 0; i < ctx->activeLighthouses; i++) {
struct SurviveAsyncObject* obj = &actx->objects[i];
- obj->data.lighthosue = i;
+ obj->data.lighthouse = i;
obj->type = SurviveAsyncObject_LIGHTHOUSE;
obj->actx = actx;
obj->has_update = ctx->bsd[i].PositionSet;
@@ -122,14 +122,15 @@ int survive_async_stop_thread(struct SurviveAsyncContext* actx) {
return error;
}
-const struct SurviveAsyncObject* survive_async_get_next_tracked(struct SurviveAsyncContext* actx, const struct SurviveAsyncObject* curr) {
+const struct SurviveAsyncObject *survive_async_get_next_object(struct SurviveAsyncContext *actx,
+ const struct SurviveAsyncObject *curr) {
const struct SurviveAsyncObject* next = curr + 1;
if (next >= actx->objects + actx->object_ct)
return 0;
return next;
}
-const struct SurviveAsyncObject* survive_async_get_first_tracked(struct SurviveAsyncContext* actx) {
+const struct SurviveAsyncObject *survive_async_get_first_object(struct SurviveAsyncContext *actx) {
return actx->objects;
}
@@ -150,7 +151,7 @@ uint32_t survive_async_object_get_latest_pose(const struct SurviveAsyncObject* s
switch (sao->type) {
case SurviveAsyncObject_LIGHTHOUSE: {
if(pose)
- *pose = sao->actx->ctx->bsd[sao->data.lighthosue].Pose;
+ *pose = sao->actx->ctx->bsd[sao->data.lighthouse].Pose;
break;
}
case SurviveAsyncObject_OBJECT: