EII ConfigMgr C/C++ Reference
|
Go to the documentation of this file.
27 #include "eii/config_manager/kv_store_plugin/kv_store_plugin.h"
30 #define PUBLISHERS "Publishers"
31 #define SUBSCRIBERS "Subscribers"
32 #define SERVERS "Servers"
33 #define CLIENTS "Clients"
34 #define SOCKET_FILE "socket_file"
35 #define ENDPOINT "EndPoint"
36 #define TOPICS "Topics"
38 #define ALLOWED_CLIENTS "AllowedClients"
40 #define PUBLIC_KEYS "/Publickeys/"
41 #define PRIVATE_KEY "/private_key"
42 #define ZMQ_RECV_HWM "zmq_recv_hwm"
43 #define BROKER_APPNAME "BrokerAppName"
44 #define BROKERED "brokered"
45 #define PUBLISHER_APPNAME "PublisherAppName"
46 #define SERVER_APPNAME "ServerAppName"
48 #ifndef _EII_C_CONFIG_MGR_H
49 #define _EII_C_CONFIG_MGR_H
68 config_t* app_interface;
80 kv_store_client_t* kv_store_client;
83 void* kv_store_handle;
95 config_value_t* interface;
229 typedef kv_store_watch_callback_t cfgmgr_watch_callback_t;
bool cfgmgr_is_dev_mode(cfgmgr_ctx_t *cfgmgr)
cfgmgr_interface_t * cfgmgr_get_server_by_name(cfgmgr_ctx_t *cfgmgr, const char *name)
cfgmgr_iface_type_t
Definition: cfgmgr_util.h:59
void cfgmgr_watch_prefix(cfgmgr_ctx_t *cfgmgr, char *prefix, cfgmgr_watch_callback_t watch_callback, void *user_data)
bool cfgmgr_set_topics(cfgmgr_interface_t *ctx, char const *const *topics_list, int len)
cfgmgr_interface_t * cfgmgr_get_server_by_index(cfgmgr_ctx_t *cfgmgr, int index)
config_value_t * cfgmgr_get_app_interface_value(cfgmgr_ctx_t *cfgmgr, const char *key)
cfgmgr_interface_t * cfgmgr_get_subscriber_by_name(cfgmgr_ctx_t *cfgmgr, const char *name)
config_t * cfgmgr_get_msgbus_config(cfgmgr_interface_t *ctx)
int cfgmgr_get_num_publishers(cfgmgr_ctx_t *cfgmgr)
cfgmgr_ctx_t * cfgmgr_initialize()
void cfgmgr_watch(cfgmgr_ctx_t *cfgmgr, const char *key, cfgmgr_watch_callback_t watch_callback, void *user_data)
void cfgmgr_destroy(cfgmgr_ctx_t *cfg_mgr)
config_value_t * cfgmgr_get_appname(cfgmgr_ctx_t *cfgmgr)
cfgmgr_interface_t * cfgmgr_get_client_by_name(cfgmgr_ctx_t *cfgmgr, const char *name)
cfgmgr_interface_t * cfgmgr_get_publisher_by_name(cfgmgr_ctx_t *cfgmgr, const char *name)
cfgmgr_interface_t * cfgmgr_get_client_by_index(cfgmgr_ctx_t *cfgmgr, int index)
config_value_t * cfgmgr_get_interface_value(cfgmgr_interface_t *cfgmgr_interface, const char *key)
Utility for ConfigManager.
config_t * cfgmgr_get_app_interface(cfgmgr_ctx_t *cfgmgr)
int cfgmgr_get_num_subscribers(cfgmgr_ctx_t *cfgmgr)
int cfgmgr_get_num_servers(cfgmgr_ctx_t *cfgmgr)
cfgmgr_interface_t * cfgmgr_interface_initialize()
config_value_t * cfgmgr_get_app_config_value(cfgmgr_ctx_t *cfgmgr, const char *key)
cfgmgr_interface_t * cfgmgr_get_subscriber_by_index(cfgmgr_ctx_t *cfgmgr, int index)
config_t * cfgmgr_get_app_config(cfgmgr_ctx_t *cfgmgr)
config_value_t * cfgmgr_get_endpoint(cfgmgr_interface_t *ctx)
void cfgmgr_interface_destroy(cfgmgr_interface_t *cfg_mgr_interface)
int cfgmgr_get_num_clients(cfgmgr_ctx_t *cfgmgr)
config_value_t * cfgmgr_get_allowed_clients(cfgmgr_interface_t *ctx)
cfgmgr_interface_t * cfgmgr_get_publisher_by_index(cfgmgr_ctx_t *cfgmgr, int index)
config_value_t * cfgmgr_get_topics(cfgmgr_interface_t *ctx)