Delta Chat Core C-API
dc_array.h
1 #ifndef __DC_ARRAY_H__
2 #define __DC_ARRAY_H__
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 
9 struct _dc_array
10 {
13  uint32_t magic;
14  dc_context_t* context;
15  size_t allocated;
16  size_t count;
17  uintptr_t* array;
18 };
19 
20 
21 void dc_array_free_ptr (dc_array_t*);
22 dc_array_t* dc_array_duplicate (const dc_array_t*);
23 void dc_array_sort_ids (dc_array_t*);
24 void dc_array_sort_strings (dc_array_t*);
25 char* dc_array_get_string (const dc_array_t*, const char* sep);
26 char* dc_arr_to_string (const uint32_t* arr, int cnt);
27 
28 
29 #ifdef __cplusplus
30 } /* /extern "C" */
31 #endif
32 #endif /* __DC_ARRAY_H__ */
An object representing a single account.
An object containing a simple array.