Tobii Pro SDK C API
tobii_research.h
Go to the documentation of this file.
1 
14 #ifndef TOBII_RESEARCH_H_
15 #define TOBII_RESEARCH_H_
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include <stddef.h>
22 #include <stdint.h>
23 
24 #if _WIN32 || _WIN64
25 #ifdef TOBII_STATIC_LIB
26 #define TOBII_RESEARCH_CALL
27 #define TOBII_RESEARCH_API
28 #else
29 #define TOBII_RESEARCH_CALL __cdecl
30 #ifdef TOBII_EXPORTING
31 #define TOBII_RESEARCH_API __declspec(dllexport)
32 #else
33 #define TOBII_RESEARCH_API __declspec(dllimport)
34 #endif /* TOBII_EXPORTING */
35 #endif /* TOBII_STATIC_LIB */
36 #else
37 #define TOBII_RESEARCH_API
38 #define TOBII_RESEARCH_CALL
39 #endif /* _WIN32 */
40 
41 
45 typedef enum {
50 
55 
60 
65 
70 
75 
80 
85 
90 
95 
100 
105 
110 
115 
120 
125 
130 
135 
144 
149 
154 
159 
164 
169 
174 
179 
184 
189 
194 
199 
204 
209 
214 
219 
224 
229 
234 
239 
244 
249 
254 
259 
264 
269 
274 
279 
284 
289 
294 
300 
305 
309 typedef struct {
317  size_t count;
319 
323 typedef enum {
328 
333 
339 
343 typedef enum {
348 
353 
358 
363 
369 
373 typedef struct {
377  float x;
381  float y;
383 
384 
388 typedef struct {
392  float x;
396  float y;
400  float z;
402 
407 
417 typedef void(*tobii_research_log_callback)(int64_t system_time_stamp,
418  TobiiResearchLogSource source,
419  TobiiResearchLogLevel level,
420  const char* message);
421 
429  tobii_research_log_callback callback);
430 
437 
449  TobiiResearchEyeTrackers** eyetrackers);
450 
457  TobiiResearchEyeTrackers* eyetrackers);
458 
469  const char* address,
470  TobiiResearchEyeTracker** eyetracker);
471 
481 
488 
489 
493 typedef struct {
497  int major;
501  int minor;
505  int revision;
509  int build;
511 
519  TobiiResearchSDKVersion* sdk_version);
520 
521 #ifdef __cplusplus
522 }
523 #endif
524 #endif /* TOBII_RESEARCH_H_ */
TobiiResearchStatus
Definition: tobii_research.h:45
Definition: tobii_research.h:233
Definition: tobii_research.h:362
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_logging_subscribe(tobii_research_log_callback callback)
Subscribes to logging.
Definition: tobii_research.h:99
Definition: tobii_research.h:129
Definition: tobii_research.h:74
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_system_time_stamp(int64_t *time_stamp_us)
Retrieves the time stamp from the system clock in microseconds.
Definition: tobii_research.h:163
Definition: tobii_research.h:243
float z
Definition: tobii_research.h:400
Definition: tobii_research.h:309
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:304
TobiiResearchPoint3D TobiiResearchNormalizedPoint3D
Definition: tobii_research.h:406
Definition: tobii_research.h:367
Definition: tobii_research.h:59
Definition: tobii_research.h:158
Definition: tobii_research.h:54
Definition: tobii_research.h:124
Definition: tobii_research.h:64
Definition: tobii_research.h:352
Definition: tobii_research.h:134
Definition: tobii_research.h:238
Definition: tobii_research.h:104
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_string(char *str)
Free memory allocation for a string allocated by the SDK.
Definition: tobii_research.h:183
Definition: tobii_research.h:388
Definition: tobii_research.h:337
float x
Definition: tobii_research.h:392
float x
Definition: tobii_research.h:377
Definition: tobii_research.h:273
int minor
Definition: tobii_research.h:501
TobiiResearchEyeTracker ** eyetrackers
Definition: tobii_research.h:313
Definition: tobii_research.h:198
Definition: tobii_research.h:168
TobiiResearchLogLevel
Definition: tobii_research.h:343
Definition: tobii_research.h:493
Definition: tobii_research.h:114
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_sdk_version(TobiiResearchSDKVersion *sdk_version)
Definition: tobii_research.h:228
int revision
Definition: tobii_research.h:505
size_t count
Definition: tobii_research.h:317
Definition: tobii_research.h:347
int build
Definition: tobii_research.h:509
void(* tobii_research_log_callback)(int64_t system_time_stamp, TobiiResearchLogSource source, TobiiResearchLogLevel level, const char *message)
Log callback.
Definition: tobii_research.h:417
Definition: tobii_research.h:109
Definition: tobii_research.h:188
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_find_all_eyetrackers(TobiiResearchEyeTrackers **eyetrackers)
Finds eye trackers connected to the computer or the network.
Definition: tobii_research.h:143
Definition: tobii_research.h:148
Definition: tobii_research.h:248
Definition: tobii_research.h:332
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:38
float y
Definition: tobii_research.h:381
Definition: tobii_research.h:373
float y
Definition: tobii_research.h:396
Definition: tobii_research.h:178
Definition: tobii_research.h:94
TobiiResearchLogSource
Definition: tobii_research.h:323
Definition: tobii_research.h:153
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_logging_unsubscribe()
Unsubscribes from logging.
Definition: tobii_research.h:119
Definition: tobii_research.h:208
int major
Definition: tobii_research.h:497
#define TOBII_RESEARCH_API
Definition: tobii_research.h:37
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_eyetrackers(TobiiResearchEyeTrackers *eyetrackers)
Free memory allocation for the result received via tobii_research_find_all_eyetrackers.
Definition: tobii_research.h:357
Definition: tobii_research.h:213
Definition: tobii_research.h:203
Definition: tobii_research.h:278
Definition: tobii_research.h:223
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_eyetracker(const char *address, TobiiResearchEyeTracker **eyetracker)
Gets data for an eye tracker given an address.
Definition: tobii_research.h:173
Definition: tobii_research.h:49
Definition: tobii_research.h:298
Definition: tobii_research.h:327