Added support for $weather (experimental).
[monky] / src / text_object.h
index ba3803b..492ab44 100644 (file)
@@ -374,6 +374,9 @@ enum text_object_type {
 #ifdef RSS
        OBJ_rss,
 #endif /* RSS */
+#ifdef WEATHER
+       OBJ_weather,
+#endif /* WEATHER */
 #ifdef HAVE_LUA
        OBJ_lua,
        OBJ_lua_parse,
@@ -541,6 +544,13 @@ struct text_object {
                        unsigned int nrspaces;
                } rss;
 #endif
+#ifdef WEATHER
+               struct {
+                       char *uri;
+                       char *data_type;
+                       int delay;
+               } weather;
+#endif
                struct {
                        char *text;
                        unsigned int show;