From: David Goulet Date: Thu, 15 Sep 2011 23:24:23 +0000 (-0400) Subject: Major code cleanup X-Git-Tag: v2.0-pre13~3 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=54d01ffb43587b221dc50ec42b6070fad89bd255;hp=54d01ffb43587b221dc50ec42b6070fad89bd255 Major code cleanup Cleanup main.c of the session daemon. The main switch case to handle client command is made more modular and clearer. Each command has a function associated with it beginning by 'cmd_*'. Also adds channel.c/.h and event.c/.h containing helper function to execute client commands. The reste of the modified code is simple cleanup. Some minor bugs were fixed also by this cleanup. All and for all, this makes easier to maintain the session daeamon code base. Signed-off-by: David Goulet ---