Conviva Client Library
ccl_dictionary.h
1 //
2 // Copyright (c) 2014 Conviva. All rights reserved.
3 // CCL - Conviva Client Library
4 //
5 
10 
14 
15 #ifndef CCLDICTIONARY_H
16 #define CCLDICTIONARY_H
17 
18 typedef struct ccl_dictionary ccl_dictionary_t;
19 
23 
26 extern void ccl_dictionary_destroy (ccl_dictionary_t *dictionary);
27 
33 extern int ccl_dictionary_put (ccl_dictionary_t *dictionary, const char* key, const char *value);
34 
40 extern const char *ccl_dictionary_get (ccl_dictionary_t *dictionary, const char* key);
41 
42 #endif /* CCLDICTIONARY_H */
43 
const char * ccl_dictionary_get(ccl_dictionary_t *dictionary, const char *key)
Gets the value for a specific key within an existing ccl_dictionary_t.
struct ccl_dictionary ccl_dictionary_t
Definition: ccl_dictionary.h:18
int ccl_dictionary_put(ccl_dictionary_t *dictionary, const char *key, const char *value)
Adds a key/value pair to an existing ccl_dictionary_t.
void ccl_dictionary_destroy(ccl_dictionary_t *dictionary)
Destroys an existing ccl_dictionary_t.
ccl_dictionary_t * ccl_dictionary_create(void)
Creates a new ccl_dictionary_t.