client-c  0.7.0
kaa_configuration_manager.h File Reference
+ Include dependency graph for kaa_configuration_manager.h:

Go to the source code of this file.

Macros

#define KAA_CONFIGURATION_MANAGER_T
 

Typedefs

typedef struct
kaa_configuration_manager 
kaa_configuration_manager_t
 

Functions

const kaa_root_configuration_tkaa_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. See kaa_configuration_root_receiver_t . More...
 

Macro Definition Documentation

#define KAA_CONFIGURATION_MANAGER_T

Definition at line 29 of file kaa_configuration_manager.h.

Typedef Documentation

typedef struct kaa_configuration_manager kaa_configuration_manager_t

Definition at line 30 of file kaa_configuration_manager.h.

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.