aboutsummaryrefslogtreecommitdiff
path: root/lib/libeclat.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-09-20 00:49:00 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-09-20 00:49:00 +0300
commitdf0d5f4df874bd47e5e47d08c67fea7ac17eec1e (patch)
tree2097591c3fd1a8e82bf6101c6d311fc9480917f1 /lib/libeclat.h
parent96871660d41c0130460f52057c0334cec46f7dd3 (diff)
downloadeclat-df0d5f4df874bd47e5e47d08c67fea7ac17eec1e.tar.gz
eclat-df0d5f4df874bd47e5e47d08c67fea7ac17eec1e.tar.bz2
Implement start-instance.
* lib/qaddparm.c: New file. * lib/qcreat.c: New file. * lib/qencode.c: New file. * lib/qfree.c: new file. * lib/Makefile.am: Add new files. * lib/libeclat.h (ec2_query) <https, verb>: Remove. <flags>: New member. (eclat_query_create, eclat_query_free) (eclat_query_encode): New protos. * lib/q2url.c (eclat_query_to_url): Fix. * lib/reqsign.c (eclat_query_signature): Bugfixes. * src/config.c (config_finish): Call grecs_tree_process. * src/eclat.c (url_base): Remove. (main): Install curl debugging function if required. * src/eclat.h: Update. * src/startinst.c (eclat_start_instance): Implement.
Diffstat (limited to 'lib/libeclat.h')
-rw-r--r--lib/libeclat.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libeclat.h b/lib/libeclat.h
index aacc0e2..e2dfc44 100644
--- a/lib/libeclat.h
+++ b/lib/libeclat.h
@@ -33,17 +33,25 @@ struct ec2_param {
char *value;
};
+#define EC2_QF_HTTPS 0x01
+#define EC2_QF_POST 0x02
+
struct ec2_query {
- int https;
+ int flags; /* Composed from EC2_QF_* bits */
char *endpoint; /* endpoint */
char *uri; /* URI without parameters */
- char *verb; /* GET or POST */
struct grecs_symtab *params; /* Query parameters */
char *signature;
+ unsigned long ttl; /* Time-to-live in seconds */
};
+struct ec2_query *eclat_query_create(int flags, const char *endpoint,
+ const char *uri);
+void eclat_query_free(struct ec2_query *);
+
int eclat_query_signature(struct ec2_query *req, char *secret);
char *eclat_query_to_url(struct ec2_query *req, char **post_params);
+void eclat_query_encode(struct ec2_query *q);

Return to:

Send suggestions and report system problems to the System administrator.