summaryrefslogtreecommitdiffabout
path: root/src/mktags-cl.opt
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-26 14:18:53 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-04-26 14:48:21 (GMT)
commit699ba6cd496d8401959a0581a1d49c448d3f3c7c (patch) (side-by-side diff)
treee576553ef6531cdf7b1f9b375036f9dd28f2332d /src/mktags-cl.opt
parentaf02bbe4ab84ddd6a5ec8da3bab0fa360e8bded2 (diff)
downloadeclat-699ba6cd496d8401959a0581a1d49c448d3f3c7c.tar.gz
eclat-699ba6cd496d8401959a0581a1d49c448d3f3c7c.tar.bz2
Improve ID mapping.
* doc/eclat.conf.5: Update. * src/cmdline.opt: New option --no-translate (-X) * src/config.c (eclat_kw): New statement: translate. * src/eclat.c (main): override the value of translation_enabled from the command line. * src/eclat.h (translate_option): Rename to translation_enabled. All uses changed. (MAP_IMAGE,MAP_INSTANCE) (MAP_GROUPID,MAP_GROUPNAME) (MAP_SNAPSHOT,MAP_VOLUME) (MAP_AZ,MAP_REG): New defines, to use instead of literal map names. All sources updated accordingly. * src/util.c (translate_option): Rename to translation_enabled. (translate_ids): It is not an error if the name is not found in the map. Use it as the resource ID in that case.
Diffstat (limited to 'src/mktags-cl.opt') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mktags-cl.opt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mktags-cl.opt b/src/mktags-cl.opt
index e622db8..58111e3 100644
--- a/src/mktags-cl.opt
+++ b/src/mktags-cl.opt
@@ -45,7 +45,7 @@ OPTION(instance,i,[<ID>],
[<instance ID>])
BEGIN
struct resource *res = grecs_malloc(sizeof(*res));
- res->map = "InstanceId";
+ res->map = MAP_INSTANCE;
res->resid = optarg;
grecs_list_append(reslist, res);
END
@@ -54,7 +54,7 @@ OPTION(volume,v,[<ID>],
[<volume ID>])
BEGIN
struct resource *res = grecs_malloc(sizeof(*res));
- res->map = "VolumeId";
+ res->map = MAP_VOLUME;
res->resid = optarg;
grecs_list_append(reslist, res);
END
@@ -63,7 +63,7 @@ OPTION(ami,a,[<ID>],
[<AMI ID>])
BEGIN
struct resource *res = grecs_malloc(sizeof(*res));
- res->map = "ImageId";
+ res->map = MAP_IMAGE;
res->resid = optarg;
grecs_list_append(reslist, res);
END
@@ -72,7 +72,7 @@ OPTION(snapshot,s,[<ID>],
[<snapshot ID>])
BEGIN
struct resource *res = grecs_malloc(sizeof(*res));
- res->map = "SnapshotId";
+ res->map = MAP_SNAPSHOT;
res->resid = optarg;
grecs_list_append(reslist, res);
END

Return to:

Send suggestions and report system problems to the System administrator.