return;
}
+ fr_dict_reference(fr_dict_unconst(dict));
p = talloc_zero(server_cs, virtual_server_dict_t);
p->do_free = do_free;
p->dict = dict;
int fr_app_process_type_parse(TALLOC_CTX *ctx, dl_module_inst_t **dl_module,
CONF_ITEM *ci, fr_dict_attr_t const *packet_type,
char const *proto_name,
- char const **type_table, size_t type_table_len,
+ char const **type_table, size_t type_table_len,
dl_module_inst_t **type_submodule_by_code, uint32_t code_max)
{
char const *type_str = cf_pair_value(cf_item_to_pair(ci));
return dict;
}
+/** Manually increase the reference count for a dictionary
+ *
+ * This is useful if a previously loaded dictionary needs to
+ * be bound to the lifetime of an additional object.
+ *
+ * @param[in] dict to increase the reference count for.
+ */
+void fr_dict_reference(fr_dict_t *dict)
+{
+ talloc_increase_ref_count(dict);
+}
+
/** Decrement the reference count on a previously loaded dictionary
*
* @param[in] dict to free.