Revert "Uhh..ansohus"
[monky] / src / text_object.h
index 75ae83e..519c318 100644 (file)
@@ -1,4 +1,6 @@
-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
+ * Conky, a system monitor, based on torsmo
  *
  * Any original torsmo code is licensed under the BSD license
  *
@@ -375,12 +377,18 @@ enum text_object_type {
 #ifdef EVE
        OBJ_eve,
 #endif /* EVE */
+#ifdef HAVE_CURL
+       OBJ_curl,
+#endif /* HAVE_CURL */
 #ifdef RSS
        OBJ_rss,
 #endif /* RSS */
 #ifdef WEATHER
        OBJ_weather,
 #endif /* WEATHER */
+#ifdef XOAP
+       OBJ_weather_forecast,
+#endif /* XOAP */
 #ifdef HAVE_LUA
        OBJ_lua,
        OBJ_lua_parse,
@@ -400,6 +408,7 @@ enum text_object_type {
 #ifdef HDDTEMP
        OBJ_hddtemp,
 #endif /* HDDTEMP */
+       OBJ_include,
        OBJ_blink,
        OBJ_to_bytes,
        OBJ_scroll,
@@ -490,15 +499,11 @@ struct text_object {
 
                struct {
                        int wantedlines;
-                       int readlines;
                        char *logfile;
-                       double last_update;
-                       float interval;
                        char *buffer;
-                       /* If not -1, a file descriptor to read from when
-                        * logfile is a FIFO. */
-                       int fd;
-               } tail;
+                       int current_use;
+                       int max_uses;
+               } headtail;
 
                struct {
                        double last_update;
@@ -538,29 +543,42 @@ struct text_object {
                        char *userid;
                } eve;
 #endif
+#ifdef HAVE_CURL
+               struct {
+                       char *uri;
+                       float interval;
+               } curl;
+#endif
 #ifdef RSS
                struct {
                        char *uri;
                        char *action;
                        int act_par;
-                       int delay;
+                       float interval;
                        unsigned int nrspaces;
-                       timed_thread *p_timed_thread;
                } rss;
 #endif
 #ifdef WEATHER
                struct {
                        char *uri;
-                       char *data_type;
-                       int interval;
-                               timed_thread *p_timed_thread;
+                       char *data_type;
+                       int interval;
                } weather;
 #endif
+#ifdef XOAP
+               struct {
+                       char *uri;
+                       unsigned int day;
+                       char *data_type;
+                       int interval;
+               } weather_forecast;
+#endif
                struct {
                        char *text;
                        unsigned int show;
                        unsigned int step;
                        unsigned int start;
+                       long resetcolor;
                } scroll;
 
                struct {