Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
kaa_configuration_manager.h File Reference
#include "gen/kaa_configuration_definitions.h"
#include "platform/ext_configuration_receiver.h"

Go to the source code of this file.

Typedefs

typedef struct
kaa_configuration_manager_t 
kaa_configuration_manager_t
 

Functions

const kaa_root_configuration_t * kaa_configuration_manager_get_configuration (kaa_configuration_manager_t *self)
 Retrieves the current configuration data. More...
 
kaa_error_t kaa_configuration_manager_set_root_receiver (kaa_configuration_manager_t *self, const kaa_configuration_root_receiver_t *receiver)
 Sets the new receiver of updated configuration data. More...
 

Typedef Documentation

Function Documentation

const kaa_root_configuration_t* kaa_configuration_manager_get_configuration ( kaa_configuration_manager_t self)

Retrieves the current configuration data.

Parameters
[in]selfThe valid pointer to kaa_configuration_manager_t instance.
Returns
The current configuration data (NOTE: don't modify this instance), or NULL if something went wrong. Don't cache this pointer, it could become invalid after the next configuration update.
kaa_error_t kaa_configuration_manager_set_root_receiver ( kaa_configuration_manager_t self,
const kaa_configuration_root_receiver_t receiver 
)

Sets the new receiver of updated configuration data.

See kaa_configuration_root_receiver_t .

Parameters
[in]selfThe valid pointer to kaa_configuration_manager_t instance.
[in]receiverThe new receiver instance. This callback will be called each time when the new configuration arrives.
Returns
Error code.