blob: 4b6ba56f6e1177aec5114aadd4a1270e587ff8a5 [file] [log] [blame]
Holger Freyther2b2d2e32009-02-14 22:51:00 +00001/* Generic signalling/notification infrastructure */
Holger Hans Peter Freytherb1008952015-05-02 19:55:38 +02002/* (C) 2009-2010, 2015 by Holger Hans Peter Freyther <zecke@selfish.org>
Harald Welte595ad7b2009-02-16 22:05:44 +00003 * (C) 2009 by Harald Welte <laforge@gnumonks.org>
Holger Hans Peter Freyther0d711632010-09-16 02:30:36 +08004 * (C) 2010 by On-Waves
Holger Freyther2b2d2e32009-02-14 22:51:00 +00005 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
Harald Welte9af6ddf2011-01-01 15:25:50 +01008 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
Holger Freyther2b2d2e32009-02-14 22:51:00 +000010 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Harald Welte9af6ddf2011-01-01 15:25:50 +010015 * GNU Affero General Public License for more details.
Holger Freyther2b2d2e32009-02-14 22:51:00 +000016 *
Harald Welte9af6ddf2011-01-01 15:25:50 +010017 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
Holger Freyther2b2d2e32009-02-14 22:51:00 +000019 *
20 */
21
22#ifndef OPENBSC_SIGNAL_H
23#define OPENBSC_SIGNAL_H
24
Harald Welte595ad7b2009-02-16 22:05:44 +000025#include <stdlib.h>
26#include <errno.h>
27
Pablo Neira Ayuso136f4532011-03-22 16:47:59 +010028#include <osmocom/core/signal.h>
Holger Freyther2b2d2e32009-02-14 22:51:00 +000029
Harald Welte167df882009-02-17 14:35:45 +000030enum signal_subsystems {
Holger Hans Peter Freytherb1008952015-05-02 19:55:38 +020031 SS_SGSN,
Harald Welte167df882009-02-17 14:35:45 +000032};
Holger Freyther2b2d2e32009-02-14 22:51:00 +000033
Holger Hans Peter Freytherb1008952015-05-02 19:55:38 +020034/* GPRS SGSN signals SS_SGSN */
35enum signal_sgsn {
36 S_SGSN_ATTACH,
37 S_SGSN_DETACH,
38 S_SGSN_UPDATE,
39 S_SGSN_PDP_ACT,
40 S_SGSN_PDP_DEACT,
41 S_SGSN_PDP_TERMINATE,
42 S_SGSN_PDP_FREE,
43 S_SGSN_MM_FREE,
44};
45
46struct sgsn_mm_ctx;
47struct sgsn_signal_data {
48 struct sgsn_mm_ctx *mm;
49 struct sgsn_pdp_ctx *pdp; /* non-NULL for PDP_ACT, PDP_DEACT, PDP_FREE */
50};
51
Holger Freyther2b2d2e32009-02-14 22:51:00 +000052#endif