blob: 6a67c49e3af975d6652a72c38713dae3160ca1e4 [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>
Harald Welte8470bf22008-12-25 23:28:35 +00004 *
Harald Welte52b1f982008-12-23 20:25:15 +00005 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (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
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 */
22
23
Harald Welte8470bf22008-12-25 23:28:35 +000024#include <openbsc/gsm_subscriber.h>
Harald Welte52b1f982008-12-23 20:25:15 +000025
26static struct gsm_subscriber subscr = {
27 .name = "Test User 1",
28 .tmsi = { 0x22, 0x33, 0x44, 0x55 },
29};
30
31struct gsm_subscriber *subscr_get_by_tmsi(u_int8_t *tmsi)
32{
33 return &subscr;
34}
35struct gsm_subscriber *subscr_get_by_imsi(u_int8_t *imsi)
36{
37 return &subscr;
38}
39
40int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts)
41{
42 return 0;
43}