|
Radcli library 2.0.0
A simple radius library -- new API reference
|
#include <radcli2.h>
Data Fields | |
| const radcli_avp_list * | list |
| const radcli_avp * | cur |
Iterator over a radcli_avp_list.
A plain value: construct with radcli_avp_list_iter(), advance with radcli_avp_iter_next(). No allocation, safe to copy, safe to run several independent iterators over the same list concurrently (as long as nothing mutates the list while any of them are in use – see radcli_avp_list_st's locking note in lib/avp.c). Fields are an implementation detail; do not access them directly. Deliberately not opaque via an incomplete type: a two-pointer cursor belongs on the caller's stack at zero cost, the way any ccan/list or kernel list cursor does, not behind a heap allocation.
Usage: