rc_dict_addattr3
Add attribute to dictionary.
Usage
#include <radcli/>
DICT_ATTR * rc_dict_addattr(
rc_handle *rh,
char const *namestr,
uint32_t value,
int type,
uint32_t vendorspec
);
Overview
A re-add identical to an already-loaded attribute of the same name returns that existing attribute rather than adding a duplicate; a re-add of the same name with a conflicting definition (different id/vendor/type) fails, after a warning naming both definitions.
Parameters
|
a handle to configuration. |
|---|---|
|
attribute name |
|
attribute value |
|
attribute type |
|
vendorspec |
Return value
added (or already-existing, identical) attr on success, NULL on failure or conflict