diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-27 15:01:01 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-27 15:04:42 +0300 |
commit | ff8594b8cc916ba665961bd1e4e956810057f0ea (patch) | |
tree | 140e903f09d53ee87ab6e0f564d70ddf21402c69 /src/dscrinsts.c | |
parent | 0c8a7ab953a86426a13aa0eccaf2b2c46f8271c0 (diff) | |
download | eclat-ff8594b8cc916ba665961bd1e4e956810057f0ea.tar.gz eclat-ff8594b8cc916ba665961bd1e4e956810057f0ea.tar.bz2 |
Implement describe-instances and some bugfixes.
* configure.ac: Change bug-reporting email.
* grecs: Upgrade.
* lib/forlan.c (eval_comp0): Set root.
* lib/xmltree.c (eclat_partial_tree_end_handler): Set type
to grecs_node_block for empty blocks.
* src/Makefile.am: Add new files.
* src/eclat.c: Rewrite and simplify command name matcher.
Implement describe-instances.
* src/eclat.conf (DescribeInstances): New format.
* src/eclat.h (eclat_describe_instances): New proto.
Diffstat (limited to 'src/dscrinsts.c')
-rw-r--r-- | src/dscrinsts.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/dscrinsts.c b/src/dscrinsts.c new file mode 100644 index 0000000..a66853c --- /dev/null +++ b/src/dscrinsts.c @@ -0,0 +1,34 @@ +/* This file is part of Eclat. + Copyright (C) 2012 Sergey Poznyakoff. + + Eclat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + Eclat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ + +#include "eclat.h" +#include "dscrinsts-cl.h" + +int +eclat_describe_instances(CURL *curl, int argc, char **argv) +{ + int i; + struct ec2_query *q; + CURLcode res; + char *url; + + parse_options(argc, argv, &i); + argv += i; + argc -= i; + + q = describe_query_create(curl, "DescribeInstances", argc, argv); + return eclat_send_query(curl, q); +} |