DS3 C SDK  4.1.0
Provides access to the Spectra S3 API with C
ds3_utils.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 #ifndef __DS3_UTILS__
17 #define __DS3_UTILS__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 void ds3_log_message(const ds3_log* log, ds3_log_lvl lvl, const char* message, ...);
24 size_t ds3_load_buffer(void* buffer, size_t size, size_t nmemb, void* user_data);
25 ds3_error* ds3_create_error(ds3_error_code code, const char * message);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif
ds3_log_lvl
Definition: ds3.h:84
Definition: ds3.h:92
void ds3_log_message(const ds3_log *log, ds3_log_lvl lvl, const char *message,...)
Definition: ds3_utils.c:38
ds3_error_code
Definition: ds3.h:103
ds3_error * ds3_create_error(ds3_error_code code, const char *message)
Definition: ds3_utils.c:22
size_t ds3_load_buffer(void *buffer, size_t size, size_t nmemb, void *user_data)
Definition: ds3_utils.c:30