[][src]Function libeyelink_sys::send_data_file_feedback

pub unsafe extern "C" fn send_data_file_feedback(
    src: *mut c_char,
    dest: *mut c_char,
    dest_is_path: INT16,
    progress: Option<unsafe extern "C" fn(size: c_uint, received: c_uint)>
) -> INT32

@ingroup datafile This function sends a file to the Eyelink tracker. Source destination file name should be given. Using this function, an image or video can be uploaded from the display PC to the host Tracker PC. The image can later be used as a Gaze Cursor Backdrop via a call to eyelink_send_command().

@param src Name of local file (including extension). @param dest Name of eye tracker file to write to (including extension). @param dest_is_path If nonzero, appends file name to <dest> as a directory path. @param progress A function pointer, that takes size and received size integers. This allows, one to display progress bar on file transfer.

@return Returns \c size of file if transferred file size is equal to the real file size. \n \c -1 if fail to connect tracker ftpd.\n \c -2 if fail to open file.\n \c -4 if fail to receive reply from tracker ftpd. \n \c -5 if transferred file size is unequal to the real file size.