tool_cfgable: Added GlobalConfig pointer to OperationConfig

In order to ease the moving of global options such as the error stream,
updated the OperationConfig structure to point to the GlobalConfig.
This commit is contained in:
Steve Holme 2014-02-26 21:02:53 +00:00
parent fc59a9e18f
commit 17df2d8f8e
3 changed files with 9 additions and 0 deletions

View file

@ -1838,6 +1838,9 @@ ParameterError parse_args(struct GlobalConfig *config, int argc,
/* Copy the easy handle */
operation->next->easy = config->easy;
/* Set the global config pointer */
operation->next->global = config;
/* Update the last operation pointer */
config->last = operation->next;