Harald Welte | 283c7fd | 2015-12-21 23:35:56 +0100 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <osmocom/core/prim.h> |
| 5 | |
| 6 | struct osmo_sua_user; |
| 7 | |
| 8 | void osmo_sua_set_log_area(int area); |
| 9 | |
| 10 | struct osmo_sua_user *osmo_sua_user_create(void *ctx, osmo_prim_cb prim_cb); |
| 11 | void osmo_sua_user_destroy(struct osmo_sua_user *user); |
| 12 | |
| 13 | int sua_server_listen(struct osmo_sua_user *user, const char *hostname, uint16_t port); |
| 14 | |
| 15 | int sua_client_connect(struct osmo_sua_user *user, const char *hostname, uint16_t port); |
| 16 | struct 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 */ |
| 19 | int osmo_osmo_sua_user_link_down(struct sua_link *link, struct osmo_prim_hdr *oph); |
| 20 | |