summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_xchg_init.c
blob: b9d35f0d7a7e5b52c5c89270f6da9b1e126dbf7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <errno.h>
#include <bcnm/wpactrl.h>

void wpactrl_xchg_init (wpactrl_xchg_t *dt, wpactrl_xchgitem_t const *tab, unsigned int n, tain_t const *limit, void *aux)
{
  dt->tab = tab ;
  dt->n = n ;
  dt->i = 0 ;
  dt->deadline = *limit ;
  dt->status = ECONNABORTED ;
  dt->aux = aux ;
}