Tobii Pro SDK C API
notifications.c
#include <stdio.h>
#include <inttypes.h>
void notification_callback(TobiiResearchNotification* notification, void* user_data) {
printf("Enter calibration mode notification received at time stamp %" PRId64 ".\n", notification->system_time_stamp);
}
printf("Left calibration mode notification received at time stamp %" PRId64 ".\n", notification-> system_time_stamp);
}
(void)(user_data); // Is NULL, see subscription call
}
void notifications_example(TobiiResearchEyeTracker* eyetracker) {
tobii_research_subscribe_to_notifications(eyetracker, notification_callback, NULL);
/* Trigger some notifications */
/* Unsubscribe from notifications. */
tobii_research_unsubscribe_from_notifications(eyetracker, notification_callback);
}