Max | d4bebbd | 2017-03-02 12:00:19 +0100 | [diff] [blame] | 1 | /* OsmoHLR generic header */ |
| 2 | |
| 3 | /* (C) 2017 sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * Author: Max Suraev <msuraev@sysmocom.de> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU Affero General Public License as published by |
| 10 | * the Free Software Foundation; either version 3 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU Affero General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Affero General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #include <stdbool.h> |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 26 | #include <osmocom/core/linuxlist.h> |
| 27 | |
| 28 | struct hlr_euse; |
Max | d4bebbd | 2017-03-02 12:00:19 +0100 | [diff] [blame] | 29 | |
| 30 | struct hlr { |
| 31 | /* GSUP server pointer */ |
| 32 | struct osmo_gsup_server *gs; |
| 33 | |
| 34 | /* DB context */ |
| 35 | struct db_context *dbc; |
Max | 372868b | 2017-03-02 12:12:00 +0100 | [diff] [blame] | 36 | |
| 37 | /* Control Interface */ |
| 38 | struct ctrl_handle *ctrl; |
| 39 | const char *ctrl_bind_addr; |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 40 | |
| 41 | /* Local bind addr */ |
| 42 | char *gsup_bind_addr; |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 43 | |
| 44 | struct llist_head euse_list; |
| 45 | struct hlr_euse *euse_default; |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 46 | struct llist_head iuse_list; |
| 47 | |
Vadim Yanitskiy | d157a56 | 2018-12-01 00:03:39 +0700 | [diff] [blame] | 48 | /* NCSS (call independent) session guard timeout value */ |
| 49 | int ncss_guard_timeout; |
| 50 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 51 | struct llist_head ussd_routes; |
Harald Welte | bb77939 | 2018-06-16 20:21:10 +0200 | [diff] [blame] | 52 | |
| 53 | struct llist_head ss_sessions; |
Oliver Smith | 851814a | 2019-01-11 15:30:21 +0100 | [diff] [blame] | 54 | |
| 55 | bool store_imei; |
Max | d4bebbd | 2017-03-02 12:00:19 +0100 | [diff] [blame] | 56 | }; |
Stefan Sperling | f162252 | 2018-04-09 11:39:16 +0200 | [diff] [blame] | 57 | |
Harald Welte | d5807b8 | 2018-07-29 12:27:41 +0200 | [diff] [blame] | 58 | extern struct hlr *g_hlr; |
| 59 | |
Stefan Sperling | f162252 | 2018-04-09 11:39:16 +0200 | [diff] [blame] | 60 | struct hlr_subscriber; |
| 61 | |
| 62 | void osmo_hlr_subscriber_update_notify(struct hlr_subscriber *subscr); |