blob: add2fd84b46d2a2870101a9d146084da2952fe9d [file] [log] [blame]
Harald Welte283c7fd2015-12-21 23:35:56 +01001#pragma once
2
3#include <stdint.h>
4#include <osmocom/core/prim.h>
5
6struct osmo_sua_user;
7
8void osmo_sua_set_log_area(int area);
9
10struct osmo_sua_user *osmo_sua_user_create(void *ctx, osmo_prim_cb prim_cb);
11void osmo_sua_user_destroy(struct osmo_sua_user *user);
12
13int sua_server_listen(struct osmo_sua_user *user, const char *hostname, uint16_t port);
14
15int sua_client_connect(struct osmo_sua_user *user, const char *hostname, uint16_t port);
16struct sua_link *sua_client_get_link(struct osmo_sua_user *user);
17
18/* user hands us a SCCP-USER SAP primitive down into the stack */
19int osmo_osmo_sua_user_link_down(struct sua_link *link, struct osmo_prim_hdr *oph);
20