diff --git a/COGNAC b/COGNAC index 82bea3f..7ccc026 160000 --- a/COGNAC +++ b/COGNAC @@ -1 +1 @@ -Subproject commit 82bea3f9aed1c83014922688e4fafd778d309c9e +Subproject commit 7ccc026a7b349005830fcb444737607c57c6f90c diff --git a/intergration-test.sh b/intergration-test.sh index f51e44b..670faf2 100755 --- a/intergration-test.sh +++ b/intergration-test.sh @@ -27,7 +27,7 @@ echo "[$MSG_BASE 1 OK]" # Yes example 3 is run before 2, because 3, create a VM, and 2 is used to destroy it trap "echo [$MSG_BASE 3 FAIL]" ERR -./example3 -n 'test-example-3' -Y &> /dev/null +./example3 -n 'test-example-3' -Y echo "[$MSG_BASE 3 OK]" diff --git a/osc_sdk.c b/osc_sdk.c index 8fd36a6..85e3e17 100644 --- a/osc_sdk.c +++ b/osc_sdk.c @@ -4422,16 +4422,6 @@ const char **osc_calls_name(void) #define THREAD_LOCAL #endif -static void osc_json_c_obj_put(json_object **js) -{ - if (!*js) - return; - json_object_put(*js); -} - -#define auto_osc_json_c_obj_put __attribute__((cleanup(osc_json_c_obj_put))) - - static THREAD_LOCAL const char *cfg_path; void osc_set_cfg_path(const char *cfg) @@ -4587,7 +4577,7 @@ int osc_load_ak_sk_from_conf(const char *profile, char **ak, char **sk) char buf[1024]; const char *cfg = cfg_path; struct json_object *js, *ak_js, *sk_js; - auto_osc_json_c_obj_put struct json_object *to_free = NULL; + auto_osc_json_c struct json_object *to_free = NULL; if (!ak && !sk) return 0; @@ -4623,7 +4613,7 @@ int osc_load_loging_password_from_conf(const char *profile, { char buf[1024]; const char *cfg = cfg_path; - auto_osc_json_c_obj_put struct json_object *to_free = NULL; + auto_osc_json_c struct json_object *to_free = NULL; struct json_object *js, *login_js, *pass_js; if (!email && !password) @@ -4663,7 +4653,7 @@ int osc_load_region_from_conf(const char *profile, char **region) const char *cfg = cfg_path; char buf[1024]; struct json_object *js; - auto_osc_json_c_obj_put struct json_object *to_free = NULL; + auto_osc_json_c struct json_object *to_free = NULL; if (!cfg) { LOAD_CFG_GET_HOME(buf); @@ -4688,7 +4678,7 @@ int osc_load_cert_from_conf(const char *profile, char **cert, char **key) { struct json_object *cert_obj, *key_obj, *js; const char *cfg = cfg_path; - auto_osc_json_c_obj_put struct json_object *to_free = NULL; + auto_osc_json_c struct json_object *to_free = NULL; char buf[1024]; int ret = 0; @@ -4740,6 +4730,12 @@ void osc_init_str(struct osc_str *r) r->buf = NULL; } +void osc_deinit_json_c(json_object **j) +{ + if (j && *j) + json_object_put(*j); +} + void osc_deinit_str(struct osc_str *r) { free(r->buf); @@ -15969,7 +15965,7 @@ int osc_update_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16030,7 +16026,7 @@ int osc_update_volume(struct osc_env *e, struct osc_str *out, struct osc_update_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16106,7 +16102,7 @@ int osc_update_vm_template(struct osc_env *e, struct osc_str *out, struct osc_up curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16187,7 +16183,7 @@ int osc_update_vm_group(struct osc_env *e, struct osc_str *out, struct osc_updat curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16310,7 +16306,7 @@ int osc_update_vm(struct osc_env *e, struct osc_str *out, struct osc_update_vm_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16368,7 +16364,7 @@ int osc_update_user(struct osc_env *e, struct osc_str *out, struct osc_update_us curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16420,7 +16416,7 @@ int osc_update_subnet(struct osc_env *e, struct osc_str *out, struct osc_update_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16478,7 +16474,7 @@ int osc_update_snapshot(struct osc_env *e, struct osc_str *out, struct osc_updat curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16536,7 +16532,7 @@ int osc_update_server_certificate(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16589,7 +16585,7 @@ int osc_update_route_table_link(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16646,7 +16642,7 @@ int osc_update_route_propagation(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16724,7 +16720,7 @@ int osc_update_route(struct osc_env *e, struct osc_str *out, struct osc_update_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16803,7 +16799,7 @@ int osc_update_nic(struct osc_env *e, struct osc_str *out, struct osc_update_nic curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16883,7 +16879,7 @@ int osc_update_net_access_point(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -16936,7 +16932,7 @@ int osc_update_net(struct osc_env *e, struct osc_str *out, struct osc_update_net curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17054,7 +17050,7 @@ int osc_update_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17112,7 +17108,7 @@ int osc_update_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17170,7 +17166,7 @@ int osc_update_image(struct osc_env *e, struct osc_str *out, struct osc_update_i curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17222,7 +17218,7 @@ int osc_update_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_u curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17274,7 +17270,7 @@ int osc_update_direct_link_interface(struct osc_env *e, struct osc_str *out, str curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17327,7 +17323,7 @@ int osc_update_dedicated_group(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17380,7 +17376,7 @@ int osc_update_ca(struct osc_env *e, struct osc_str *out, struct osc_update_ca_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17481,7 +17477,7 @@ int osc_update_api_access_rule(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17532,7 +17528,7 @@ int osc_update_api_access_policy(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17651,7 +17647,7 @@ int osc_update_account(struct osc_env *e, struct osc_str *out, struct osc_update curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17714,7 +17710,7 @@ int osc_update_access_key(struct osc_env *e, struct osc_str *out, struct osc_upd curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17766,7 +17762,7 @@ int osc_unlink_volume(struct osc_env *e, struct osc_str *out, struct osc_unlink_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17819,7 +17815,7 @@ int osc_unlink_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17867,7 +17863,7 @@ int osc_unlink_route_table(struct osc_env *e, struct osc_str *out, struct osc_un curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17920,7 +17916,7 @@ int osc_unlink_public_ip(struct osc_env *e, struct osc_str *out, struct osc_unli curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -17984,7 +17980,7 @@ int osc_unlink_private_ips(struct osc_env *e, struct osc_str *out, struct osc_un curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18037,7 +18033,7 @@ int osc_unlink_policy(struct osc_env *e, struct osc_str *out, struct osc_unlink_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18085,7 +18081,7 @@ int osc_unlink_nic(struct osc_env *e, struct osc_str *out, struct osc_unlink_nic curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18165,7 +18161,7 @@ int osc_unlink_load_balancer_backend_machines(struct osc_env *e, struct osc_str curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18218,7 +18214,7 @@ int osc_unlink_internet_service(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18266,7 +18262,7 @@ int osc_unlink_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_u curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18329,7 +18325,7 @@ int osc_stop_vms(struct osc_env *e, struct osc_str *out, struct osc_stop_vms_arg curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18388,7 +18384,7 @@ int osc_start_vms(struct osc_env *e, struct osc_str *out, struct osc_start_vms_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18437,7 +18433,7 @@ int osc_set_default_policy_version(struct osc_env *e, struct osc_str *out, struc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18489,7 +18485,7 @@ int osc_scale_up_vm_group(struct osc_env *e, struct osc_str *out, struct osc_sca curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18541,7 +18537,7 @@ int osc_scale_down_vm_group(struct osc_env *e, struct osc_str *out, struct osc_s curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18589,7 +18585,7 @@ int osc_reject_net_peering(struct osc_env *e, struct osc_str *out, struct osc_re curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18653,7 +18649,7 @@ int osc_register_vms_in_load_balancer(struct osc_env *e, struct osc_str *out, st curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18712,7 +18708,7 @@ int osc_reboot_vms(struct osc_env *e, struct osc_str *out, struct osc_reboot_vms curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18774,7 +18770,7 @@ int osc_read_vpn_connections(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18836,7 +18832,7 @@ int osc_read_volumes(struct osc_env *e, struct osc_str *out, struct osc_read_vol curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18893,7 +18889,7 @@ int osc_read_vms_state(struct osc_env *e, struct osc_str *out, struct osc_read_v curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -18957,7 +18953,7 @@ int osc_read_vms_health(struct osc_env *e, struct osc_str *out, struct osc_read_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19019,7 +19015,7 @@ int osc_read_vms(struct osc_env *e, struct osc_str *out, struct osc_read_vms_arg curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19072,7 +19068,7 @@ int osc_read_vm_types(struct osc_env *e, struct osc_str *out, struct osc_read_vm curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19125,7 +19121,7 @@ int osc_read_vm_templates(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19178,7 +19174,7 @@ int osc_read_vm_groups(struct osc_env *e, struct osc_str *out, struct osc_read_v curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19240,7 +19236,7 @@ int osc_read_virtual_gateways(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19283,7 +19279,7 @@ int osc_read_users(struct osc_env *e, struct osc_str *out, struct osc_read_users curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19336,7 +19332,7 @@ int osc_read_tags(struct osc_env *e, struct osc_str *out, struct osc_read_tags_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19389,7 +19385,7 @@ int osc_read_subregions(struct osc_env *e, struct osc_str *out, struct osc_read_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19442,7 +19438,7 @@ int osc_read_subnets(struct osc_env *e, struct osc_str *out, struct osc_read_sub curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19495,7 +19491,7 @@ int osc_read_snapshots(struct osc_env *e, struct osc_str *out, struct osc_read_s curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19548,7 +19544,7 @@ int osc_read_snapshot_export_tasks(struct osc_env *e, struct osc_str *out, struc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19601,7 +19597,7 @@ int osc_read_server_certificates(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19654,7 +19650,7 @@ int osc_read_security_groups(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19702,7 +19698,7 @@ int osc_read_secret_access_key(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19764,7 +19760,7 @@ int osc_read_route_tables(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19807,7 +19803,7 @@ int osc_read_regions(struct osc_env *e, struct osc_str *out, struct osc_read_reg curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19860,7 +19856,7 @@ int osc_read_quotas(struct osc_env *e, struct osc_str *out, struct osc_read_quot curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19922,7 +19918,7 @@ int osc_read_public_ips(struct osc_env *e, struct osc_str *out, struct osc_read_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -19965,7 +19961,7 @@ int osc_read_public_ip_ranges(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20008,7 +20004,7 @@ int osc_read_public_catalog(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20061,7 +20057,7 @@ int osc_read_product_types(struct osc_env *e, struct osc_str *out, struct osc_re curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20113,7 +20109,7 @@ int osc_read_policy_versions(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20162,7 +20158,7 @@ int osc_read_policy_version(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20206,7 +20202,7 @@ int osc_read_policy(struct osc_env *e, struct osc_str *out, struct osc_read_poli curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20267,7 +20263,7 @@ int osc_read_policies(struct osc_env *e, struct osc_str *out, struct osc_read_po curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20320,7 +20316,7 @@ int osc_read_nics(struct osc_env *e, struct osc_str *out, struct osc_read_nics_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20373,7 +20369,7 @@ int osc_read_nets(struct osc_env *e, struct osc_str *out, struct osc_read_nets_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20435,7 +20431,7 @@ int osc_read_net_peerings(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20497,7 +20493,7 @@ int osc_read_net_access_points(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20550,7 +20546,7 @@ int osc_read_net_access_point_services(struct osc_env *e, struct osc_str *out, s curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20612,7 +20608,7 @@ int osc_read_nat_services(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20655,7 +20651,7 @@ int osc_read_locations(struct osc_env *e, struct osc_str *out, struct osc_read_l curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20708,7 +20704,7 @@ int osc_read_load_balancers(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20767,7 +20763,7 @@ int osc_read_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20820,7 +20816,7 @@ int osc_read_listener_rules(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20886,7 +20882,7 @@ int osc_read_linked_policies(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20939,7 +20935,7 @@ int osc_read_keypairs(struct osc_env *e, struct osc_str *out, struct osc_read_ke curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -20992,7 +20988,7 @@ int osc_read_internet_services(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21054,7 +21050,7 @@ int osc_read_images(struct osc_env *e, struct osc_str *out, struct osc_read_imag curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21107,7 +21103,7 @@ int osc_read_image_export_tasks(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21160,7 +21156,7 @@ int osc_read_flexible_gpus(struct osc_env *e, struct osc_str *out, struct osc_re curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21203,7 +21199,7 @@ int osc_read_flexible_gpu_catalog(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21256,7 +21252,7 @@ int osc_read_direct_links(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21309,7 +21305,7 @@ int osc_read_direct_link_interfaces(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21371,7 +21367,7 @@ int osc_read_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_rea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21424,7 +21420,7 @@ int osc_read_dedicated_groups(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21485,7 +21481,7 @@ int osc_read_consumption_account(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21533,7 +21529,7 @@ int osc_read_console_output(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21586,7 +21582,7 @@ int osc_read_client_gateways(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21639,7 +21635,7 @@ int osc_read_catalogs(struct osc_env *e, struct osc_str *out, struct osc_read_ca curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21682,7 +21678,7 @@ int osc_read_catalog(struct osc_env *e, struct osc_str *out, struct osc_read_cat curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21735,7 +21731,7 @@ int osc_read_cas(struct osc_env *e, struct osc_str *out, struct osc_read_cas_arg curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21807,7 +21803,7 @@ int osc_read_api_logs(struct osc_env *e, struct osc_str *out, struct osc_read_ap curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21860,7 +21856,7 @@ int osc_read_api_access_rules(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21903,7 +21899,7 @@ int osc_read_api_access_policy(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21951,7 +21947,7 @@ int osc_read_admin_password(struct osc_env *e, struct osc_str *out, struct osc_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -21994,7 +21990,7 @@ int osc_read_accounts(struct osc_env *e, struct osc_str *out, struct osc_read_ac curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22052,7 +22048,7 @@ int osc_read_access_keys(struct osc_env *e, struct osc_str *out, struct osc_read curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22110,7 +22106,7 @@ int osc_link_volume(struct osc_env *e, struct osc_str *out, struct osc_link_volu curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22163,7 +22159,7 @@ int osc_link_virtual_gateway(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22216,7 +22212,7 @@ int osc_link_route_table(struct osc_env *e, struct osc_str *out, struct osc_link curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22288,7 +22284,7 @@ int osc_link_public_ip(struct osc_env *e, struct osc_str *out, struct osc_link_p curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22360,7 +22356,7 @@ int osc_link_private_ips(struct osc_env *e, struct osc_str *out, struct osc_link curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22413,7 +22409,7 @@ int osc_link_policy(struct osc_env *e, struct osc_str *out, struct osc_link_poli curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22470,7 +22466,7 @@ int osc_link_nic(struct osc_env *e, struct osc_str *out, struct osc_link_nic_arg curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22550,7 +22546,7 @@ int osc_link_load_balancer_backend_machines(struct osc_env *e, struct osc_str *o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22603,7 +22599,7 @@ int osc_link_internet_service(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22656,7 +22652,7 @@ int osc_link_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_lin curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22720,7 +22716,7 @@ int osc_deregister_vms_in_load_balancer(struct osc_env *e, struct osc_str *out, curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22773,7 +22769,7 @@ int osc_delete_vpn_connection_route(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22821,7 +22817,7 @@ int osc_delete_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22869,7 +22865,7 @@ int osc_delete_volume(struct osc_env *e, struct osc_str *out, struct osc_delete_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22928,7 +22924,7 @@ int osc_delete_vms(struct osc_env *e, struct osc_str *out, struct osc_delete_vms curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -22976,7 +22972,7 @@ int osc_delete_vm_template(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23024,7 +23020,7 @@ int osc_delete_vm_group(struct osc_env *e, struct osc_str *out, struct osc_delet curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23072,7 +23068,7 @@ int osc_delete_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23120,7 +23116,7 @@ int osc_delete_user(struct osc_env *e, struct osc_str *out, struct osc_delete_us curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23197,7 +23193,7 @@ int osc_delete_tags(struct osc_env *e, struct osc_str *out, struct osc_delete_ta curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23245,7 +23241,7 @@ int osc_delete_subnet(struct osc_env *e, struct osc_str *out, struct osc_delete_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23293,7 +23289,7 @@ int osc_delete_snapshot(struct osc_env *e, struct osc_str *out, struct osc_delet curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23341,7 +23337,7 @@ int osc_delete_server_certificate(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23440,7 +23436,7 @@ int osc_delete_security_group_rule(struct osc_env *e, struct osc_str *out, struc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23493,7 +23489,7 @@ int osc_delete_security_group(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23541,7 +23537,7 @@ int osc_delete_route_table(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23594,7 +23590,7 @@ int osc_delete_route(struct osc_env *e, struct osc_str *out, struct osc_delete_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23647,7 +23643,7 @@ int osc_delete_public_ip(struct osc_env *e, struct osc_str *out, struct osc_dele curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23696,7 +23692,7 @@ int osc_delete_policy_version(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23744,7 +23740,7 @@ int osc_delete_policy(struct osc_env *e, struct osc_str *out, struct osc_delete_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23792,7 +23788,7 @@ int osc_delete_nic(struct osc_env *e, struct osc_str *out, struct osc_delete_nic curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23840,7 +23836,7 @@ int osc_delete_net_peering(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23888,7 +23884,7 @@ int osc_delete_net_access_point(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23936,7 +23932,7 @@ int osc_delete_net(struct osc_env *e, struct osc_str *out, struct osc_delete_net curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -23984,7 +23980,7 @@ int osc_delete_nat_service(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24061,7 +24057,7 @@ int osc_delete_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24114,7 +24110,7 @@ int osc_delete_load_balancer_policy(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24178,7 +24174,7 @@ int osc_delete_load_balancer_listeners(struct osc_env *e, struct osc_str *out, s curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24226,7 +24222,7 @@ int osc_delete_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24274,7 +24270,7 @@ int osc_delete_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24322,7 +24318,7 @@ int osc_delete_keypair(struct osc_env *e, struct osc_str *out, struct osc_delete curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24370,7 +24366,7 @@ int osc_delete_internet_service(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24418,7 +24414,7 @@ int osc_delete_image(struct osc_env *e, struct osc_str *out, struct osc_delete_i curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24466,7 +24462,7 @@ int osc_delete_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_d curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24514,7 +24510,7 @@ int osc_delete_export_task(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24562,7 +24558,7 @@ int osc_delete_direct_link_interface(struct osc_env *e, struct osc_str *out, str curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24610,7 +24606,7 @@ int osc_delete_direct_link(struct osc_env *e, struct osc_str *out, struct osc_de curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24658,7 +24654,7 @@ int osc_delete_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_d curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24710,7 +24706,7 @@ int osc_delete_dedicated_group(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24758,7 +24754,7 @@ int osc_delete_client_gateway(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24806,7 +24802,7 @@ int osc_delete_ca(struct osc_env *e, struct osc_str *out, struct osc_delete_ca_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24854,7 +24850,7 @@ int osc_delete_api_access_rule(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24907,7 +24903,7 @@ int osc_delete_access_key(struct osc_env *e, struct osc_str *out, struct osc_del curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -24960,7 +24956,7 @@ int osc_create_vpn_connection_route(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25022,7 +25018,7 @@ int osc_create_vpn_connection(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25088,7 +25084,7 @@ int osc_create_volume(struct osc_env *e, struct osc_str *out, struct osc_create_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25289,7 +25285,7 @@ int osc_create_vms(struct osc_env *e, struct osc_str *out, struct osc_create_vms curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25388,7 +25384,7 @@ int osc_create_vm_template(struct osc_env *e, struct osc_str *out, struct osc_cr curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25494,7 +25490,7 @@ int osc_create_vm_group(struct osc_env *e, struct osc_str *out, struct osc_creat curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25542,7 +25538,7 @@ int osc_create_virtual_gateway(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25595,7 +25591,7 @@ int osc_create_user(struct osc_env *e, struct osc_str *out, struct osc_create_us curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25672,7 +25668,7 @@ int osc_create_tags(struct osc_env *e, struct osc_str *out, struct osc_create_ta curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25730,7 +25726,7 @@ int osc_create_subnet(struct osc_env *e, struct osc_str *out, struct osc_create_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25788,7 +25784,7 @@ int osc_create_snapshot_export_task(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25860,7 +25856,7 @@ int osc_create_snapshot(struct osc_env *e, struct osc_str *out, struct osc_creat curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -25928,7 +25924,7 @@ int osc_create_server_certificate(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26027,7 +26023,7 @@ int osc_create_security_group_rule(struct osc_env *e, struct osc_str *out, struc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26085,7 +26081,7 @@ int osc_create_security_group(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26133,7 +26129,7 @@ int osc_create_route_table(struct osc_env *e, struct osc_str *out, struct osc_cr curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26211,7 +26207,7 @@ int osc_create_route(struct osc_env *e, struct osc_str *out, struct osc_create_r curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26254,7 +26250,7 @@ int osc_create_public_ip(struct osc_env *e, struct osc_str *out, struct osc_crea curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26307,7 +26303,7 @@ int osc_create_product_type(struct osc_env *e, struct osc_str *out, struct osc_c curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26360,7 +26356,7 @@ int osc_create_policy_version(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26423,7 +26419,7 @@ int osc_create_policy(struct osc_env *e, struct osc_str *out, struct osc_create_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26510,7 +26506,7 @@ int osc_create_nic(struct osc_env *e, struct osc_str *out, struct osc_create_nic curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26563,7 +26559,7 @@ int osc_create_net_peering(struct osc_env *e, struct osc_str *out, struct osc_cr curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26632,7 +26628,7 @@ int osc_create_net_access_point(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26685,7 +26681,7 @@ int osc_create_net(struct osc_env *e, struct osc_str *out, struct osc_create_net curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26738,7 +26734,7 @@ int osc_create_nat_service(struct osc_env *e, struct osc_str *out, struct osc_cr curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26815,7 +26811,7 @@ int osc_create_load_balancer_tags(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26882,7 +26878,7 @@ int osc_create_load_balancer_policy(struct osc_env *e, struct osc_str *out, stru curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -26948,7 +26944,7 @@ int osc_create_load_balancer_listeners(struct osc_env *e, struct osc_str *out, s curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27090,7 +27086,7 @@ int osc_create_load_balancer(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27169,7 +27165,7 @@ int osc_create_listener_rule(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27222,7 +27218,7 @@ int osc_create_keypair(struct osc_env *e, struct osc_str *out, struct osc_create curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27265,7 +27261,7 @@ int osc_create_internet_service(struct osc_env *e, struct osc_str *out, struct o curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27323,7 +27319,7 @@ int osc_create_image_export_task(struct osc_env *e, struct osc_str *out, struct curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27444,7 +27440,7 @@ int osc_create_image(struct osc_env *e, struct osc_str *out, struct osc_create_i curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27506,7 +27502,7 @@ int osc_create_flexible_gpu(struct osc_env *e, struct osc_str *out, struct osc_c curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27564,7 +27560,7 @@ int osc_create_direct_link_interface(struct osc_env *e, struct osc_str *out, str curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27622,7 +27618,7 @@ int osc_create_direct_link(struct osc_env *e, struct osc_str *out, struct osc_cr curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27718,7 +27714,7 @@ int osc_create_dhcp_options(struct osc_env *e, struct osc_str *out, struct osc_c curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27775,7 +27771,7 @@ int osc_create_dedicated_group(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27832,7 +27828,7 @@ int osc_create_client_gateway(struct osc_env *e, struct osc_str *out, struct osc curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27885,7 +27881,7 @@ int osc_create_ca(struct osc_env *e, struct osc_str *out, struct osc_create_ca_a curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -27981,7 +27977,7 @@ int osc_create_api_access_rule(struct osc_env *e, struct osc_str *out, struct os curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -28105,7 +28101,7 @@ int osc_create_account(struct osc_env *e, struct osc_str *out, struct osc_create curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -28158,7 +28154,7 @@ int osc_create_access_key(struct osc_env *e, struct osc_str *out, struct osc_cre curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -28211,7 +28207,7 @@ int osc_check_authentication(struct osc_env *e, struct osc_str *out, struct osc_ curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: @@ -28259,7 +28255,7 @@ int osc_accept_net_peering(struct osc_env *e, struct osc_str *out, struct osc_ac curl_easy_setopt(e->c, CURLOPT_POSTFIELDS, r ? data.buf : ""); curl_easy_setopt(e->c, CURLOPT_WRITEDATA, out); if (e->flag & OSC_VERBOSE_MODE) { - printf("\n%s\n\n", data.buf); + printf("\n%s\n\n", data.buf); } res = curl_easy_perform(e->c); out: diff --git a/osc_sdk.h b/osc_sdk.h index c2c6c52..22662bb 100644 --- a/osc_sdk.h +++ b/osc_sdk.h @@ -53,6 +53,11 @@ extern "C" { #define auto_osc_str __attribute__((cleanup(osc_deinit_str))) #define auto_osc_env __attribute__((cleanup(osc_deinit_sdk))) +/* + * Helper for json C + */ +#define auto_osc_json_c __attribute__((cleanup(osc_deinit_json_c))) + #endif struct osc_str { @@ -71,7 +76,7 @@ struct osc_str { #define OSC_ENV_FREE_AK_SK (OSC_ENV_FREE_AK | OSC_ENV_FREE_SK) #define OSC_API_VERSION "1.28.7" -#define OSC_SDK_VERSION 0X000800 +#define OSC_SDK_VERSION 0X000900 enum osc_auth_method { OSC_AKSK_METHOD, @@ -13064,6 +13069,12 @@ int osc_init_sdk_ext(struct osc_env *e, const char *profile, unsigned int flag, struct osc_env_conf *cfg); void osc_deinit_sdk(struct osc_env *e); +struct json_object; + +typedef struct json_object json_object; + +void osc_deinit_json_c(json_object **j); + int osc_str_append_string(struct osc_str *osc_str, const char *str); int osc_str_append_n_string(struct osc_str *osc_str, const char *str, int l); diff --git a/sdk_version b/sdk_version index a3df0a6..ac39a10 100644 --- a/sdk_version +++ b/sdk_version @@ -1 +1 @@ -0.8.0 +0.9.0