20 #define BLOB_CHECKSUM_HEADER "ds3-blob-checksum-offset-" 21 #define BLOB_CHECKSUM_TYPE_HEADER "ds3-blob-checksum-type" 26 if (checksum_str == NULL || checksum_str->
value == NULL) {
30 if (strcmp(checksum_str->
value,
"CRC_32") == 0) {
34 if (strcmp(checksum_str->
value,
"CRC_32C") == 0) {
38 if (strcmp(checksum_str->
value,
"MD5") == 0) {
42 if (strcmp(checksum_str->
value,
"SHA_256") == 0) {
46 if (strcmp(checksum_str->
value,
"SHA_512") == 0) {
50 g_free(checksum_type);
84 uint64_t* offset = g_new0(uint64_t, 1);
91 if (response_headers == NULL) {
99 gpointer _key, _value;
103 while(g_hash_table_iter_next(&iter, &_key, &_value)) {
109 if (offset != NULL) {
ds3_bool ds3_uint64_string_map_insert(ds3_uint64_string_map *map, const uint64_t *key, const ds3_str *value)
GHashTable * ds3_string_multimap_get_hashtable(const ds3_string_multimap *mp)
void ds3_log_message(const ds3_log *log, ds3_log_lvl lvl, const char *message,...)
ds3_str * ds3_string_multimap_entry_get_value_by_index(const ds3_string_multimap_entry *entry, unsigned int index)
ds3_string_multimap_entry * ds3_string_multimap_lookup(ds3_string_multimap *map, const ds3_str *key)
void ds3_str_free(ds3_str *string)
ds3_uint64_string_map * ds3_uint64_string_map_init(void)
unsigned int ds3_string_multimap_entry_get_num_values(const ds3_string_multimap_entry *map_entry)
struct _ds3_uint64_string_map ds3_uint64_string_map
void ds3_string_multimap_entry_free(ds3_string_multimap_entry *entry)
ds3_str * ds3_str_init(const char *string)