diff options
Diffstat (limited to 'hicn-light/src/hicn/config/controlCacheStore.c')
-rw-r--r-- | hicn-light/src/hicn/config/controlCacheStore.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/hicn-light/src/hicn/config/controlCacheStore.c b/hicn-light/src/hicn/config/controlCacheStore.c index e54eae4f7..9f2a18146 100644 --- a/hicn-light/src/hicn/config/controlCacheStore.c +++ b/hicn-light/src/hicn/config/controlCacheStore.c @@ -31,10 +31,14 @@ static CommandReturn _controlCacheStore_Execute(CommandParser *parser, CommandOps *ops, - PARCList *args); + PARCList *args, + char *output, + size_t output_size); static CommandReturn _controlCacheStore_HelpExecute(CommandParser *parser, CommandOps *ops, - PARCList *args); + PARCList *args, + char *output, + size_t output_size); static const char *_commandCacheStore = "cache store"; static const char *_commandCacheStoreHelp = "help cache store"; @@ -55,18 +59,21 @@ CommandOps *controlCacheStore_HelpCreate(ControlState *state) { static CommandReturn _controlCacheStore_HelpExecute(CommandParser *parser, CommandOps *ops, - PARCList *args) { - printf("cache store [on|off]\n"); - printf("\n"); + PARCList *args, + char *output, + size_t output_size) { + snprintf(output, output_size, "cache store [on|off]\n\n"); return CommandReturn_Success; } static CommandReturn _controlCacheStore_Execute(CommandParser *parser, CommandOps *ops, - PARCList *args) { + PARCList *args, + char *output, + size_t output_size) { if (parcList_Size(args) != 3) { - _controlCacheStore_HelpExecute(parser, ops, args); + _controlCacheStore_HelpExecute(parser, ops, args, output, output_size); return CommandReturn_Failure; } @@ -76,7 +83,7 @@ static CommandReturn _controlCacheStore_Execute(CommandParser *parser, } else if (strcmp(parcList_GetAtIndex(args, 2), "off") == 0) { active = false; } else { - _controlCacheStore_HelpExecute(parser, ops, args); + _controlCacheStore_HelpExecute(parser, ops, args, output, output_size); return CommandReturn_Failure; } |