2013-11-02 14:44:17 +01:00
|
|
|
|
/* This file was automatically generated. Do not edit! */
|
|
|
|
|
typedef struct Buffer Buffer;
|
2013-11-02 15:34:39 +01:00
|
|
|
|
void append_space(Buffer *b,int n);
|
2013-11-02 14:44:17 +01:00
|
|
|
|
struct Buffer *new_buffer();
|
2013-11-02 17:29:41 +01:00
|
|
|
|
typedef struct message message;
|
|
|
|
|
void deserialize(struct message *msg,const char *buf);
|
|
|
|
|
void serialize(char *buf,struct message *msg);
|
|
|
|
|
int getBufferSize(struct message *msg);
|
2013-11-02 14:44:17 +01:00
|
|
|
|
struct message {
|
2013-11-02 17:29:41 +01:00
|
|
|
|
uint32_t timestamp;
|
|
|
|
|
uint32_t width; // varies
|
|
|
|
|
uint32_t height; // normally 80
|
|
|
|
|
//char **image; // dimension is width x height
|
2013-11-02 17:20:34 +01:00
|
|
|
|
char *image; // dimension is width x height
|
2013-11-02 14:44:17 +01:00
|
|
|
|
};
|
|
|
|
|
struct Buffer {
|
|
|
|
|
int size;
|
|
|
|
|
void *data;
|
|
|
|
|
};
|
|
|
|
|
#define INITIAL_SIZE 32
|
|
|
|
|
#define INTERFACE 0
|