blob: 26b89c80a0ca37987e09051fa69a5278f39d3668 [file] [log] [blame]
Oliver Smithd3c75912021-07-09 16:37:16 +02001/*
2 * Copyright (C) 2021 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
3 * Author: Oliver Smith
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#include <osmocom/core/linuxlist.h>
22#include <osmocom/core/timer.h>
23#include <osmocom/gsm/protocol/gsm_23_003.h>
24
25#include <bts.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31struct bts_pch_timer {
32 struct llist_head entry;
33 struct gprs_rlcmac_bts *bts;
34 struct osmo_timer_list T3113;
35 char imsi[OSMO_IMSI_BUF_SIZE];
36};
37
38void bts_pch_timer_start(struct gprs_rlcmac_bts *bts, const char *imsi);
39void bts_pch_timer_stop(struct gprs_rlcmac_bts *bts, const char *imsi);
Oliver Smith3f794702021-08-23 14:19:21 +020040void bts_pch_timer_stop_all(struct gprs_rlcmac_bts *bts);
Oliver Smithd3c75912021-07-09 16:37:16 +020041
42#ifdef __cplusplus
43}
44#endif