Source

FFS Pixmap visualization client / client.hpp

Full commit
#ifndef HG_CLIENT_HPP
#define HG_CLIENT_HPP

struct client_info
{
    int width;
    int height;
};

void client_initialize();
client_info handshake(const char* const IP);
//writes received data to next image into, Data can hold width*height*4 elements (RGBA)
//returns 1 on success, 0 on failure (failure, say, server closed.)
int next_image(unsigned char* Data);
void close_connection();
void client_deinitialize();

#endif