blob: f0fd09eb86b056eb1159ae532373b8648842c36a [file] [log] [blame]
Harald Welte3cfa4502015-12-25 15:33:41 +01001#pragma once
2
3#include <stdint.h>
4
Neels Hofmeyr96979af2016-01-05 15:19:44 +01005#include <osmocom/ranap/ranap_common.h>
6#include <osmocom/ranap/ranap_ies_defs.h>
Harald Welte3cfa4502015-12-25 15:33:41 +01007
Harald Welte8fa5d552016-01-05 15:01:53 +01008typedef void (*ranap_handle_cb)(void *ctx, ranap_message *ranap_msg);
Harald Welte3cfa4502015-12-25 15:33:41 +01009
10/* receive a connections-liess RANAP message */
Harald Welte8fa5d552016-01-05 15:01:53 +010011int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len);
Harald Welte3cfa4502015-12-25 15:33:41 +010012
13/* receive a connection-oriented RANAP message */
Harald Welte8fa5d552016-01-05 15:01:53 +010014int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len);