Clean-up: move global sessiond symbols out of main.o
The global symbols defined in main.c prevent the use of numerous
functions from various other files. For instance, using timer.h
utils from session.o forces the redefinition of symbols that
are defined in main.o in the session unit tests.
This is a problem that has often occured in the past, more or less
forcing the unit tests to link against all sessiond objects. Moving
the global symbols to their own files (thread-utils.c,
process-utils.c, globals.c, and ready.c) does not solve this problem,
but it allows the unit tests to link against their resulting
objects and forego the stub-ing of symbols.
In the future, we could consider moving most the session daemon
to an internal library which could be re-used by the unit tests.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
13 files changed:
This page took 0.036084 seconds and 4 git commands to generate.