From 9e2c045d6118ef264d6cf8fc655b72d7c4c403dc Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Tue, 9 Jun 2020 14:48:02 +0200 Subject: [HICN-626] Return output from libhicnlight Signed-off-by: Angelo Mantellini Change-Id: I2351ce4dcefa1311fa09049f87e8317c8fe449f4 --- hicn-light/src/hicn/config/commandOps.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'hicn-light/src/hicn/config/commandOps.h') diff --git a/hicn-light/src/hicn/config/commandOps.h b/hicn-light/src/hicn/config/commandOps.h index 0d685f1b8..784b91eb8 100644 --- a/hicn-light/src/hicn/config/commandOps.h +++ b/hicn-light/src/hicn/config/commandOps.h @@ -82,8 +82,11 @@ struct command_ops { void *closure; char *command; void (*init)(struct command_parser *parser, CommandOps *ops); - CommandReturn (*execute)(struct command_parser *parser, CommandOps *ops, - PARCList *args); + CommandReturn (*execute)(struct command_parser *parser, + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size); void (*destroyer)(CommandOps **opsPtr); }; @@ -104,8 +107,11 @@ struct command_ops { CommandOps *commandOps_Create( void *closure, const char *command, void (*init)(struct command_parser *parser, CommandOps *ops), - CommandReturn (*execute)(struct command_parser *parser, CommandOps *ops, - PARCList *args), + CommandReturn (*execute)(struct command_parser *parser, + CommandOps *ops, + PARCList *args, + char *output, + size_t output_size), void (*destroyer)(CommandOps **opsPtr)); /** -- cgit 1.2.3-korg