common: a bit better superloop abstraction with improvement cleanup
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 27 Sep 2012 08:04:50 +0000 (11:04 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 26 Oct 2012 16:03:51 +0000 (19:03 +0300)
commit1fea9cb467a8866427129c01ee26dc468c4a8504
treec83a7e0c8c0db2fc0cf363e5759d3dd371505206
parent6a9c684c3658b1076ea140025f12707a91624cd6
common: a bit better superloop abstraction with improvement cleanup

Cleaned up a little bit the superloop abstraction with repect to
cleanup/unregistration. Now the superloop glue code provides a
cleanup handler which is invoked by the mainloop during unregistration.
The dangerous bits of passing the opaque glue data between the mainloop
and the superloop glue via the user are now gone.

Updated the pulse glue accordingly.
src/common-func-info.c
src/common/mainloop.c
src/common/mainloop.h
src/common/pulse-glue.c
src/common/pulse-glue.h
src/common/tests/mainloop-test.c
src/linker-script.common
src/linker-script.pulse