Debian Codegraph @

crt/aws-c-s3/include/aws/s3/private/s3_default_meta_request.h

raw symbols SCIP
1 #ifndef AWS_S3_DEFAULT_META_REQUEST_H
2 #define AWS_S3_DEFAULT_META_REQUEST_H
3
4 /**
5 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6 * SPDX-License-Identifier: Apache-2.0.
7 */
8
9 #include "aws/s3/private/s3_meta_request_impl.h"
10
11 struct aws_s3_client;
12
13 struct aws_s3_meta_request_default {
14 struct aws_s3_meta_request base;
15
16 size_t content_length;
17
18 struct aws_byte_cursor request_body;
19
20 /* Actual type for the single request (may be AWS_S3_REQUEST_TYPE_UNKNOWN) */
21 enum aws_s3_request_type request_type;
22
23 /* S3 operation name for the single request */
24 struct aws_string *operation_name;
25
26 /* Members to only be used when the mutex in the base type is locked. */
27 struct {
28 int cached_response_status;
29 int request_error_code;
30
31 uint32_t request_sent : 1;
32 uint32_t request_completed : 1;
33
34 } synced_data;
35 };
36
37 /* Creates a new default meta request. This will send the request as is and pass back the response. */
38 struct aws_s3_meta_request *aws_s3_meta_request_default_new(
39 struct aws_allocator *allocator,
40 struct aws_s3_client *client,
41 enum aws_s3_request_type request_type,
42 uint64_t content_length,
43 bool should_compute_content_md5,
44 const struct aws_s3_meta_request_options *options);
45
46 #endif