use a global struct moc_s
authorPhil Sutter <phil@nwl.cc>
Mon, 22 Dec 2008 18:31:48 +0000 (19:31 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 22 Dec 2008 18:36:24 +0000 (19:36 +0100)
commitdd31cc77eb4935fa63aac79ec7c1eb09c4be4352
tree21d6c831aaf3e64bda6bc0784dce84e4f134ddc6
parent2f3fb23ff7805e9b93ef43fc24277ace583221ca
use a global struct moc_s

Since there is no choice of which moc player to get information from,
all moc objects' data source can be identical. Also hide some internal
data (the thread e.g.). Since from now on there can only be one moc
thread (not highlander ;), we don't need to treat the thread object
specially.

While here, fix indenting.
src/common.c
src/conky.c
src/conky.h
src/moc.c
src/moc.h