diff options
| author | Anas Nashif <nashif@intel.com> | 2007-05-16 23:37:32 +0000 |
|---|---|---|
| committer | Anas Nashif <nashif@intel.com> | 2007-05-16 23:37:32 +0000 |
| commit | 16803fdddfa698aa7586245d8a48ef25f480635a (patch) | |
| tree | bff0e93234fc949d6cfdb95df998f55b13170fe6 /examples | |
| parent | 6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230 (diff) | |
| download | wsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.tar.gz wsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.tar.xz wsmancli-16803fdddfa698aa7586245d8a48ef25f480635a.zip | |
more API changes
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/create_resource.c | 2 | ||||
| -rw-r--r-- | examples/enum_epr.c | 2 | ||||
| -rw-r--r-- | examples/win32_service.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/create_resource.c b/examples/create_resource.c index 1662884..337ac0f 100644 --- a/examples/create_resource.c +++ b/examples/create_resource.c @@ -137,7 +137,7 @@ int main(int argc, char** argv) wsman_client_transport_init(cl, NULL); options = wsman_client_options_init(); - if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + if (dump) wsman_client_set_action_option(options,FLAG_DUMP_REQUEST ); options->max_envelope_size = 51200; options->timeout = 60000; diff --git a/examples/enum_epr.c b/examples/enum_epr.c index c773f24..c5dd74e 100644 --- a/examples/enum_epr.c +++ b/examples/enum_epr.c @@ -178,7 +178,7 @@ int main(int argc, char** argv) wsman_client_transport_init(cl, NULL); options = wsman_client_options_init(); - wsman_set_action_option(options, FLAG_ENUMERATION_ENUM_EPR); + wsman_client_set_action_option(options, FLAG_ENUMERATION_ENUM_EPR); list_t *l = list_create(LISTCOUNT_T_MAX); diff --git a/examples/win32_service.c b/examples/win32_service.c index 2a87814..8e10c18 100644 --- a/examples/win32_service.c +++ b/examples/win32_service.c @@ -243,24 +243,24 @@ int main(int argc, char** argv) options = wsman_client_options_init(); if (listall) { - if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + if (dump) wsman_client_set_action_option(options,FLAG_DUMP_REQUEST ); wsman_client_action_enumerate_and_pull(cl, RESOURCE_URI, options, list_services, NULL ); } else if (start && argv[1]) { - if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + if (dump) wsman_client_set_action_option(options,FLAG_DUMP_REQUEST ); wsman_client_add_selector(options, "Name", argv[1]); doc = wsman_client_action_invoke(cl, RESOURCE_URI, options, "StartService", NULL); ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc)); ws_xml_destroy_doc(doc); } else if (stop && argv[1]) { - if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + if (dump) wsman_client_set_action_option(options,FLAG_DUMP_REQUEST ); wsman_client_add_selector(options, "Name", argv[1]); doc = wsman_client_action_invoke(cl, RESOURCE_URI, options, "StopService", NULL); ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc)); ws_xml_destroy_doc(doc); } else if ( argv[1] ) { - if (dump) wsman_set_action_option(options,FLAG_DUMP_REQUEST ); + if (dump) wsman_client_set_action_option(options,FLAG_DUMP_REQUEST ); wsman_client_add_selector(options, "Name", argv[1]); doc = wsman_client_action_get(cl, RESOURCE_URI, options); |
