Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
kaa_buffer.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef KAA_BUFFER_H_
19 #define KAA_BUFFER_H_
20 
21 #include "kaa_error.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 typedef struct kaa_buffer_t kaa_buffer_t;
28 
29 
30 
32  , size_t buffer_size);
33 
35 
37  , char **buffer
38  , size_t *free_size);
39 
41 
43 
44 kaa_error_t kaa_buffer_get_size(kaa_buffer_t *buffer_p, size_t *size);
45 
46 kaa_error_t kaa_buffer_get_free_space(kaa_buffer_t *buffer_p, size_t *size);
47 
49  , size_t lock_size);
50 
52  , size_t size);
53 
55  , char **buffer
56  , size_t *available_size);
57 
59 
60 #ifdef __cplusplus
61 } /* extern "C" */
62 #endif
63 
64 
65 #endif /* KAA_BUFFER_H_ */
kaa_error_t kaa_buffer_reset(kaa_buffer_t *buffer_p)
kaa_error_t kaa_buffer_get_free_space(kaa_buffer_t *buffer_p, size_t *size)
kaa_error_t kaa_buffer_free_allocated_space(kaa_buffer_t *buffer_p, size_t size)
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t kaa_buffer_allocate_space(kaa_buffer_t *buffer_p, char **buffer, size_t *free_size)
Kaa error codes.
kaa_error_t kaa_buffer_reallocate_space(kaa_buffer_t *buffer_p, size_t size)
kaa_error_t kaa_buffer_get_locked_space(kaa_buffer_t *buffer_p, size_t *size)
kaa_error_t kaa_buffer_lock_space(kaa_buffer_t *buffer_p, size_t lock_size)
kaa_error_t kaa_buffer_get_unprocessed_space(kaa_buffer_t *buffer_p, char **buffer, size_t *available_size)
kaa_error_t kaa_buffer_destroy(kaa_buffer_t *buffer_p)
struct kaa_buffer_t kaa_buffer_t
Definition: kaa_buffer.h:27
kaa_error_t kaa_buffer_get_size(kaa_buffer_t *buffer_p, size_t *size)
kaa_error_t kaa_buffer_create_buffer(kaa_buffer_t **buffer_p, size_t buffer_size)