client-c  0.8.1
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

Copyright 2014-2016 CyberVision, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.