blob: dfce3584880c0ad57652142e12ecd9b2c04ef8e4 [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
Neels Hofmeyr525a69e2016-04-19 17:54:25 +020010/* receive a connection-less 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);