From 85a6b7a2dd2ec54c82eb9cf1a9c0b4e8812bc079 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 27 Apr 2007 02:59:37 +0000 Subject: merge changes from branch --- src/wsman-client-options.c | 8 ++++++++ src/wsman.c | 4 ++++ 2 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/wsman-client-options.c b/src/wsman-client-options.c index 3c21014..26b3b32 100644 --- a/src/wsman-client-options.c +++ b/src/wsman-client-options.c @@ -86,6 +86,7 @@ char step = 0; char request_only = 0; char cim_extensions = 0; char cim_references = 0; +char cim_associators = 0; static char *enum_mode = NULL; static char *binding_enum_mode = NULL; static char *enum_context = NULL; @@ -213,6 +214,8 @@ char wsman_parse_options(int argc, char **argv) "Show CIM Extensions", NULL}, {"references", 'W', U_OPTION_ARG_NONE, &cim_references, "CIM References", NULL}, + {"associators", 'w', U_OPTION_ARG_NONE, &cim_associators, + "CIM Associators", NULL}, {NULL} }; @@ -436,6 +439,11 @@ char wsman_options_get_cim_ref(void) return cim_references; } +char wsman_options_get_cim_assoc(void) +{ + return cim_associators; +} + char wsman_options_get_cim_ext(void) { return cim_extensions; diff --git a/src/wsman.c b/src/wsman.c index 7361f9f..e89d3e0 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -315,6 +315,10 @@ int main(int argc, char **argv) wsman_set_action_option(options, FLAG_CIM_REFERENCES); } + if (wsman_options_get_cim_assoc()) { + wsman_set_action_option(options, + FLAG_CIM_ASSOCIATORS); + } if (wsman_options_get_optimize_enum()) { wsman_set_action_option(options, FLAG_ENUMERATION_OPTIMIZATION); -- cgit