Migrate all enumerators to venumerate() interface change
This commit is contained in:
@@ -83,9 +83,12 @@ typedef struct {
|
||||
} attr_enumerator_t;
|
||||
|
||||
METHOD(enumerator_t, enumerate_attrs, bool,
|
||||
attr_enumerator_t *this, configuration_attribute_type_t *type,
|
||||
chunk_t *data)
|
||||
attr_enumerator_t *this, va_list args)
|
||||
{
|
||||
configuration_attribute_type_t *type;
|
||||
chunk_t *data;
|
||||
|
||||
VA_ARGS_VGET(args, type, data);
|
||||
if (this->request_ipv4)
|
||||
{
|
||||
*type = P_CSCF_IP4_ADDRESS;
|
||||
@@ -132,7 +135,8 @@ METHOD(attribute_handler_t, create_attribute_enumerator, enumerator_t *,
|
||||
|
||||
INIT(enumerator,
|
||||
.public = {
|
||||
.enumerate = (void*)_enumerate_attrs,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _enumerate_attrs,
|
||||
.destroy = (void*)free,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user