From b4afa06e383325f4a0c751a64ca896d769db07a8 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Wed, 20 Jul 2022 18:12:22 -0700 Subject: libac: First Commit --- client/libacron/private/connection.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 client/libacron/private/connection.h (limited to 'client/libacron/private/connection.h') diff --git a/client/libacron/private/connection.h b/client/libacron/private/connection.h new file mode 100644 index 0000000..1c1567f --- /dev/null +++ b/client/libacron/private/connection.h @@ -0,0 +1,28 @@ +/* + * Created by yuuta on 7/19/22. + */ + +#ifndef LIBAC_CONNECTION_H +#define LIBAC_CONNECTION_H + +#include "wic.h" +#include "libac.h" +#include + +struct ac_result { + bool has_result; + int res; + ac_obj_t *obj; +}; + +struct ac_connection { + ac_connection_parameters_t parameters; + struct wic_inst inst; + int fd; + bool established; + /* Result from message handler. + * Message handling will happen at the same thread as ac_receive (lib wic). */ + struct ac_result result; +}; + +#endif /* LIBAC_CONNECTION_H */ -- cgit v1.2.3