aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/ranap/ranap_common_cn.h
blob: dfce3584880c0ad57652142e12ecd9b2c04ef8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <stdint.h>

#include <osmocom/ranap/ranap_common.h>
#include <osmocom/ranap/ranap_ies_defs.h>

typedef void (*ranap_handle_cb)(void *ctx, ranap_message *ranap_msg);

/* receive a connection-less RANAP message */
int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len);

/* receive a connection-oriented RANAP message */
int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len);