summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Revyakin <vadimr@intel.com>2006-11-17 12:42:48 +0000
committerVadim Revyakin <vadimr@intel.com>2006-11-17 12:42:48 +0000
commit856f31a52ecf914b070c14c93f30bc365a044768 (patch)
tree3489b012e5662596b6c8f0177278287693424ed0 /src
parent9a1fd0f7dfc5a91fa11f2dc9a05391199d935e07 (diff)
downloadwsmancli-856f31a52ecf914b070c14c93f30bc365a044768.tar.gz
wsmancli-856f31a52ecf914b070c14c93f30bc365a044768.tar.xz
wsmancli-856f31a52ecf914b070c14c93f30bc365a044768.zip
headers cleanup. interface advancing
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c8
-rwxr-xr-xsrc/wsmid_identify.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/src/wsman.c b/src/wsman.c
index 7eb2403..7a9fadc 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -198,7 +198,7 @@ int main(int argc, char** argv)
switch (op) {
case WSMAN_ACTION_TEST:
- rqstDoc = ws_xml_read_file(ws_context_get_runtime(cl->wscntx),
+ rqstDoc = wsman_client_read_file(cl,
wsman_options_get_test_file(), "UTF-8", 0);
wsman_send_request(cl, rqstDoc);
doc = wsman_build_envelope_from_response(cl);
@@ -305,7 +305,7 @@ int main(int argc, char** argv)
doc = wsenum_pull(cl, resource_uri, enumContext, options);
wsman_output(doc);
- if (cl->response_code != 200) {
+ if (wsman_get_client_response_code(cl) != 200) {
break;
}
enumContext = wsenum_get_enum_context(doc);
@@ -321,9 +321,9 @@ int main(int argc, char** argv)
retVal = 1;
}
- if (cl->response_code != 200) {
+ if (wsman_get_client_response_code(cl) != 200) {
fprintf(stderr, "Connection failed. response code = %ld\n",
- cl->response_code);
+ wsman_get_client_response_code(cl));
}
destroy_action_options(&options);
diff --git a/src/wsmid_identify.c b/src/wsmid_identify.c
index 4c4fa16..c43c1ec 100755
--- a/src/wsmid_identify.c
+++ b/src/wsmid_identify.c
@@ -128,12 +128,12 @@ int main(int argc, char** argv)
WsXmlNodeH soapBody = ws_xml_get_soap_body(doc);
if (ws_xml_get_child(soapBody, 0, XML_NS_WSMAN_ID, "IdentifyResponse")) {
- wsmid_identify *id = ws_deserialize(cl->wscntx, soapBody,
- wsmid_identify_TypeInfo,"IdentifyResponse",
- XML_NS_WSMAN_ID, XML_NS_WSMAN_ID,
- 0,
- 0);
-
+ wsmid_identify *id = ws_deserialize(wsman_client_get_context(cl),
+ soapBody,
+ wsmid_identify_TypeInfo,"IdentifyResponse",
+ XML_NS_WSMAN_ID, XML_NS_WSMAN_ID,
+ 0, 0);
+
if (vendor)
printf("%s\n", id->ProductVendor);
if (version)