equal
deleted
inserted
replaced
7 |
7 |
8 #define MAPIMAGE_WIDTH 256 |
8 #define MAPIMAGE_WIDTH 256 |
9 #define MAPIMAGE_HEIGHT 128 |
9 #define MAPIMAGE_HEIGHT 128 |
10 #define MAPIMAGE_BYTES (MAPIMAGE_WIDTH/8*MAPIMAGE_HEIGHT) |
10 #define MAPIMAGE_BYTES (MAPIMAGE_WIDTH/8*MAPIMAGE_HEIGHT) |
11 |
11 |
12 struct _flib_mapconn; |
|
13 typedef struct _flib_mapconn flib_mapconn; |
12 typedef struct _flib_mapconn flib_mapconn; |
14 |
13 |
15 /** |
14 /** |
16 * Start a new map rendering connection (mapconn). This means a listening socket |
15 * Start a new map rendering connection (mapconn). This means a listening socket |
17 * will be started on a random unused port, waiting for a connection from the |
16 * will be started on a random unused port, waiting for a connection from the |
19 * will be sent to the engine, and the reply is read. |
18 * will be sent to the engine, and the reply is read. |
20 * |
19 * |
21 * No NULL parameters allowed, returns NULL on failure. |
20 * No NULL parameters allowed, returns NULL on failure. |
22 * Use flib_mapconn_destroy to free the returned object. |
21 * Use flib_mapconn_destroy to free the returned object. |
23 */ |
22 */ |
24 flib_mapconn *flib_mapconn_create(char *seed, flib_map *mapdesc); |
23 flib_mapconn *flib_mapconn_create(flib_map *mapdesc); |
25 |
24 |
26 /** |
25 /** |
27 * Destroy the mapconn object. Passing NULL is allowed and does nothing. |
26 * Destroy the mapconn object. Passing NULL is allowed and does nothing. |
28 * flib_mapconn_destroy may be called from inside a callback function. |
27 * flib_mapconn_destroy may be called from inside a callback function. |
29 */ |
28 */ |