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 #include <stddef.h>
17 #include <stdint.h>
18 
19 #if _WIN32 || _WIN64
20 #ifdef TOBII_STATIC_LIB
21 #define TOBII_RESEARCH_CALL
22 #define TOBII_RESEARCH_API
23 #else
24 #define TOBII_RESEARCH_CALL __cdecl
25 #ifdef TOBII_EXPORTING
26 #define TOBII_RESEARCH_API __declspec(dllexport)
27 #else
28 #define TOBII_RESEARCH_API __declspec(dllimport)
29 #endif /* TOBII_EXPORTING */
30 #endif /* TOBII_STATIC_LIB */
31 #else
32 #define TOBII_RESEARCH_API
33 #define TOBII_RESEARCH_CALL
34 #endif /* _WIN32 */
35 
36 
40 typedef enum {
45 
50 
55 
60 
65 
70 
75 
80 
85 
90 
95 
100 
105 
110 
115 
120 
125 
130 
139 
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 
280 
285 
289 typedef struct {
297  size_t count;
299 
303 typedef enum {
308 
313 
319 
323 typedef enum {
328 
333 
338 
343 
349 
353 typedef struct {
357  float x;
361  float y;
363 
364 
368 typedef struct {
372  float x;
376  float y;
380  float z;
382 
387 
397 typedef void(*tobii_research_log_callback)(int64_t system_time_stamp,
398  TobiiResearchLogSource source,
399  TobiiResearchLogLevel level,
400  const char* message);
401 
409  tobii_research_log_callback callback);
410 
417 
429  TobiiResearchEyeTrackers** eyetrackers);
430 
437  TobiiResearchEyeTrackers* eyetrackers);
438 
449  const char* address,
450  TobiiResearchEyeTracker** eyetracker);
451 
461 
468 
469 
473 typedef struct {
477  int major;
481  int minor;
485  int revision;
489  int build;
491 
499  TobiiResearchSDKVersion* sdk_version);
500 
501 
502 #endif /* TOBII_RESEARCH_H_ */
TobiiResearchStatus
Definition: tobii_research.h:40
Definition: tobii_research.h:208
Definition: tobii_research.h:342
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_logging_subscribe(tobii_research_log_callback callback)
Subscribes to logging.
Definition: tobii_research.h:94
Definition: tobii_research.h:124
Definition: tobii_research.h:69
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:158
Definition: tobii_research.h:223
float z
Definition: tobii_research.h:380
Definition: tobii_research.h:289
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:284
TobiiResearchPoint3D TobiiResearchNormalizedPoint3D
Definition: tobii_research.h:386
Definition: tobii_research.h:347
Definition: tobii_research.h:54
Definition: tobii_research.h:153
Definition: tobii_research.h:49
Definition: tobii_research.h:119
Definition: tobii_research.h:59
Definition: tobii_research.h:332
Definition: tobii_research.h:129
Definition: tobii_research.h:218
Definition: tobii_research.h:99
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:178
Definition: tobii_research.h:368
Definition: tobii_research.h:317
float x
Definition: tobii_research.h:372
float x
Definition: tobii_research.h:357
Definition: tobii_research.h:253
int minor
Definition: tobii_research.h:481
TobiiResearchEyeTracker ** eyetrackers
Definition: tobii_research.h:293
Definition: tobii_research.h:193
Definition: tobii_research.h:163
TobiiResearchLogLevel
Definition: tobii_research.h:323
Definition: tobii_research.h:473
Definition: tobii_research.h:109
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_sdk_version(TobiiResearchSDKVersion *sdk_version)
int revision
Definition: tobii_research.h:485
size_t count
Definition: tobii_research.h:297
Definition: tobii_research.h:327
int build
Definition: tobii_research.h:489
void(* tobii_research_log_callback)(int64_t system_time_stamp, TobiiResearchLogSource source, TobiiResearchLogLevel level, const char *message)
Log callback.
Definition: tobii_research.h:397
Definition: tobii_research.h:104
Definition: tobii_research.h:183
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:138
Definition: tobii_research.h:143
Definition: tobii_research.h:228
Definition: tobii_research.h:312
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:33
float y
Definition: tobii_research.h:361
Definition: tobii_research.h:353
float y
Definition: tobii_research.h:376
Definition: tobii_research.h:173
Definition: tobii_research.h:89
TobiiResearchLogSource
Definition: tobii_research.h:303
Definition: tobii_research.h:148
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_logging_unsubscribe()
Unsubscribes from logging.
Definition: tobii_research.h:114
Definition: tobii_research.h:203
int major
Definition: tobii_research.h:477
#define TOBII_RESEARCH_API
Definition: tobii_research.h:32
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:337
Definition: tobii_research.h:213
Definition: tobii_research.h:198
Definition: tobii_research.h:258
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:168
Definition: tobii_research.h:44
Definition: tobii_research.h:278
Definition: tobii_research.h:307