summaryrefslogtreecommitdiffabout
path: root/src/rmaddr.c
Unidiff
Diffstat (limited to 'src/rmaddr.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/rmaddr.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/rmaddr.c b/src/rmaddr.c
new file mode 100644
index 0000000..b970248
--- a/dev/null
+++ b/src/rmaddr.c
@@ -0,0 +1,37 @@
1/* This file is part of Eclat.
2 Copyright (C) 2012, 2013 Sergey Poznyakoff.
3
4 Eclat is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 Eclat is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
16
17#include "eclat.h"
18static int vpc;
19#include "freeaddr-cl.h"
20
21int
22eclat_release_address(eclat_command_env_t *env, int argc, char **argv)
23{
24 int i;
25
26 parse_options(env, argc, argv, &i);
27 argc -= i;
28 argv += i;
29
30 if (argc != 1)
31 die(EX_USAGE, "wrong number of arguments to release-address");
32
33 eclat_query_add_param(env->query, vpc ? "AssociationId" : "PublicIp",
34 argv[0]);
35
36 return 0;
37}

Return to:

Send suggestions and report system problems to the System administrator.