Added support for blink
[monky] / src / text_object.h
index ed92373..ba3803b 100644 (file)
@@ -42,6 +42,7 @@
 #endif
 
 enum text_object_type {
+       OBJ_read_tcp,
        OBJ_addr,
 #if defined(__linux__)
        OBJ_addrs,
@@ -55,9 +56,7 @@ enum text_object_type {
        OBJ_battery,
        OBJ_battery_time,
        OBJ_battery_percent,
-#ifdef X11
        OBJ_battery_bar,
-#endif
        OBJ_battery_short,
 #endif /* !__OpenBSD__ */
        OBJ_buffers,
@@ -83,7 +82,7 @@ enum text_object_type {
        OBJ_cpugauge,
        OBJ_cpugraph,
        OBJ_loadgraph,
-#endif
+#endif /* X11 */
        OBJ_diskio,
        OBJ_diskio_read,
        OBJ_diskio_write,
@@ -91,12 +90,12 @@ enum text_object_type {
        OBJ_diskiograph,
        OBJ_diskiograph_read,
        OBJ_diskiograph_write,
-#endif
+#endif /* X11 */
        OBJ_downspeed,
        OBJ_downspeedf,
 #ifdef X11
        OBJ_downspeedgraph,
-#endif
+#endif /* X11 */
        OBJ_else,
        OBJ_endif,
        OBJ_eval,
@@ -105,21 +104,19 @@ enum text_object_type {
        OBJ_execi,
        OBJ_texeci,
        OBJ_execbar,
+       OBJ_execibar,
 #ifdef X11
        OBJ_execgauge,
        OBJ_execgraph,
-       OBJ_execibar,
        OBJ_execigraph,
        OBJ_execigauge,
-#endif
+#endif /* X11 */
        OBJ_execp,
        OBJ_execpi,
        OBJ_freq,
        OBJ_freq_g,
-#ifdef X11
        OBJ_fs_bar,
        OBJ_fs_bar_free,
-#endif
        OBJ_fs_free,
        OBJ_fs_free_perc,
        OBJ_fs_size,
@@ -180,9 +177,7 @@ enum text_object_type {
        OBJ_wireless_link_qual,
        OBJ_wireless_link_qual_max,
        OBJ_wireless_link_qual_perc,
-#ifdef X11
        OBJ_wireless_link_bar,
-#endif /* X11 */
 #endif /* __linux__ */
 #if defined(__FreeBSD__) || defined(__linux__)
        OBJ_if_up,
@@ -196,6 +191,9 @@ enum text_object_type {
        OBJ_top,
        OBJ_top_mem,
        OBJ_top_time,
+#ifdef IOSTATS
+       OBJ_top_io,
+#endif
        OBJ_tail,
        OBJ_head,
        OBJ_lines,
@@ -297,9 +295,7 @@ enum text_object_type {
        OBJ_mpd_vol,
        OBJ_mpd_bitrate,
        OBJ_mpd_status,
-#ifdef X11
        OBJ_mpd_bar,
-#endif
        OBJ_mpd_elapsed,
        OBJ_mpd_length,
        OBJ_mpd_track,
@@ -308,7 +304,7 @@ enum text_object_type {
        OBJ_mpd_percent,
        OBJ_mpd_smart,
        OBJ_if_mpd_playing,
-#endif
+#endif /* MPD */
 #ifdef MOC
        OBJ_moc_state,
        OBJ_moc_file,
@@ -321,7 +317,7 @@ enum text_object_type {
        OBJ_moc_curtime,
        OBJ_moc_bitrate,
        OBJ_moc_rate,
-#endif
+#endif /* MOC */
 #ifdef XMMS2
        OBJ_xmms2_artist,
        OBJ_xmms2_album,
@@ -340,12 +336,12 @@ enum text_object_type {
        OBJ_xmms2_status,
 #ifdef X11
        OBJ_xmms2_bar,
-#endif
+#endif /* X11 */
        OBJ_xmms2_smart,
        OBJ_xmms2_playlist,
        OBJ_xmms2_timesplayed,
        OBJ_if_xmms2_connected,
-#endif
+#endif /* XMMS2 */
 #ifdef AUDACIOUS
        OBJ_audacious_status,
        OBJ_audacious_title,
@@ -362,8 +358,8 @@ enum text_object_type {
        OBJ_audacious_main_volume,
 #ifdef X11
        OBJ_audacious_bar,
-#endif
-#endif
+#endif /* X11 */
+#endif /* AUDACIOUS */
 #ifdef BMPX
        OBJ_bmpx_title,
        OBJ_bmpx_artist,
@@ -371,40 +367,41 @@ enum text_object_type {
        OBJ_bmpx_track,
        OBJ_bmpx_uri,
        OBJ_bmpx_bitrate,
-#endif
+#endif /* BMPX */
 #ifdef EVE
        OBJ_eve,
-#endif
+#endif /* EVE */
 #ifdef RSS
        OBJ_rss,
-#endif
+#endif /* RSS */
 #ifdef HAVE_LUA
        OBJ_lua,
        OBJ_lua_parse,
        OBJ_lua_read_parse,
-#ifdef X11
        OBJ_lua_bar,
+#ifdef X11
        OBJ_lua_graph,
        OBJ_lua_gauge,
 #endif /* X11 */
 #endif /* HAVE_LUA */
 #ifdef TCP_PORT_MONITOR
        OBJ_tcp_portmon,
-#endif
+#endif /* TCP_PORT_MONITOR */
 #ifdef HAVE_ICONV
        OBJ_iconv_start,
        OBJ_iconv_stop,
-#endif
+#endif /* HAVE_ICONV */
 #ifdef HDDTEMP
        OBJ_hddtemp,
-#endif
+#endif /* HDDTEMP */
+       OBJ_blink,
+       OBJ_to_bytes,
        OBJ_scroll,
        OBJ_combine,
        OBJ_entropy_avail,
+       OBJ_entropy_perc,
        OBJ_entropy_poolsize,
-#ifdef X11
        OBJ_entropy_bar,
-#endif
 #ifdef APCUPSD
        OBJ_apcupsd,
        OBJ_apcupsd_name,
@@ -414,16 +411,16 @@ enum text_object_type {
        OBJ_apcupsd_status,
        OBJ_apcupsd_linev,
        OBJ_apcupsd_load,
-#ifdef X11
        OBJ_apcupsd_loadbar,
+#ifdef X11
        OBJ_apcupsd_loadgraph,
        OBJ_apcupsd_loadgauge,
-#endif
+#endif /* X11 */
        OBJ_apcupsd_charge,
        OBJ_apcupsd_timeleft,
        OBJ_apcupsd_temp,
        OBJ_apcupsd_lastxfer,
-#endif
+#endif /* APCUPSD */
 };
 
 struct text_object {
@@ -451,12 +448,12 @@ struct text_object {
                        char *fmt;      /* time display formatting */
                } tztime;
 
-#ifdef X11
                struct {
                        struct fs_stat *fs;
                        int w, h;
                } fsbar;                /* 3 */
 
+#ifdef X11
                struct {
                        int l;
                        int w, h;
@@ -557,6 +554,11 @@ struct text_object {
                        char *right;
                } combine;
 
+               struct {
+                       char *host;
+                       unsigned int port;
+               } read_tcp;
+
                struct local_mail_s local_mail;
 #ifdef NVIDIA
                struct nvidia_s nvidia;