~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 62fe007cfcf4b3951bf7b2289c08a8a149f03714 CTU-FEE-B0B35APO-Semestral-project/image-viewer/include/nonblocking_io.h -rw-r--r-- 426 bytes
62fe007c — František Boháček feat: add zooming to cursor 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _NONBLOCKING_IO_H
#define _NONBLOCKING_IO_H

#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#include <termios.h>

int file_set_nonblocking(int file, struct termios *old);
int file_set_blocking(int file, struct termios *old);
int file_read_nonblocking(int file, size_t max_size, uint8_t *data);
bool file_write_nonblocking(int file, size_t size, uint8_t *data, int max_delay);

#endif //_NONBLOCKING_IO_H
Do not follow this link