Remove use of globals from config processing
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
782f032df8
commit
f05dd6ac07
6 changed files with 56 additions and 58 deletions
|
@ -52,7 +52,7 @@ static dds_return_t dds_domain_init (dds_domain *domain, dds_domainid_t domain_i
|
|||
gv.tstart = now ();
|
||||
|
||||
(void) ddsrt_getenv ("CYCLONEDDS_URI", &uri);
|
||||
domain->cfgst = config_init (uri);
|
||||
domain->cfgst = config_init (uri, &config);
|
||||
if (domain->cfgst == NULL)
|
||||
{
|
||||
DDS_LOG (DDS_LC_CONFIG, "Failed to parse configuration XML file %s\n", uri);
|
||||
|
|
|
@ -158,7 +158,7 @@ static void dds_writer_status_cb (void *ventity, const status_cb_data_t *data)
|
|||
static uint32_t get_bandwidth_limit (dds_transport_priority_qospolicy_t transport_priority)
|
||||
{
|
||||
#ifdef DDSI_INCLUDE_NETWORK_CHANNELS
|
||||
struct config_channel_listelem *channel = find_channel (transport_priority);
|
||||
struct config_channel_listelem *channel = find_channel (&config, transport_priority);
|
||||
return channel->data_bandwidth_limit;
|
||||
#else
|
||||
(void) transport_priority;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue