fr_dict_attr_flags_t flags; //!< Flags.
+ char const *filename; //!< Where the attribute was defined.
+ ///< this buffer's lifetime is bound to the
+ ///< fr_dict_t.
+ int line; //!< Line number where the attribute was defined.
+
uint8_t ext[FR_DICT_ATTR_EXT_MAX]; //!< Extensions to the dictionary attribute.
} CC_HINT(aligned(FR_EXT_ALIGNMENT));
* This attribute is just a reference to another.
*/
if (args->ref) if (dict_attr_ref_init(da_p, args->ref) < 0) return -1;
+/** Set where the dictionary attribute was defined
+ *
+ */
+void dict_attr_location_init(fr_dict_attr_t *da, char const *filename, int line)
+{
+ da->filename = filename;
+ da->line = line;
+}
/*
* Name is a separate talloc chunk. We allocate