Migrate all enumerators to venumerate() interface change
This commit is contained in:
@@ -404,11 +404,13 @@ typedef struct {
|
||||
attr_t *current;
|
||||
} attribute_enumerator_t;
|
||||
|
||||
|
||||
METHOD(enumerator_t, attribute_enumerate, bool,
|
||||
attribute_enumerator_t *this, configuration_attribute_type_t *type,
|
||||
chunk_t *data)
|
||||
attribute_enumerator_t *this, va_list args)
|
||||
{
|
||||
configuration_attribute_type_t *type;
|
||||
chunk_t *data;
|
||||
|
||||
VA_ARGS_VGET(args, type, data);
|
||||
if (this->current)
|
||||
{
|
||||
destroy_attr(this->current);
|
||||
@@ -446,7 +448,8 @@ METHOD(attribute_provider_t, create_attribute_enumerator, enumerator_t*,
|
||||
|
||||
INIT(enumerator,
|
||||
.public = {
|
||||
.enumerate = (void*)_attribute_enumerate,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _attribute_enumerate,
|
||||
.destroy = _attribute_destroy,
|
||||
},
|
||||
.list = linked_list_create(),
|
||||
|
||||
Reference in New Issue
Block a user