From 2b6f5a3742b8d2f82329bc37736cfcd596c09afb Mon Sep 17 00:00:00 2001 From: Liang Hou Date: Sat, 29 Sep 2007 07:55:16 +0000 Subject: update for unsubscribe/renew client interface change --- src/wsman.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src') 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); -- cgit