radcli_ctx_read_dictionary_from_buffer3
Load an additional attribute dictionary from an in-memory buffer.
Usage
#include <radcli/>
int radcli_ctx_read_dictionary_from_buffer(
radcli_ctx *ctx,
const char *buf,
size_t size
);
Overview
The from-buffer counterpart to radcli_ctx_read_dictionary(), for a caller that has dictionary text already in memory rather than in a file (e.g. a small, program-defined supplemental dictionary) added so a radcli2.h-only caller is not forced to reach into radcli.h's rc_read_dictionary_from_buffer() for this one operation.
Parameters
|
a context from radcli_ctx_new() or radcli_ctx_read_config(). |
|---|---|
|
the dictionary text. |
|
buf's length in bytes. |
Return value
0 on success, -1 on failure (a parse error, including a conflicting redefinition of an already-loaded attribute).