Harald Welte | 3cfa450 | 2015-12-25 15:33:41 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | |
Neels Hofmeyr | 96979af | 2016-01-05 15:19:44 +0100 | [diff] [blame] | 5 | #include <osmocom/ranap/ranap_common.h> |
| 6 | #include <osmocom/ranap/ranap_ies_defs.h> |
Harald Welte | 3cfa450 | 2015-12-25 15:33:41 +0100 | [diff] [blame] | 7 | |
Harald Welte | 8fa5d55 | 2016-01-05 15:01:53 +0100 | [diff] [blame] | 8 | typedef void (*ranap_handle_cb)(void *ctx, ranap_message *ranap_msg); |
Harald Welte | 3cfa450 | 2015-12-25 15:33:41 +0100 | [diff] [blame] | 9 | |
Neels Hofmeyr | 525a69e | 2016-04-19 17:54:25 +0200 | [diff] [blame] | 10 | /* receive a connection-less RANAP message */ |
Harald Welte | 8fa5d55 | 2016-01-05 15:01:53 +0100 | [diff] [blame] | 11 | int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); |
Harald Welte | 3cfa450 | 2015-12-25 15:33:41 +0100 | [diff] [blame] | 12 | |
| 13 | /* receive a connection-oriented RANAP message */ |
Harald Welte | 8fa5d55 | 2016-01-05 15:01:53 +0100 | [diff] [blame] | 14 | int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); |