Added SILC Thread Queue API
[crypto.git] / apps / silcmap / silcmap.h
index e0996ddf05515d7625c2de1b364e608ce0de1a48..a2b8e7f1998f8348f64a27e924bbda100c3898f0 100644 (file)
@@ -4,7 +4,7 @@
 
   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
@@ -42,6 +42,10 @@ typedef struct {
   char *text;
   SilcInt32 lposx;
   SilcInt32 lposy;
+  char *alat;
+  char *alon;
+  char *blat;
+  char *blon;
 
   SilcInt16 r;
   SilcInt16 g;
@@ -53,9 +57,11 @@ typedef struct {
   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;
@@ -74,17 +80,21 @@ typedef struct {
 
   /* 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. */
@@ -99,7 +109,7 @@ typedef struct {
   char *admin;
   char *description;
   int connect_timeout;
-  char *writemaphtml_url;
+  char *html_url;
 
   /* Flags */
   unsigned int connect        : 1;
@@ -202,5 +212,7 @@ bool silc_map_load_font(SilcMap map, const char *filename);
 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 */