summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiang Hou <houliang@intel.com>2007-09-29 07:55:16 +0000
committerLiang Hou <houliang@intel.com>2007-09-29 07:55:16 +0000
commit2b6f5a3742b8d2f82329bc37736cfcd596c09afb (patch)
tree99996dd05a54455b3ccdff3ed8794cd8f5bfaac9 /src
parent54823c3644309f59ee69f8c301ee5aa2f07b2cd8 (diff)
downloadwsmancli-2b6f5a3742b8d2f82329bc37736cfcd596c09afb.tar.gz
wsmancli-2b6f5a3742b8d2f82329bc37736cfcd596c09afb.tar.xz
wsmancli-2b6f5a3742b8d2f82329bc37736cfcd596c09afb.zip
update for unsubscribe/renew client interface change
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/wsman.c b/src/wsman.c
index 4705abd..2a5ecfb 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -133,7 +133,6 @@ WsActions action_data[] = {
{"subscribe", WSMAN_ACTION_SUBSCRIBE},
{"unsubscribe", WSMAN_ACTION_UNSUBSCRIBE},
{"renew", WSMAN_ACTION_RENEW},
- {"pull", WSMAN_ACTION_EVENT_PULL},
{"test", WSMAN_ACTION_TEST},
{NULL, 0},
};
@@ -808,7 +807,7 @@ int main(int argc, char **argv)
}
break;
case WSMAN_ACTION_UNSUBSCRIBE:
- rqstDoc = wsmc_action_unsubscribe(cl, resource_uri, options, event_subscription_id);
+ rqstDoc = wsmc_action_unsubscribe(cl, options, event_subscription_id);
wsman_output(cl, rqstDoc);
if (rqstDoc) {
ws_xml_destroy_doc(rqstDoc);
@@ -817,14 +816,7 @@ int main(int argc, char **argv)
case WSMAN_ACTION_RENEW:
if(event_subscription_expire)
options->expires = event_subscription_expire;
- rqstDoc = wsmc_action_renew(cl, resource_uri, options, event_subscription_id);
- wsman_output(cl, rqstDoc);
- if (rqstDoc) {
- ws_xml_destroy_doc(rqstDoc);
- }
- break;
- case WSMAN_ACTION_EVENT_PULL:
- rqstDoc = wsmc_action_evt_pull(cl, resource_uri, options, enum_context);
+ rqstDoc = wsmc_action_renew(cl, options, event_subscription_id);
wsman_output(cl, rqstDoc);
if (rqstDoc) {
ws_xml_destroy_doc(rqstDoc);