diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:23:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:23:15 +0100 |
commit | ff7a9978ad9c1e804d7f51f6055d3ca540efa57d (patch) | |
tree | 91c334973ab14775592aa7caf65853953fb3b06e /opentrack-api/opentrack.h | |
parent | c253222d41e372e434c6e086189808c9b0ee2463 (diff) |
reindent
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'opentrack-api/opentrack.h')
-rw-r--r-- | opentrack-api/opentrack.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/opentrack-api/opentrack.h b/opentrack-api/opentrack.h index afd5506b..494f0de2 100644 --- a/opentrack-api/opentrack.h +++ b/opentrack-api/opentrack.h @@ -4,11 +4,11 @@ extern "C" { #endif #ifndef IN_OPENTRACK - /* opaque pointers, forward definitions */ - struct opentrack_opaque_ctx; - typedef opentrack_opaque_ctx* opentrack; - struct opentrack_opaque_tracker; - typedef opentrack_opaque_tracker* opentrack_tracker; +/* opaque pointers, forward definitions */ +struct opentrack_opaque_ctx; +typedef opentrack_opaque_ctx* opentrack; +struct opentrack_opaque_tracker; +typedef opentrack_opaque_tracker* opentrack_tracker; #endif #ifdef IN_OPENTRACK @@ -25,33 +25,33 @@ extern "C" { # endif #endif - /* for `opentrack_tracker_tick', individual headpose elts */ +/* for `opentrack_tracker_tick', individual headpose elts */ #ifndef IN_OPENTRACK - enum opentrack_dof { - TX = 0, - TY, - TZ, - Yaw, - Pitch, - Roll, - DOF_count - }; +enum opentrack_dof { + TX = 0, + TY, + TZ, + Yaw, + Pitch, + Roll, + DOF_count +}; #endif - opentrack opentrack_make_ctx(const char* dir); - void opentrack_finalize_ctx(opentrack self); +opentrack opentrack_make_ctx(const char* dir); +void opentrack_finalize_ctx(opentrack self); - /* no need to free the return value; invalid to modify it */ - const char** opentrack_enum_trackers(opentrack self); +/* no need to free the return value; invalid to modify it */ +const char** opentrack_enum_trackers(opentrack self); - /* +/* * don't `opentrack_tracker_tick an unstarted tracker, it's invalid to do so * it's also invalid to start a finalized tracker */ - opentrack_tracker opentrack_make_tracker(opentrack ctx, const char* name); - void opentrack_tracker_start(opentrack self, opentrack_tracker tracker); - int opentrack_tracker_tick(opentrack_tracker tracker, double* headpose); - void opentrack_finalize_tracker(opentrack_tracker tracker); +opentrack_tracker opentrack_make_tracker(opentrack ctx, const char* name); +void opentrack_tracker_start(opentrack self, opentrack_tracker tracker); +int opentrack_tracker_tick(opentrack_tracker tracker, double* headpose); +void opentrack_finalize_tracker(opentrack_tracker tracker); #ifdef __cplusplus } #endif |