sessiond: trigger: decouple reception of triggers from commands
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2021 23:13:11 +0000 (18:13 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 28 Jan 2021 23:08:04 +0000 (18:08 -0500)
commit746e08d773ef6c7bbbae1334350b8a2c46aaeb0e
treefd606b95be6b956dd86d75d68bf67d468fc18ae9
parentac16173e318279dee29504820e3c2ad8ea597712
sessiond: trigger: decouple reception of triggers from commands

The trigger to register/unregister is received in the body of the
register and unregister commands.

Isolate the reception of the trigger from the command payload in
a util in client.c (receive_lttng_trigger()) which allows the commands
to only operate on fully-formed objects.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iaee6c54590e259ce053d368494ff0c8b356a36a1
src/bin/lttng-sessiond/client.c
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/cmd.h
This page took 0.033425 seconds and 4 git commands to generate.