DS3 C SDK
5.0.0
Provides access to the Spectra S3 API with C
ds3_c_sdk
src
ds3_marshaling.h
Go to the documentation of this file.
1
/*
2
* ******************************************************************************
3
* Copyright 2014-2018 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
#ifndef DS3_MARSHALING_H
17
#define DS3_MARSHALING_H
18
19
#include <libxml/parser.h>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
typedef
enum
{
26
BULK_PUT
,
27
BULK_GET
,
28
BULK_DELETE
,
29
GET_PHYSICAL_PLACEMENT
,
30
COMPLETE_MPU
,
31
STRING
,
32
STRING_LIST
,
33
ID_LIST
,
34
DATA
35
}
object_list_type
;
36
37
typedef
struct
{
38
char
*
buff
;
39
size_t
size
;
40
size_t
total_read
;
41
}
ds3_xml_send_buff
;
42
43
xmlDocPtr
ds3_generate_xml_ids
(
ds3_ids_list
* ids_list);
44
xmlDocPtr
ds3_generate_xml_delete_objects
(
ds3_delete_objects_response
* keys_list);
45
xmlDocPtr
ds3_generate_xml_complete_mpu
(
const
ds3_complete_multipart_upload_response
* mpu_list);
46
xmlDocPtr
ds3_generate_xml_bulk_objects_list
(
const
ds3_bulk_object_list_response
* obj_list,
object_list_type
list_type);
47
48
#ifdef __cplusplus
49
}
50
#endif
51
#endif
BULK_PUT
Definition:
ds3_marshaling.h:26
ds3_generate_xml_ids
xmlDocPtr ds3_generate_xml_ids(ds3_ids_list *ids_list)
Definition:
ds3_requests.c:477
ds3_bulk_object_list_response
Definition:
ds3.h:1954
ds3_xml_send_buff
Definition:
ds3_marshaling.h:37
ds3_generate_xml_bulk_objects_list
xmlDocPtr ds3_generate_xml_bulk_objects_list(const ds3_bulk_object_list_response *obj_list, object_list_type list_type)
Definition:
ds3_requests.c:393
COMPLETE_MPU
Definition:
ds3_marshaling.h:30
ds3_xml_send_buff::size
size_t size
Definition:
ds3_marshaling.h:39
ds3_complete_multipart_upload_response
Definition:
ds3.h:105
object_list_type
object_list_type
Definition:
ds3_marshaling.h:25
GET_PHYSICAL_PLACEMENT
Definition:
ds3_marshaling.h:29
ds3_delete_objects_response
Definition:
ds3.h:110
ds3_ids_list
Definition:
ds3.h:115
STRING
Definition:
ds3_marshaling.h:31
ds3_generate_xml_delete_objects
xmlDocPtr ds3_generate_xml_delete_objects(ds3_delete_objects_response *keys_list)
Definition:
ds3_requests.c:454
BULK_DELETE
Definition:
ds3_marshaling.h:28
STRING_LIST
Definition:
ds3_marshaling.h:32
ds3_generate_xml_complete_mpu
xmlDocPtr ds3_generate_xml_complete_mpu(const ds3_complete_multipart_upload_response *mpu_list)
Definition:
ds3_requests.c:427
BULK_GET
Definition:
ds3_marshaling.h:27
ID_LIST
Definition:
ds3_marshaling.h:33
ds3_xml_send_buff::buff
char * buff
Definition:
ds3_marshaling.h:38
DATA
Definition:
ds3_marshaling.h:34
ds3_xml_send_buff::total_read
size_t total_read
Definition:
ds3_marshaling.h:40
Generated by
1.8.15