2013-11-02 14:44:17 +01:00
|
|
|
|
/* This file was automatically generated. Do not edit! */
|
2013-11-02 15:34:39 +01:00
|
|
|
|
typedef struct message message;
|
2013-11-02 14:44:17 +01:00
|
|
|
|
typedef struct Buffer Buffer;
|
2013-11-02 15:34:39 +01:00
|
|
|
|
void serialize_message(struct message *msg,Buffer *b);
|
|
|
|
|
void serialize_string(char *str,Buffer *b);
|
2013-11-02 14:44:17 +01:00
|
|
|
|
void serialize_int(int x,Buffer *b);
|
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();
|
|
|
|
|
struct message {
|
|
|
|
|
long timestamp;
|
|
|
|
|
int width; // varies
|
|
|
|
|
int height; // normally 80
|
|
|
|
|
char **image; // dimension is width x height
|
|
|
|
|
};
|
|
|
|
|
struct Buffer {
|
|
|
|
|
int size;
|
|
|
|
|
void *data;
|
|
|
|
|
};
|
|
|
|
|
#define INITIAL_SIZE 32
|
|
|
|
|
#define INTERFACE 0
|