aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/private/connection.h
blob: 1c1567f431e95a76eda3270cdd7eb007fdf770d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 */