Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2003 Pekka Riikonen
+ Copyright (C) 2003 - 2004 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
char *text;
SilcInt32 lposx;
SilcInt32 lposy;
+ char *alat;
+ char *alon;
+ char *blat;
+ char *blon;
SilcInt16 r;
SilcInt16 g;
unsigned int lcolor_set : 1;
/* Command */
+ unsigned int loadmap : 1;
unsigned int writemap : 1;
unsigned int writehtml : 1;
unsigned int writemaphtml : 1;
+ unsigned int writerel : 1;
unsigned int cut : 1;
unsigned int draw_line : 1;
unsigned int draw_text : 1;
/* Bitmap data */
unsigned char *bitmap; /* Loaded bitmap image */
- SilcUInt32 bitsilc_map_size; /* Size of bitmap */
+ SilcUInt32 bitmap_size; /* Size of bitmap */
SilcUInt32 width; /* Bitmap width in pixels */
SilcUInt32 height; /* Bitmap height in pixels */
SilcUInt32 maxcolor; /* Max color value in bitmap */
MapFonts font; /* Current font */
/* Output methods */
+ SilcMapCommandStruct loadmap;
SilcMapCommandStruct writemap;
SilcMapCommandStruct writehtml;
- SilcMapCommandStruct writemaphtml;
- SilcMapCommandStruct cut;
+ SilcMapCommandStruct writerel;
+ SilcMapCommandStruct *writemaphtml;
+ SilcMapCommandStruct *cut;
+ SilcUInt32 writemaphtml_count;
+ SilcUInt32 cut_count;
} *SilcMap;
/* SilcMap connecetion context. */
char *admin;
char *description;
int connect_timeout;
- char *writemaphtml_url;
+ char *html_url;
/* Flags */
unsigned int connect : 1;
bool silc_map_writehtml(SilcMap map, SilcMapConnection mapconn);
bool silc_map_writehtml_index(SilcMap map);
bool silc_map_writemaphtml(SilcMap map);
+bool silc_map_writerel(SilcMap map, SilcMapConnection mapconn);
+bool silc_map_writerelhtml(SilcMap map);
#endif /* SILCMAP_H */