entropy: outsource code
authorPhil Sutter <phil@nwl.cc>
Thu, 12 Nov 2009 22:50:17 +0000 (23:50 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 12 Nov 2009 23:02:16 +0000 (00:02 +0100)
commit8922603b9196f3648f11fdbe386d1bcf0675cabf
tree60be41eb5bf9e921d29071713914fceeb69c8360
parente787870eb438bd875ceb408d84aca0444396e132
entropy: outsource code

This patch ought to be small and simple ...

The reason why it's not is me wanting the entropy data out of struct
information. This means update_entropy() can not be used anymore, as it
uses this globally available object.

The solution I am presenting here is quite messy regarding header
includes. Hopefully this will go away soon as I plan on creating some
sort of "OS library" containing all OS specific routines and defining
macros for easier capability checking in the non-specific code. This on
the other hand means we'll need "wrappers" around OS specific objects,
but that's not as bad as it seems - having non-specific text objects
only will definitely clean up the code, and capabilities can be checked
where they should be.
14 files changed:
src/Makefile.am
src/conky.c
src/conky.h
src/core.c
src/entropy.c [new file with mode: 0644]
src/entropy.h [new file with mode: 0644]
src/freebsd.c
src/freebsd.h
src/linux.c
src/linux.h
src/netbsd.c
src/netbsd.h
src/openbsd.c
src/openbsd.h