41#include <radcli/radcli.h>
59DICT_ATTR *
rc_dict_addattr(rc_handle *rh,
char const * namestr, uint32_t value,
int type, uint32_t vendorspec)
61 return radcli_dict_attr_to_legacy(radcli_dict_attr_add(rh, namestr, value, type, vendorspec));
78DICT_VALUE *
rc_dict_addval(rc_handle *rh,
char const * attrstr,
char const * namestr, uint32_t value)
80 return radcli_dict_value_to_legacy(radcli_dict_value_add(rh, attrstr, namestr, value));
96DICT_VENDOR *
rc_dict_addvend(rc_handle *rh,
char const * namestr, uint32_t vendorspec)
98 return radcli_dict_vendor_to_legacy(radcli_dict_vendor_add(rh, namestr, vendorspec));
109 return radcli_dict_attr_to_legacy(radcli_dict_attr_by_id(rh, attribute));
121 return radcli_dict_attr_to_legacy(radcli_dict_attr_by_name(rh, attrname));
132 return radcli_dict_value_to_legacy(radcli_dict_value_by_name(rh, valname));
143 return radcli_dict_vendor_to_legacy(radcli_dict_vendor_by_name(rh, vendorname));
154 return radcli_dict_vendor_to_legacy(radcli_dict_vendor_by_pec(rh, vendorspec));
164DICT_VALUE *
rc_dict_getval(rc_handle
const *rh, uint32_t value,
char const *attrname)
166 return radcli_dict_value_to_legacy(radcli_dict_value_by_attr(rh, attrname, value));
DICT_VALUE * rc_dict_getval(rc_handle const *rh, uint32_t value, char const *attrname)
Get DICT_VALUE based on attribute name and integer value number.
DICT_ATTR * rc_dict_addattr(rc_handle *rh, char const *namestr, uint32_t value, int type, uint32_t vendorspec)
Add attribute to dictionary.
DICT_VENDOR * rc_dict_findvend(rc_handle const *rh, char const *vendorname)
Lookup a DICT_VENDOR by its name.
DICT_VALUE * rc_dict_findval(rc_handle const *rh, char const *valname)
Lookup a DICT_VALUE by its name.
DICT_VENDOR * rc_dict_getvend(rc_handle const *rh, uint32_t vendorspec)
Lookup a DICT_VENDOR by its IANA number.
DICT_ATTR * rc_dict_getattr(rc_handle const *rh, uint64_t attribute)
Lookup a DICT_ATTR by attribute number.
DICT_VALUE * rc_dict_addval(rc_handle *rh, char const *attrstr, char const *namestr, uint32_t value)
Add value to dictionary.
DICT_VENDOR * rc_dict_addvend(rc_handle *rh, char const *namestr, uint32_t vendorspec)
Add vendor to dictionary.
DICT_ATTR * rc_dict_findattr(rc_handle const *rh, char const *attrname)
Lookup a DICT_ATTR by its name.