DS3 C SDK  4.1.0
Provides access to the Spectra S3 API with C
ds3_connection.h
Go to the documentation of this file.
1 
2 /*
3  * ******************************************************************************
4  * Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
5  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use
6  * this file except in compliance with the License. A copy of the License is located at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * or in the "license" file accompanying this file.
11  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
13  * specific language governing permissions and limitations under the License.
14  * ****************************************************************************
15  */
16 
17 /* This Code is Auto-Generated; DO NOT MODIFY! */
18 
19 
20 #ifndef __DS3_CONNECTION_H__
21 #define __DS3_CONNECTION_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <curl/curl.h>
28 #include <glib.h>
29 #include "ds3.h"
30 
31 #define DEFAULT_CONNECTION_POOL_SIZE 10
32 
33 typedef GMutex ds3_mutex;
34 typedef GCond ds3_condition;
35 
36 typedef CURL ds3_connection;
37 
38 typedef struct _ds3_connection_pool ds3_connection_pool;
39 
42 void ds3_connection_pool_clear(ds3_connection_pool* pool, ds3_bool already_locked);
43 
46 
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif
void ds3_connection_release(ds3_connection_pool *pool, ds3_connection *handle)
CURL ds3_connection
ds3_bool
Definition: ds3.h:72
GMutex ds3_mutex
ds3_connection_pool * ds3_connection_pool_init_with_size(uint16_t pool_size)
void ds3_connection_pool_inc_ref(ds3_connection_pool *pool)
ds3_connection_pool * ds3_connection_pool_init(void)
ds3_connection * ds3_connection_acquire(ds3_connection_pool *pool)
void ds3_connection_pool_clear(ds3_connection_pool *pool, ds3_bool already_locked)
GCond ds3_condition
The public definitions for the Spectra S3 C SDK.
struct _ds3_connection_pool ds3_connection_pool
Definition: ds3.h:57
void ds3_connection_pool_dec_ref(ds3_connection_pool *pool)