aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/private/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/libacron/private/connection.h')
-rw-r--r--client/libacron/private/connection.h28
1 files changed, 28 insertions, 0 deletions
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 <stdbool.h>
+
+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 */