Skip to content

Commit f24f3cb

Browse files
authored
Merge pull request #236 from SpectraLogic/Update_5_8
Generating API for BP 5.8 commit 3150467
2 parents 2b06885 + 0fc6846 commit f24f3cb

File tree

5 files changed

+1183
-392
lines changed

5 files changed

+1183
-392
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(libds3)
44
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/")
55

66
set (DS3SDK_VERSION_MAJOR 5)
7-
set (DS3SDK_VERSION_MINOR 4)
8-
set (DS3SDK_VERSION_PATCH 1)
7+
set (DS3SDK_VERSION_MINOR 8)
8+
set (DS3SDK_VERSION_PATCH 0)
99

1010
add_subdirectory(src)

src/ds3.c

Lines changed: 126 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,19 @@ void ds3_job_chunk_response_free(ds3_job_chunk_response* response) {
738738

739739
g_free(response);
740740
}
741+
void ds3_job_creation_failed_response_free(ds3_job_creation_failed_response* response) {
742+
if (response == NULL) {
743+
return;
744+
}
745+
746+
ds3_str_free(response->date);
747+
ds3_str_free(response->error_message);
748+
ds3_str_free(response->id);
749+
ds3_str_free(response->tape_bar_codes);
750+
ds3_str_free(response->user_name);
751+
752+
g_free(response);
753+
}
741754
void ds3_node_response_free(ds3_node_response* response) {
742755
if (response == NULL) {
743756
return;
@@ -1697,25 +1710,6 @@ void ds3_delete_object_error_response_free(ds3_delete_object_error_response* res
16971710

16981711
g_free(response);
16991712
}
1700-
void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_response* response) {
1701-
if (response == NULL) {
1702-
return;
1703-
}
1704-
1705-
size_t index;
1706-
g_free(response->drive_types);
1707-
ds3_str_free(response->error_message);
1708-
ds3_str_free(response->id);
1709-
ds3_str_free(response->library_id);
1710-
ds3_str_free(response->name);
1711-
ds3_str_free(response->serial_number);
1712-
for (index = 0; index < response->num_tape_types; index++) {
1713-
ds3_str_free(response->tape_types[index]);
1714-
}
1715-
g_free(response->tape_types);
1716-
1717-
g_free(response);
1718-
}
17191713
void ds3_error_response_free(ds3_error_response* response) {
17201714
if (response == NULL) {
17211715
return;
@@ -1768,52 +1762,51 @@ void ds3_s3_object_to_delete_response_free(ds3_s3_object_to_delete_response* res
17681762

17691763
g_free(response);
17701764
}
1771-
void ds3_user_response_free(ds3_user_response* response) {
1765+
void ds3_tape_type_summary_api_bean_response_free(ds3_tape_type_summary_api_bean_response* response) {
17721766
if (response == NULL) {
17731767
return;
17741768
}
17751769

1776-
ds3_str_free(response->display_name);
1777-
ds3_str_free(response->id);
1770+
ds3_str_free(response->type);
17781771

17791772
g_free(response);
17801773
}
1781-
void ds3_system_information_response_free(ds3_system_information_response* response) {
1774+
void ds3_type_type_count_api_bean_response_free(ds3_type_type_count_api_bean_response* response) {
17821775
if (response == NULL) {
17831776
return;
17841777
}
17851778

1786-
ds3_str_free(response->api_version);
1787-
ds3_build_information_response_free(response->build_information);
1788-
ds3_str_free(response->instance_id);
1789-
ds3_str_free(response->serial_number);
1779+
ds3_str_free(response->type);
17901780

17911781
g_free(response);
17921782
}
1793-
void ds3_health_verification_result_response_free(ds3_health_verification_result_response* response) {
1783+
void ds3_user_response_free(ds3_user_response* response) {
17941784
if (response == NULL) {
17951785
return;
17961786
}
17971787

1788+
ds3_str_free(response->display_name);
1789+
ds3_str_free(response->id);
17981790

17991791
g_free(response);
18001792
}
1801-
void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_partition_response* response) {
1793+
void ds3_system_information_response_free(ds3_system_information_response* response) {
18021794
if (response == NULL) {
18031795
return;
18041796
}
18051797

1806-
size_t index;
1807-
g_free(response->drive_types);
1808-
ds3_str_free(response->error_message);
1809-
ds3_str_free(response->id);
1810-
ds3_str_free(response->library_id);
1811-
ds3_str_free(response->name);
1798+
ds3_str_free(response->api_version);
1799+
ds3_build_information_response_free(response->build_information);
1800+
ds3_str_free(response->instance_id);
18121801
ds3_str_free(response->serial_number);
1813-
for (index = 0; index < response->num_tape_types; index++) {
1814-
ds3_str_free(response->tape_types[index]);
1802+
1803+
g_free(response);
1804+
}
1805+
void ds3_health_verification_result_response_free(ds3_health_verification_result_response* response) {
1806+
if (response == NULL) {
1807+
return;
18151808
}
1816-
g_free(response->tape_types);
1809+
18171810

18181811
g_free(response);
18191812
}
@@ -2170,6 +2163,20 @@ void ds3_completed_job_list_response_free(ds3_completed_job_list_response* respo
21702163

21712164
g_free(response);
21722165
}
2166+
void ds3_job_creation_failed_list_response_free(ds3_job_creation_failed_list_response* response) {
2167+
if (response == NULL) {
2168+
return;
2169+
}
2170+
2171+
size_t index;
2172+
for (index = 0; index < response->num_job_creation_faileds; index++) {
2173+
ds3_job_creation_failed_response_free(response->job_creation_faileds[index]);
2174+
}
2175+
g_free(response->job_creation_faileds);
2176+
ds3_paging_free(response->paging);
2177+
2178+
g_free(response);
2179+
}
21732180
void ds3_node_list_response_free(ds3_node_list_response* response) {
21742181
if (response == NULL) {
21752182
return;
@@ -2604,20 +2611,6 @@ void ds3_tape_partition_list_response_free(ds3_tape_partition_list_response* res
26042611

26052612
g_free(response);
26062613
}
2607-
void ds3_named_detailed_tape_partition_list_response_free(ds3_named_detailed_tape_partition_list_response* response) {
2608-
if (response == NULL) {
2609-
return;
2610-
}
2611-
2612-
size_t index;
2613-
for (index = 0; index < response->num_named_detailed_tape_partitions; index++) {
2614-
ds3_named_detailed_tape_partition_response_free(response->named_detailed_tape_partitions[index]);
2615-
}
2616-
g_free(response->named_detailed_tape_partitions);
2617-
ds3_paging_free(response->paging);
2618-
2619-
g_free(response);
2620-
}
26212614
void ds3_tape_list_response_free(ds3_tape_list_response* response) {
26222615
if (response == NULL) {
26232616
return;
@@ -3095,6 +3088,19 @@ void ds3_contents_response_free(ds3_contents_response* response) {
30953088

30963089
g_free(response);
30973090
}
3091+
void ds3_tape_state_summary_api_bean_response_free(ds3_tape_state_summary_api_bean_response* response) {
3092+
if (response == NULL) {
3093+
return;
3094+
}
3095+
3096+
size_t index;
3097+
for (index = 0; index < response->num_type_counts; index++) {
3098+
ds3_type_type_count_api_bean_response_free(response->type_counts[index]);
3099+
}
3100+
g_free(response->type_counts);
3101+
3102+
g_free(response);
3103+
}
30983104
void ds3_detailed_s3_object_response_free(ds3_detailed_s3_object_response* response) {
30993105
if (response == NULL) {
31003106
return;
@@ -3110,6 +3116,33 @@ void ds3_detailed_s3_object_response_free(ds3_detailed_s3_object_response* respo
31103116

31113117
g_free(response);
31123118
}
3119+
void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_partition_response* response) {
3120+
if (response == NULL) {
3121+
return;
3122+
}
3123+
3124+
size_t index;
3125+
g_free(response->drive_types);
3126+
ds3_str_free(response->error_message);
3127+
ds3_str_free(response->id);
3128+
ds3_str_free(response->library_id);
3129+
ds3_str_free(response->name);
3130+
ds3_str_free(response->serial_number);
3131+
for (index = 0; index < response->num_tape_state_summaries; index++) {
3132+
ds3_tape_state_summary_api_bean_response_free(response->tape_state_summaries[index]);
3133+
}
3134+
g_free(response->tape_state_summaries);
3135+
for (index = 0; index < response->num_tape_type_summaries; index++) {
3136+
ds3_tape_type_summary_api_bean_response_free(response->tape_type_summaries[index]);
3137+
}
3138+
g_free(response->tape_type_summaries);
3139+
for (index = 0; index < response->num_tape_types; index++) {
3140+
ds3_str_free(response->tape_types[index]);
3141+
}
3142+
g_free(response->tape_types);
3143+
3144+
g_free(response);
3145+
}
31133146
void ds3_database_contents_response_free(ds3_database_contents_response* response) {
31143147
if (response == NULL) {
31153148
return;
@@ -3137,6 +3170,20 @@ void ds3_detailed_s3_object_list_response_free(ds3_detailed_s3_object_list_respo
31373170

31383171
g_free(response);
31393172
}
3173+
void ds3_named_detailed_tape_partition_list_response_free(ds3_named_detailed_tape_partition_list_response* response) {
3174+
if (response == NULL) {
3175+
return;
3176+
}
3177+
3178+
size_t index;
3179+
for (index = 0; index < response->num_named_detailed_tape_partitions; index++) {
3180+
ds3_named_detailed_tape_partition_response_free(response->named_detailed_tape_partitions[index]);
3181+
}
3182+
g_free(response->named_detailed_tape_partitions);
3183+
ds3_paging_free(response->paging);
3184+
3185+
g_free(response);
3186+
}
31403187
void ds3_list_bucket_result_response_free(ds3_list_bucket_result_response* response) {
31413188
if (response == NULL) {
31423189
return;
@@ -3164,6 +3211,33 @@ void ds3_list_bucket_result_response_free(ds3_list_bucket_result_response* respo
31643211

31653212
g_free(response);
31663213
}
3214+
void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_response* response) {
3215+
if (response == NULL) {
3216+
return;
3217+
}
3218+
3219+
size_t index;
3220+
g_free(response->drive_types);
3221+
ds3_str_free(response->error_message);
3222+
ds3_str_free(response->id);
3223+
ds3_str_free(response->library_id);
3224+
ds3_str_free(response->name);
3225+
ds3_str_free(response->serial_number);
3226+
for (index = 0; index < response->num_tape_state_summaries; index++) {
3227+
ds3_tape_state_summary_api_bean_response_free(response->tape_state_summaries[index]);
3228+
}
3229+
g_free(response->tape_state_summaries);
3230+
for (index = 0; index < response->num_tape_type_summaries; index++) {
3231+
ds3_tape_type_summary_api_bean_response_free(response->tape_type_summaries[index]);
3232+
}
3233+
g_free(response->tape_type_summaries);
3234+
for (index = 0; index < response->num_tape_types; index++) {
3235+
ds3_str_free(response->tape_types[index]);
3236+
}
3237+
g_free(response->tape_types);
3238+
3239+
g_free(response);
3240+
}
31673241
void ds3_list_multi_part_uploads_result_response_free(ds3_list_multi_part_uploads_result_response* response) {
31683242
if (response == NULL) {
31693243
return;

0 commit comments

Comments
 (0)