/* * Created by yuuta on 7/19/22. */ #ifndef LIBAC_CONNECTION_H #define LIBAC_CONNECTION_H #include "win32.h" #include "wic.h" #include "libac.h" #include /** * Used to transfer deserialization result from receive handler to ac_receive(). */ struct ac_result { bool blocked; bool has_result; int res; ac_obj_t *obj; }; /** * Internal representation of void *connection. */ struct ac_connection { ac_connection_parameters_t parameters; struct wic_inst inst; char *url; /* 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 */