void
nv_table_update_handles(NVTable *self, NVRegistry *logmsg_nv_registry,
                    NVHandle *handles_to_update, guint8 num_handles_to_update)
{
  _update_all_indirect_entries(self, logmsg_nv_registry);
  _update_dynamic_handles(self, logmsg_nv_registry, handles_to_update, num_handles_to_update);
  if (handles_to_update)
    {
      nv_table_foreach(self, logmsg_nv_registry, _update_sd_entries, NULL);
    }
}
Exemple #2
0
/**
 * Apply function to each declared namespace, in the order they were defined.
 */
void
xnode_ns_foreach(const xnode_t *element, xnode_ns_cb_t func, void *data)
{
	struct xnode_ns_foreach_ctx ctx;

	xnode_check(element);
	g_assert(XNODE_T_ELEMENT == element->type);
	g_assert(func != NULL);

	if (NULL == element->u.e.ns)
		return;

	ctx.func = func;
	ctx.data = data;

	nv_table_foreach(element->u.e.ns, xnode_ns_foreach_wrap, &ctx);
}