updated configure print summary with new XOAP flag
[monky] / src / weather.h
index 2ec24c5..70dd4e9 100644 (file)
 
 /* WEATHER data */
 typedef struct PWEATHER_ {
-  char lastupd[17];
-  int tmpC;
-  int tmpF;
+  char lastupd[32];
+#ifdef XOAP
+  char xoap_t[32];
+  /*
+   * TODO:
+   * Is it worth investigating about using icons from weather.com?
+   * We could use them for data from noaa as well.
+   * They can display nicely with cimlib_add_image (with appropriate
+   * #ifdefs on imlib2 and x11), and an additional input argoment for position.
+
+  char icon[3];
+
+  */
+#endif /* XOAP */
+  int temp;
   int dew;
   int cc;
   int bar;
@@ -43,8 +55,8 @@ typedef struct PWEATHER_ {
 } PWEATHER;
 
 /* Prototypes */
-PWEATHER *get_weather_info(char *uri, int delay);
 void init_weather_info(void);
 void free_weather_info(void);
+void process_weather_info(char *p, int p_max_size, char *uri, char *data_type, int interval);
 
 #endif /*WEATHER_H_*/