summaryrefslogtreecommitdiff
path: root/src/libwpactrl/wpactrl_xchg_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_init.c')
-rw-r--r--src/libwpactrl/wpactrl_xchg_init.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_init.c b/src/libwpactrl/wpactrl_xchg_init.c
new file mode 100644
index 0000000..37006dd
--- /dev/null
+++ b/src/libwpactrl/wpactrl_xchg_init.c
@@ -0,0 +1,17 @@
+/* ISC license. */
+
+#include <errno.h>
+#include <skalibs/stralloc.h>
+#include <bcnm/wpactrl.h>
+
+int wpactrl_xchg_init (wpactrl_xchg_t *dt, wpactrl_xchgitem_t const *tab, unsigned int n, tain_t const *limit, void *aux)
+{
+ dt->sa.len = 0 ;
+ dt->tab = tab ;
+ dt->n = n ;
+ dt->i = 0 ;
+ dt->deadline = *limit ;
+ dt->status = ECONNABORTED ;
+ dt->aux = aux ;
+ return 1 ;
+}