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 
140 
145 
150 
155 
160 
165 
170 
175 
180 
185 
190 
195 
200 
205 
210 
215 
220 
225 
230 
235 
240 
245 
250 
255 
260 
265 
270 
275 
280 
285 
290 
295 
300 
306 
311 
315 typedef struct {
323  size_t count;
325 
329 typedef enum {
334 
339 
345 
349 typedef enum {
354 
359 
364 
369 
375 
379 typedef struct {
383  float x;
387  float y;
389 
390 
394 typedef struct {
398  float x;
402  float y;
406  float z;
408 
413 
423 typedef void(*tobii_research_log_callback)(int64_t system_time_stamp,
424  TobiiResearchLogSource source,
425  TobiiResearchLogLevel level,
426  const char* message);
427 
435  tobii_research_log_callback callback);
436 
443 
455  TobiiResearchEyeTrackers** eyetrackers);
456 
463  TobiiResearchEyeTrackers* eyetrackers);
464 
475  const char* address,
476  TobiiResearchEyeTracker** eyetracker);
477 
487 
494 
495 
499 typedef struct {
503  int major;
507  int minor;
511  int revision;
515  int build;
517 
525  TobiiResearchSDKVersion* sdk_version);
526 
527 #ifdef __cplusplus
528 }
529 #endif
530 #endif /* TOBII_RESEARCH_H_ */
TobiiResearchStatus
Definition: tobii_research.h:45
Definition: tobii_research.h:239
Definition: tobii_research.h:368
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:164
Definition: tobii_research.h:249
float z
Definition: tobii_research.h:406
Definition: tobii_research.h:315
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:310
TobiiResearchPoint3D TobiiResearchNormalizedPoint3D
Definition: tobii_research.h:412
Definition: tobii_research.h:373
Definition: tobii_research.h:59
Definition: tobii_research.h:159
Definition: tobii_research.h:54
Definition: tobii_research.h:124
Definition: tobii_research.h:64
Definition: tobii_research.h:358
Definition: tobii_research.h:134
Definition: tobii_research.h:244
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:184
Definition: tobii_research.h:394
Definition: tobii_research.h:343
float x
Definition: tobii_research.h:398
float x
Definition: tobii_research.h:383
Definition: tobii_research.h:279
int minor
Definition: tobii_research.h:507
TobiiResearchEyeTracker ** eyetrackers
Definition: tobii_research.h:319
Definition: tobii_research.h:199
Definition: tobii_research.h:169
TobiiResearchLogLevel
Definition: tobii_research.h:349
Definition: tobii_research.h:499
Definition: tobii_research.h:114
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_sdk_version(TobiiResearchSDKVersion *sdk_version)
Definition: tobii_research.h:229
int revision
Definition: tobii_research.h:511
size_t count
Definition: tobii_research.h:323
Definition: tobii_research.h:353
int build
Definition: tobii_research.h:515
void(* tobii_research_log_callback)(int64_t system_time_stamp, TobiiResearchLogSource source, TobiiResearchLogLevel level, const char *message)
Log callback.
Definition: tobii_research.h:423
Definition: tobii_research.h:109
Definition: tobii_research.h:189
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:144
Definition: tobii_research.h:149
Definition: tobii_research.h:254
Definition: tobii_research.h:338
#define TOBII_RESEARCH_CALL
Definition: tobii_research.h:38
float y
Definition: tobii_research.h:387
Definition: tobii_research.h:379
float y
Definition: tobii_research.h:402
Definition: tobii_research.h:179
Definition: tobii_research.h:94
TobiiResearchLogSource
Definition: tobii_research.h:329
Definition: tobii_research.h:154
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_logging_unsubscribe()
Unsubscribes from logging.
Definition: tobii_research.h:119
Definition: tobii_research.h:209
int major
Definition: tobii_research.h:503
#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:363
Definition: tobii_research.h:214
Definition: tobii_research.h:204
Definition: tobii_research.h:234
Definition: tobii_research.h:284
Definition: tobii_research.h:224
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:174
Definition: tobii_research.h:49
Definition: tobii_research.h:304
Definition: tobii_research.h:333