mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
28 lines
454 B
C
28 lines
454 B
C
|
|
#ifndef _GUACIO_H
|
|
#define _GUACIO_H
|
|
|
|
#include <unistd.h>
|
|
|
|
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 guac_write_string(GUACIO* io, const char* str);
|
|
ssize_t guac_write_base64(GUACIO* io, const void* buf, size_t count);
|
|
ssize_t guac_flush_base64(GUACIO* io);
|
|
ssize_t guac_flush(GUACIO* io);
|
|
void guac_close(GUACIO* io);
|
|
|
|
#endif
|
|
|