summaryrefslogtreecommitdiffstats
path: root/examples/enum_epr.c
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-05-16 23:15:19 +0000
committerAnas Nashif <nashif@intel.com>2007-05-16 23:15:19 +0000
commit6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230 (patch)
tree1480431c3f233ae4bf2af5a4bce44c7ff9158f9f /examples/enum_epr.c
parent30a0e40701704a4388bea110acd0836df3716036 (diff)
downloadwsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.tar.gz
wsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.tar.xz
wsmancli-6d02c9a6c69c7aeafdb0c55e5d70ffb5f0b06230.zip
api changes
Diffstat (limited to 'examples/enum_epr.c')
-rw-r--r--examples/enum_epr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/enum_epr.c b/examples/enum_epr.c
index 59a4629..c773f24 100644
--- a/examples/enum_epr.c
+++ b/examples/enum_epr.c
@@ -131,7 +131,7 @@ int main(int argc, char** argv)
WsManClient *cl;
WsXmlDocH doc;
- actionOptions *options;
+ client_opt_t *options;
char retval = 0;
u_error_t *error = NULL;
@@ -169,20 +169,20 @@ int main(int argc, char** argv)
}
- cl = wsman_create_client( uri->host,
+ cl = wsman_client_create( uri->host,
uri->port,
uri->path,
uri->scheme,
uri->user,
uri->pwd);
wsman_client_transport_init(cl, NULL);
- options = initialize_action_options();
+ options = wsman_client_options_init();
wsman_set_action_option(options, FLAG_ENUMERATION_ENUM_EPR);
list_t *l = list_create(LISTCOUNT_T_MAX);
- wsenum_enumerate_and_pull(cl, argv[1] , options, collect_epr, l );
+ wsman_client_action_enumerate_and_pull(cl, argv[1] , options, collect_epr, l );
printf("returned items: %d\n", list_count(l));
@@ -206,8 +206,8 @@ int main(int argc, char** argv)
u_uri_free(uri);
}
- destroy_action_options(options);
- wsman_release_client(cl);
+ wsman_client_options_destroy(options);
+ wsman_client_release(cl);
return 0;
}