Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 1 | #include <stdint.h> |
| 2 | #include <osmocom/core/linuxlist.h> |
Harald Welte | bb77939 | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 3 | #include <osmocom/gsm/gsup.h> |
| 4 | #include "gsup_server.h" |
| 5 | |
| 6 | struct osmo_gsup_conn; |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 7 | |
| 8 | struct hlr_euse_route { |
| 9 | /* hlr_euse.routes */ |
| 10 | struct llist_head list; |
| 11 | struct hlr_euse *euse; |
| 12 | const char *prefix; |
| 13 | }; |
| 14 | |
| 15 | struct hlr_euse { |
| 16 | /* list in the per-hlr list of EUSEs */ |
| 17 | struct llist_head list; |
| 18 | struct hlr *hlr; |
| 19 | /* name (must match the IPA ID tag) */ |
| 20 | const char *name; |
| 21 | /* human-readable description */ |
| 22 | const char *description; |
| 23 | /* list of hlr_euse_route */ |
| 24 | struct llist_head routes; |
Harald Welte | bb77939 | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 25 | |
| 26 | /* GSUP connection to the EUSE, if any */ |
| 27 | struct osmo_gsup_conn *conn; |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | |
| 31 | struct hlr_euse *euse_find(struct hlr *hlr, const char *name); |
| 32 | struct hlr_euse *euse_alloc(struct hlr *hlr, const char *name); |
| 33 | void euse_del(struct hlr_euse *euse); |
| 34 | |
| 35 | struct hlr_euse_route *euse_route_find(struct hlr_euse *euse, const char *prefix); |
| 36 | struct hlr_euse_route *euse_route_prefix_alloc(struct hlr_euse *euse, const char *prefix); |
| 37 | void euse_route_del(struct hlr_euse_route *rt); |
Harald Welte | bb77939 | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 38 | |
| 39 | int rx_proc_ss_req(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup); |
| 40 | int rx_proc_ss_error(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup); |