aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-10 13:44:06 +0200
committerMattias Andrée <maandree@kth.se>2020-05-10 13:44:06 +0200
commit4a968d807d2ec611f443d704ae875911894c04e2 (patch)
treea7c1d4f178842bb6971c7a4b2c159049df794dd0 /common.h
parentFix struct for ClientMessage event (diff)
downloadlibaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.gz
libaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.bz2
libaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.xz
A few things
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.h b/common.h
index c265cee..aee5172 100644
--- a/common.h
+++ b/common.h
@@ -55,10 +55,10 @@ DEFINE_CHECKED(ssize_t, __checked_ssize_t)
#define X_TCP_PORT 6000
-struct libaxl_connection { /* TODO add serialisation functions, add close and detach functions */
+struct libaxl_connection { /* TODO add serialisation functions */
int fd;
uint16_t last_seqnum;
- LIBAXL_CONNECTION_RWLOCK; /* INIT_LIBAXL_CONNECTION_RWLOCK(&.) */
+ LIBAXL_CONNECTION_RWLOCK;
LIBAXL_CONTEXT *pending_out;
size_t in_progress;
size_t in_buf_size;
@@ -66,7 +66,7 @@ struct libaxl_connection { /* TODO add serialisation functions, add close and de
uint32_t xid_base;
uint32_t xid_max;
uint32_t xid_shift;
- volatile _Atomic uint32_t xid_last; /* atomic_init(&.xid_last, 0) */
+ volatile _Atomic uint32_t xid_last;
uint8_t request_map[1UL << 16];
struct libaxl_display_info info;
char *info_buf;