Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(libds3)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/")

set (DS3SDK_VERSION_MAJOR 5)
set (DS3SDK_VERSION_MINOR 4)
set (DS3SDK_VERSION_PATCH 1)
set (DS3SDK_VERSION_MINOR 8)
set (DS3SDK_VERSION_PATCH 0)

add_subdirectory(src)
178 changes: 126 additions & 52 deletions src/ds3.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,19 @@ void ds3_job_chunk_response_free(ds3_job_chunk_response* response) {

g_free(response);
}
void ds3_job_creation_failed_response_free(ds3_job_creation_failed_response* response) {
if (response == NULL) {
return;
}

ds3_str_free(response->date);
ds3_str_free(response->error_message);
ds3_str_free(response->id);
ds3_str_free(response->tape_bar_codes);
ds3_str_free(response->user_name);

g_free(response);
}
void ds3_node_response_free(ds3_node_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -1697,25 +1710,6 @@ void ds3_delete_object_error_response_free(ds3_delete_object_error_response* res

g_free(response);
}
void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_response* response) {
if (response == NULL) {
return;
}

size_t index;
g_free(response->drive_types);
ds3_str_free(response->error_message);
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);
}
g_free(response->tape_types);

g_free(response);
}
void ds3_error_response_free(ds3_error_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -1768,52 +1762,51 @@ void ds3_s3_object_to_delete_response_free(ds3_s3_object_to_delete_response* res

g_free(response);
}
void ds3_user_response_free(ds3_user_response* response) {
void ds3_tape_type_summary_api_bean_response_free(ds3_tape_type_summary_api_bean_response* response) {
if (response == NULL) {
return;
}

ds3_str_free(response->display_name);
ds3_str_free(response->id);
ds3_str_free(response->type);

g_free(response);
}
void ds3_system_information_response_free(ds3_system_information_response* response) {
void ds3_type_type_count_api_bean_response_free(ds3_type_type_count_api_bean_response* response) {
if (response == NULL) {
return;
}

ds3_str_free(response->api_version);
ds3_build_information_response_free(response->build_information);
ds3_str_free(response->instance_id);
ds3_str_free(response->serial_number);
ds3_str_free(response->type);

g_free(response);
}
void ds3_health_verification_result_response_free(ds3_health_verification_result_response* response) {
void ds3_user_response_free(ds3_user_response* response) {
if (response == NULL) {
return;
}

ds3_str_free(response->display_name);
ds3_str_free(response->id);

g_free(response);
}
void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_partition_response* response) {
void ds3_system_information_response_free(ds3_system_information_response* response) {
if (response == NULL) {
return;
}

size_t index;
g_free(response->drive_types);
ds3_str_free(response->error_message);
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->api_version);
ds3_build_information_response_free(response->build_information);
ds3_str_free(response->instance_id);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);

g_free(response);
}
void ds3_health_verification_result_response_free(ds3_health_verification_result_response* response) {
if (response == NULL) {
return;
}
g_free(response->tape_types);


g_free(response);
}
Expand Down Expand Up @@ -2170,6 +2163,20 @@ void ds3_completed_job_list_response_free(ds3_completed_job_list_response* respo

g_free(response);
}
void ds3_job_creation_failed_list_response_free(ds3_job_creation_failed_list_response* response) {
if (response == NULL) {
return;
}

size_t index;
for (index = 0; index < response->num_job_creation_faileds; index++) {
ds3_job_creation_failed_response_free(response->job_creation_faileds[index]);
}
g_free(response->job_creation_faileds);
ds3_paging_free(response->paging);

g_free(response);
}
void ds3_node_list_response_free(ds3_node_list_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -2604,20 +2611,6 @@ void ds3_tape_partition_list_response_free(ds3_tape_partition_list_response* res

g_free(response);
}
void ds3_named_detailed_tape_partition_list_response_free(ds3_named_detailed_tape_partition_list_response* response) {
if (response == NULL) {
return;
}

size_t index;
for (index = 0; index < response->num_named_detailed_tape_partitions; index++) {
ds3_named_detailed_tape_partition_response_free(response->named_detailed_tape_partitions[index]);
}
g_free(response->named_detailed_tape_partitions);
ds3_paging_free(response->paging);

g_free(response);
}
void ds3_tape_list_response_free(ds3_tape_list_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -3095,6 +3088,19 @@ void ds3_contents_response_free(ds3_contents_response* response) {

g_free(response);
}
void ds3_tape_state_summary_api_bean_response_free(ds3_tape_state_summary_api_bean_response* response) {
if (response == NULL) {
return;
}

size_t index;
for (index = 0; index < response->num_type_counts; index++) {
ds3_type_type_count_api_bean_response_free(response->type_counts[index]);
}
g_free(response->type_counts);

g_free(response);
}
void ds3_detailed_s3_object_response_free(ds3_detailed_s3_object_response* response) {
if (response == NULL) {
return;
Expand All @@ -3110,6 +3116,33 @@ void ds3_detailed_s3_object_response_free(ds3_detailed_s3_object_response* respo

g_free(response);
}
void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_partition_response* response) {
if (response == NULL) {
return;
}

size_t index;
g_free(response->drive_types);
ds3_str_free(response->error_message);
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_state_summaries; index++) {
ds3_tape_state_summary_api_bean_response_free(response->tape_state_summaries[index]);
}
g_free(response->tape_state_summaries);
for (index = 0; index < response->num_tape_type_summaries; index++) {
ds3_tape_type_summary_api_bean_response_free(response->tape_type_summaries[index]);
}
g_free(response->tape_type_summaries);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);
}
g_free(response->tape_types);

g_free(response);
}
void ds3_database_contents_response_free(ds3_database_contents_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -3137,6 +3170,20 @@ void ds3_detailed_s3_object_list_response_free(ds3_detailed_s3_object_list_respo

g_free(response);
}
void ds3_named_detailed_tape_partition_list_response_free(ds3_named_detailed_tape_partition_list_response* response) {
if (response == NULL) {
return;
}

size_t index;
for (index = 0; index < response->num_named_detailed_tape_partitions; index++) {
ds3_named_detailed_tape_partition_response_free(response->named_detailed_tape_partitions[index]);
}
g_free(response->named_detailed_tape_partitions);
ds3_paging_free(response->paging);

g_free(response);
}
void ds3_list_bucket_result_response_free(ds3_list_bucket_result_response* response) {
if (response == NULL) {
return;
Expand Down Expand Up @@ -3164,6 +3211,33 @@ void ds3_list_bucket_result_response_free(ds3_list_bucket_result_response* respo

g_free(response);
}
void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_response* response) {
if (response == NULL) {
return;
}

size_t index;
g_free(response->drive_types);
ds3_str_free(response->error_message);
ds3_str_free(response->id);
ds3_str_free(response->library_id);
ds3_str_free(response->name);
ds3_str_free(response->serial_number);
for (index = 0; index < response->num_tape_state_summaries; index++) {
ds3_tape_state_summary_api_bean_response_free(response->tape_state_summaries[index]);
}
g_free(response->tape_state_summaries);
for (index = 0; index < response->num_tape_type_summaries; index++) {
ds3_tape_type_summary_api_bean_response_free(response->tape_type_summaries[index]);
}
g_free(response->tape_type_summaries);
for (index = 0; index < response->num_tape_types; index++) {
ds3_str_free(response->tape_types[index]);
}
g_free(response->tape_types);

g_free(response);
}
void ds3_list_multi_part_uploads_result_response_free(ds3_list_multi_part_uploads_result_response* response) {
if (response == NULL) {
return;
Expand Down
Loading