Migrate all enumerators to venumerate() interface change
This commit is contained in:
@@ -513,8 +513,13 @@ struct private_enumerator_t {
|
||||
};
|
||||
|
||||
METHOD(enumerator_t, enumerate, bool,
|
||||
private_enumerator_t *this, entry_t **entry, u_int *segment)
|
||||
private_enumerator_t *this, va_list args)
|
||||
{
|
||||
entry_t **entry;
|
||||
u_int *segment;
|
||||
|
||||
VA_ARGS_VGET(args, entry, segment);
|
||||
|
||||
if (this->entry)
|
||||
{
|
||||
this->entry->condvar->signal(this->entry->condvar);
|
||||
@@ -572,7 +577,8 @@ static enumerator_t* create_table_enumerator(private_ike_sa_manager_t *this)
|
||||
|
||||
INIT(enumerator,
|
||||
.enumerator = {
|
||||
.enumerate = (void*)_enumerate,
|
||||
.enumerate = enumerator_enumerate_default,
|
||||
.venumerate = _enumerate,
|
||||
.destroy = _enumerator_destroy,
|
||||
},
|
||||
.manager = this,
|
||||
|
||||
Reference in New Issue
Block a user