Skip to content

Commit 31d11a8

Browse files
author
Sharon Shabtai
authored
Merge pull request #228 from RachelTucker/5-2-update
Updating to BP API 5.2 commit 1755379
2 parents 191bea6 + 1b7d4f2 commit 31d11a8

File tree

5 files changed

+806
-4
lines changed

5 files changed

+806
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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 0)
7+
set (DS3SDK_VERSION_MINOR 2)
88
set (DS3SDK_VERSION_PATCH 0)
99

1010
add_subdirectory(src)

src/ds3.c

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,34 @@ void ds3_azure_target_failure_notification_registration_response_free(ds3_azure_
857857

858858
g_free(response);
859859
}
860+
void ds3_bucket_changes_notification_registration_response_free(ds3_bucket_changes_notification_registration_response* response) {
861+
if (response == NULL) {
862+
return;
863+
}
864+
865+
ds3_str_free(response->bucket_id);
866+
ds3_str_free(response->creation_date);
867+
ds3_str_free(response->id);
868+
ds3_str_free(response->last_failure);
869+
ds3_str_free(response->last_notification);
870+
ds3_str_free(response->notification_end_point);
871+
ds3_str_free(response->user_id);
872+
873+
g_free(response);
874+
}
875+
void ds3_bucket_history_event_response_free(ds3_bucket_history_event_response* response) {
876+
if (response == NULL) {
877+
return;
878+
}
879+
880+
ds3_str_free(response->bucket_id);
881+
ds3_str_free(response->id);
882+
ds3_str_free(response->object_creation_date);
883+
ds3_str_free(response->object_name);
884+
ds3_str_free(response->version_id);
885+
886+
g_free(response);
887+
}
860888
void ds3_target_failure_notification_registration_response_free(ds3_target_failure_notification_registration_response* response) {
861889
if (response == NULL) {
862890
return;
@@ -1837,6 +1865,15 @@ void ds3_duration_response_free(ds3_duration_response* response) {
18371865
}
18381866

18391867

1868+
g_free(response);
1869+
}
1870+
void ds3_sequenced_event_response_free(ds3_sequenced_event_response* response) {
1871+
if (response == NULL) {
1872+
return;
1873+
}
1874+
1875+
ds3_str_free(response->id);
1876+
18401877
g_free(response);
18411878
}
18421879
void ds3_bucket_acl_list_response_free(ds3_bucket_acl_list_response* response) {
@@ -2161,6 +2198,34 @@ void ds3_azure_target_failure_notification_registration_list_response_free(ds3_a
21612198

21622199
g_free(response);
21632200
}
2201+
void ds3_bucket_changes_notification_registration_list_response_free(ds3_bucket_changes_notification_registration_list_response* response) {
2202+
if (response == NULL) {
2203+
return;
2204+
}
2205+
2206+
size_t index;
2207+
for (index = 0; index < response->num_bucket_changes_notification_registrations; index++) {
2208+
ds3_bucket_changes_notification_registration_response_free(response->bucket_changes_notification_registrations[index]);
2209+
}
2210+
g_free(response->bucket_changes_notification_registrations);
2211+
ds3_paging_free(response->paging);
2212+
2213+
g_free(response);
2214+
}
2215+
void ds3_bucket_history_event_list_response_free(ds3_bucket_history_event_list_response* response) {
2216+
if (response == NULL) {
2217+
return;
2218+
}
2219+
2220+
size_t index;
2221+
for (index = 0; index < response->num_bucket_history_events; index++) {
2222+
ds3_bucket_history_event_response_free(response->bucket_history_events[index]);
2223+
}
2224+
g_free(response->bucket_history_events);
2225+
ds3_paging_free(response->paging);
2226+
2227+
g_free(response);
2228+
}
21642229
void ds3_target_failure_notification_registration_list_response_free(ds3_target_failure_notification_registration_list_response* response) {
21652230
if (response == NULL) {
21662231
return;
@@ -2801,6 +2866,20 @@ void ds3_bulk_object_list_response_free(ds3_bulk_object_list_response* response)
28012866

28022867
g_free(response);
28032868
}
2869+
void ds3_bucket_changes_notification_payload_response_free(ds3_bucket_changes_notification_payload_response* response) {
2870+
if (response == NULL) {
2871+
return;
2872+
}
2873+
2874+
size_t index;
2875+
for (index = 0; index < response->num_changes; index++) {
2876+
ds3_sequenced_event_response_free(response->changes[index]);
2877+
}
2878+
g_free(response->changes);
2879+
ds3_str_free(response->notification_generation_date);
2880+
2881+
g_free(response);
2882+
}
28042883
void ds3_job_completed_notification_payload_response_free(ds3_job_completed_notification_payload_response* response) {
28052884
if (response == NULL) {
28062885
return;

0 commit comments

Comments
 (0)