blob: 76d2e355af59d2013e504a1a24809e6ecfe91d90 [file] [log] [blame]
Harald Welte52b1f982008-12-23 20:25:15 +00001/* Dummy implementation of a subscriber database, roghly HLR/VLR functionality */
2
3/* (C) 2008 by Harald Welte <laforge@gnumonks.org>
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
22
23#include "gsm_subscriber.h"
24
25static struct gsm_subscriber subscr = {
26 .name = "Test User 1",
27 .tmsi = { 0x22, 0x33, 0x44, 0x55 },
28};
29
30struct gsm_subscriber *subscr_get_by_tmsi(u_int8_t *tmsi)
31{
32 return &subscr;
33}
34struct gsm_subscriber *subscr_get_by_imsi(u_int8_t *imsi)
35{
36 return &subscr;
37}
38
39int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts)
40{
41 return 0;
42}