From 938c4bb798b18beeae59028334660f555045cdac Mon Sep 17 00:00:00 2001 From: Liang Hou Date: Mon, 6 Aug 2007 07:47:11 +0000 Subject: update renew command support --- src/wsman.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wsman.c b/src/wsman.c index bd366a3..36321cf 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -328,7 +328,9 @@ static char wsman_parse_options(int argc, char **argv) resource_uri_opt = argv[2]; } else { if (argv[1] && (strcmp(argv[1], "identify") == 0 || - strcmp(argv[1], "test") == 0)) { + strcmp(argv[1], "test") == 0 || + strcmp(argv[1], "unsubscribe") == 0 || + strcmp(argv[1], "renew") == 0)) { _action = argv[1]; } else { fprintf(stderr, @@ -510,7 +512,6 @@ int main(int argc, char **argv) if (!wsman_parse_options(argc, argv)) { exit(EXIT_FAILURE); } - initialize_logging(); // wsmc_transport_init(NULL); options = wsmc_options_init(); @@ -807,6 +808,8 @@ int main(int argc, char **argv) } break; 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) { -- cgit