Migrate all enumerators to venumerate() interface change
This commit is contained in:
@@ -331,10 +331,12 @@ typedef struct {
|
||||
} attribute_enumerator_t;
|
||||
|
||||
METHOD(enumerator_t, attribute_enumerate, bool,
|
||||
attribute_enumerator_t *this, ha_message_attribute_t *attr_out,
|
||||
ha_message_value_t *value)
|
||||
attribute_enumerator_t *this, va_list args)
|
||||
{
|
||||
ha_message_attribute_t attr;
|
||||
ha_message_attribute_t attr, *attr_out;
|
||||
ha_message_value_t *value;
|
||||
|
||||
VA_ARGS_VGET(args, attr_out, value);
|
||||
|
||||
if (this->cleanup)
|
||||
{
|
||||
@@ -602,7 +604,8 @@ METHOD(ha_message_t, create_attribute_enumerator, enumerator_t*,
|
||||
|
||||
INIT(e,
|
||||
.public = {
|
||||
.enumerate = (void*)_attribute_enumerate,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _attribute_enumerate,
|
||||
.destroy = _enum_destroy,
|
||||
},
|
||||
.buf = chunk_skip(this->buf, 2),
|
||||
|
||||
@@ -111,8 +111,12 @@ typedef struct {
|
||||
} shared_enum_t;
|
||||
|
||||
METHOD(enumerator_t, shared_enumerate, bool,
|
||||
shared_enum_t *this, shared_key_t **key, id_match_t *me, id_match_t *other)
|
||||
shared_enum_t *this, va_list args)
|
||||
{
|
||||
shared_key_t **key;
|
||||
id_match_t *me, *other;
|
||||
|
||||
VA_ARGS_VGET(args, key, me, other);
|
||||
if (this->key)
|
||||
{
|
||||
if (me)
|
||||
@@ -151,7 +155,8 @@ METHOD(ha_creds_t, create_shared_enumerator, enumerator_t*,
|
||||
|
||||
INIT(enumerator,
|
||||
.public = {
|
||||
.enumerate = (void*)_shared_enumerate,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _shared_enumerate,
|
||||
.destroy = (void*)free,
|
||||
},
|
||||
.key = this->key,
|
||||
|
||||
Reference in New Issue
Block a user