blob: 433a7f2b9c4b8eb25ef5470e55b4a744262e21aa [file] [log] [blame]
Harald Welte4956ae12018-06-15 22:04:28 +02001#include <stdint.h>
2#include <osmocom/core/linuxlist.h>
Harald Weltebb779392018-06-16 20:21:10 +02003#include <osmocom/gsm/gsup.h>
4#include "gsup_server.h"
5
6struct osmo_gsup_conn;
Harald Welte4956ae12018-06-15 22:04:28 +02007
8struct hlr_euse_route {
9 /* hlr_euse.routes */
10 struct llist_head list;
11 struct hlr_euse *euse;
12 const char *prefix;
13};
14
15struct 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 Weltebb779392018-06-16 20:21:10 +020025
26 /* GSUP connection to the EUSE, if any */
27 struct osmo_gsup_conn *conn;
Harald Welte4956ae12018-06-15 22:04:28 +020028};
29
30
31struct hlr_euse *euse_find(struct hlr *hlr, const char *name);
32struct hlr_euse *euse_alloc(struct hlr *hlr, const char *name);
33void euse_del(struct hlr_euse *euse);
34
35struct hlr_euse_route *euse_route_find(struct hlr_euse *euse, const char *prefix);
36struct hlr_euse_route *euse_route_prefix_alloc(struct hlr_euse *euse, const char *prefix);
37void euse_route_del(struct hlr_euse_route *rt);
Harald Weltebb779392018-06-16 20:21:10 +020038
39int rx_proc_ss_req(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup);
40int rx_proc_ss_error(struct osmo_gsup_conn *conn, const struct osmo_gsup_message *gsup);