client-c  0.8.1
ext_configuration_persistence.h
Go to the documentation of this file.
1 
22 #ifndef EXT_CONFIGURATION_PERSISTENCE_H_
23 #define EXT_CONFIGURATION_PERSISTENCE_H_
24 
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
31 
44 void ext_configuration_read(char **buffer, size_t *buffer_size, bool *needs_deallocation);
45 
46 
47 
55 void ext_configuration_store(const char *buffer, size_t buffer_size);
56 
57 
62 void ext_configuration_delete(void);
63 
64 
65 #ifdef __cplusplus
66 } /* extern "C" */
67 #endif
68 #endif /* EXT_CONFIGURATION_PERSISTENCE_H_ */
void ext_configuration_read(char **buffer, size_t *buffer_size, bool *needs_deallocation)
Called on Kaa startup to restore the persisted configuration data (if present).
void ext_configuration_store(const char *buffer, size_t buffer_size)
Called when Kaa is ready to persist configuration data.
void ext_configuration_delete(void)
Called when Kaa need to remove configuration data.