mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Moved to GUACIO structure, rather than file descriptors (buffering).
This commit is contained in:
@@ -4,8 +4,22 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
ssize_t write_base64(int fd, const void* buf, size_t count);
|
||||
ssize_t flush_base64(int fd);
|
||||
typedef struct GUACIO {
|
||||
|
||||
int fd;
|
||||
|
||||
int ready;
|
||||
int ready_buf[3];
|
||||
|
||||
int written;
|
||||
char out_buf[8192];
|
||||
|
||||
} GUACIO;
|
||||
|
||||
GUACIO* guac_open(int fd);
|
||||
ssize_t write_base64(GUACIO* io, const void* buf, size_t count);
|
||||
ssize_t flush_base64(GUACIO* io);
|
||||
void guac_close(GUACIO* io);
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user