Phil Sutter
3458db80aa
specials: convert tab object to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
50e2b5961a
specials: convert gauge objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
bbec0db498
specials: convert graph objects to new style
2009-11-03 23:23:23 +01:00
Phil Sutter
a4777c7c55
misc smaller fixes
2009-11-03 23:23:23 +01:00
Phil Sutter
22251dca51
specials: introduce dedicated per-object data and merge graph objects
2009-11-03 23:23:23 +01:00
Phil Sutter
42dfb7ac69
move loadavg and loadgraph code to common.c
2009-11-03 23:23:23 +01:00
Phil Sutter
63079a2075
local_mails: convert to generic object payload
...
This also includes a little header include cleanup.
2009-11-03 23:23:22 +01:00
Phil Sutter
ac99833646
text_object: use field i instead of cpu_index
2009-11-03 23:23:22 +01:00
Phil Sutter
3a365bcd33
if_up: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
0de0047bdc
obsd_sensors: cleanup code (untested)
2009-11-03 23:23:22 +01:00
Phil Sutter
0740e91911
diskio: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
0dc60481cf
top: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
4b0c1d3226
mboxscan: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
dd36fc4caa
mixer: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
c45decda5e
curl: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
4716969cc6
weather objects: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
046ae1dd61
rss: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
9202a9da87
eve: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
94ac89e091
sysfs objects: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
d2be5980ca
tcp_portmon: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
8d1640f30b
fs_*: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
f6942c8c98
tailhead: convert to generic object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
8165a91f0a
nvidia: convert to generic text object payload
2009-11-03 23:23:22 +01:00
Phil Sutter
d1b2c7eac3
local_mails: put code to where it belongs
...
Note that the code does not only use a pre-processor generator for
defining the print functions, but also for their prototypes. Sadly, this
generated a conflict in mboxscan.c which this patch resolves, too.
2009-11-03 01:50:28 +01:00
Phil Sutter
fa9135f9df
mail: put imap and pop3 code to where it belongs
2009-11-03 01:50:28 +01:00
Phil Sutter
8b76d8fb60
net_stats: outsource network-related objects
2009-11-03 01:50:28 +01:00
Phil Sutter
9efa29be28
combine: outsource code
2009-11-03 01:50:28 +01:00
Phil Sutter
37658b540b
scroll: outsource code
2009-11-03 01:50:28 +01:00
Phil Sutter
24d9e8bf24
read_tcp: outsource code
2009-11-03 01:50:28 +01:00
Phil Sutter
7a168c377b
exec: put all exec-related stuff into it's own file
...
While here, also merge the execi and texeci fields of struct
text_object, so more common code can be shared in between.
2009-11-03 01:50:28 +01:00
Phil Sutter
2631f42820
ibm: put specific code to where it belongs
2009-11-03 01:50:28 +01:00
Phil Sutter
7fc1c801aa
gw_info: move code to where it belongs
2009-11-03 01:50:28 +01:00
Phil Sutter
a106b52698
curl: put init and print code to where it belongs
...
This also fixes a bug in arg parsing, effectively forcing an interval to
be specified.
2009-10-12 21:33:02 +02:00
Phil Sutter
ad8dd36cb7
weather objects: move init and print code to weather.c
2009-10-12 21:33:02 +02:00
Phil Sutter
6a2f58a25c
rss: move init and print code into rss.c
2009-10-12 21:33:02 +02:00
Phil Sutter
ddca4aac68
spend some time with eve.{c,h}
...
* minimise core code hooks
* drop useless exporting of private functions (and make them static)
* reorder functions in eve.c so no prototypes are needed
* drop massive header include and add double include barrier in eve.h
2009-10-12 21:33:02 +02:00
Phil Sutter
700a32b2e7
sysfs objects: merge init and print routines
2009-10-12 21:33:02 +02:00
Phil Sutter
da7876468f
tcp_portmon: drop useless function pointer cast, use OBJ_ARG
2009-10-12 21:33:02 +02:00
Phil Sutter
4d70cf07b8
fs_bar, fs_bar_free: merge init and print routines
2009-10-12 21:33:02 +02:00
Phil Sutter
b9a28c37a8
tail, head: use OBJ_ARG to simplify code
2009-10-12 21:33:02 +02:00
Cesare Tirabassi
066af067f0
Fix global info.desktop variables were incorrectly freed, sf #2876647
2009-10-12 13:38:48 +02:00
Phil Sutter
1e893ec6e3
iconv: outsource code into it's own file
...
While testing, I found two already existing bugs:
* the variable 'a' passed to iconv_convert() needs to be passed by
reference in order to allow for the desired side effect.
* Somehow the trailing junk after an iconv_conversion to a shorter
string messes things up (and gets printed!). I couldn't exactly find
out why this happens, but setting (*p) = 0; solves this problem.
2009-10-04 03:41:45 +02:00
Phil Sutter
adf9d23927
outsource time, utime and tztime into a separate file
2009-10-04 03:24:04 +02:00
Phil Sutter
e3e77ce75e
move the SIZE_DEFAULTS() macro to where it belongs to
2009-10-04 03:24:04 +02:00
Brenden Matthews
88a8799bf5
Improve IMAP/POP3 code, fix compiler error.
2009-09-30 18:06:18 -07:00
Pavel Labath
28978461a7
Put OBJ(image) in $ifdefs
...
so that conky produces more meaningful error message when compiled without imlib
2009-09-25 14:43:46 +02:00
Pavel Labath
7ad3e34e34
OBJ -> OBJ_ARG; apparently forgotten in 9f22ba
2009-09-15 23:54:31 +02:00
Phil Sutter
9f22bab657
core: add OBJ_ARG() and OBJ_IF_ARG() to force arguments
...
These macros can be used just like their OBJ() and OBJ_IF()
counterparts, just that they bail out hard when arg is unset. While
here, also cleanup the macro definition by using __* macros and fully
cleanup the macro namespace when the job is done.
Although this makes conky kind of less robust when it comes to
configuration errors, aborting is the right thing to do to avoid
ambiguity between unknown text objects.
2009-09-15 23:12:15 +02:00
Phil Sutter
f33affdc03
do not unconditionally overwrite a variable after conditionally setting it
2009-09-15 23:12:15 +02:00
Phil Sutter
ed3d73c094
minor indenting fixup
2009-09-15 23:12:15 +02:00