DS3 C SDK  4.1.0
Provides access to the Spectra S3 API with C
ds3_request.h
Go to the documentation of this file.
1 /*
2  * ******************************************************************************
3  * Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
4  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5  * this file except in compliance with the License. A copy of the License is located at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * or in the "license" file accompanying this file.
10  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  * ****************************************************************************
14  */
15 
16 /* This Code is Auto-Generated; DO NOT MODIFY! */
17 
18 
19 #ifndef __DS3_REQUEST_H__
20 #define __DS3_REQUEST_H__
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include <glib.h>
27 #include "ds3.h"
28 
29 //---------- Define opaque struct ----------//
30 struct _ds3_request{
33  uint64_t length;
36  GHashTable* headers;
37  GHashTable* query_params;
38 
39  //These next few elements are for request payload
42 
44 
46 };
47 
48 typedef struct {
49  // These attributes are used when processing a response header
50  uint64_t status_code;
52  size_t header_count;
54 
55  // These attributes are used when processing a response body
56  GByteArray* body; // this will only be used when getting errors
57  void* user_data;
58  size_t (*user_func)(void*, size_t, size_t, void*);
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 #endif
ds3_checksum_type checksum_type
Definition: ds3_request.h:35
uint64_t length
Definition: ds3_request.h:33
ds3_job_chunk_client_processing_order_guarantee chunk_ordering
Definition: ds3_request.h:41
ds3_checksum_type
Definition: ds3.h:623
ds3_str * path
Definition: ds3_request.h:32
ds3_str * status_message
Definition: ds3_request.h:51
ds3_job_chunk_client_processing_order_guarantee
Definition: ds3.h:174
ds3_str * checksum
Definition: ds3_request.h:34
http_verb verb
Definition: ds3_request.h:31
http_verb
Definition: ds3.h:76
ds3_delete_objects_response * delete_objects
Definition: ds3_request.h:45
ds3_string_multimap * headers
Definition: ds3_request.h:53
GHashTable * query_params
Definition: ds3_request.h:37
The public definitions for the Spectra S3 C SDK.
ds3_bulk_object_list_response * object_list
Definition: ds3_request.h:40
ds3_complete_multipart_upload_response * mpu_list
Definition: ds3_request.h:43
GHashTable * headers
Definition: ds3_request.h:36
GByteArray * body
Definition: ds3_request.h:56
uint64_t status_code
Definition: ds3_request.h:50