The libeyelink-sys
crate provides declarations and linkage for the
libeyelink_core
and libeyelink_core_graphics
C libraries. Following the
*-sys
package conventions, the libeyelink-sys
crate does not define
higher-level or safe abstractions over the native library functions.
The bindings were generated automatically with bindgen:
bindgen /usr/include/core_expt.h -o src/base.rs --with-derive-default
If the sdl-graphics
feature is enabled, the bindings are generated from:
bindgen /usr/include/sdl_expt.h -o src/sdl-graphics.rs --blacklist-function '^str.*' --blacklist-function '.*cvt.*' --with-derive-default
You must have the Linux Eyelink SDK installed from SR Research. Steps to install:
- Add signing key
$ wget -O - "http://download.sr-support.com/software/dists/SRResearch/SRResearch_key" | sudo apt-key add -
- Add apt repository
$ sudo add-apt-repository "deb http://download.sr-support.com/software SRResearch main" $ sudo apt-get update
- Install latest release of EyeLink Developers Kit for Linux
Alternatively, a tar of DEBs is available at this link.
$ sudo apt-get install eyelink-display-software
This crate has only been tested on Ubuntu 18.04.
Add libeyelink-sys
as a dependency in Cargo.toml
:
[dependencies]
libeyelink-sys = "0.1"
The best source for help on the API is the native documentation: