ARC SDK
listfunc.h
1 
10 #ifndef ARC_LISTFUNC_H
11 #define ARC_LISTFUNC_H
12 
13 namespace ArcCredential {
14 
15 #include <stdlib.h>
16 
17 typedef void (*freefn)(void *);
18 
19 /* Merges element data to NULL-terminated array vect.
20  Returns pointer to new merged array. Old vect array is destroyed.
21  size is the size of array element and for safety should always
22  be sizeof(char*) */
23 extern char **listadd(char **vect, char *data, int size);
24 
25 /* Frees memory associated with array vect all data which its
26  elements are pointing to. For freeing pointed data supplied
27  function f is used. On exit vect array is destroyed. */
28 extern void listfree(char **vect, freefn f);
29 
30 
31 } // namespace ArcCredential
32 
33 #endif
Internal code for low-level credential handling.
Definition: CertUtil.h:11