blob: a25566f86a49d0eb31305afabb07e5ad422f6ed1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
LIBAXL_CONNECTION *
libaxl_create(int fd)
{
LIBAXL_CONNECTION *conn;
conn = liberror_calloc(1, sizeof(*conn));
if (conn) {
conn->fd = fd;
conn->info.struct_version = LIBAXL_DISPLAY_INFO_VERSION;
atomic_init(&conn->xid_last, 0);
INIT_LIBAXL_CONNECTION_RWLOCK(conn);
}
return conn;
}
|