Harald Welte | 52b1f98 | 2008-12-23 20:25:15 +0000 | [diff] [blame] | 1 | /* Dummy implementation of a subscriber database, roghly HLR/VLR functionality */ |
| 2 | |
| 3 | /* (C) 2008 by Harald Welte <laforge@gnumonks.org> |
Harald Welte | 8470bf2 | 2008-12-25 23:28:35 +0000 | [diff] [blame] | 4 | * |
Harald Welte | 52b1f98 | 2008-12-23 20:25:15 +0000 | [diff] [blame] | 5 | * 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 Welte | 8470bf2 | 2008-12-25 23:28:35 +0000 | [diff] [blame] | 24 | #include <openbsc/gsm_subscriber.h> |
Harald Welte | 52b1f98 | 2008-12-23 20:25:15 +0000 | [diff] [blame] | 25 | |
| 26 | static struct gsm_subscriber subscr = { |
| 27 | .name = "Test User 1", |
| 28 | .tmsi = { 0x22, 0x33, 0x44, 0x55 }, |
| 29 | }; |
| 30 | |
| 31 | struct gsm_subscriber *subscr_get_by_tmsi(u_int8_t *tmsi) |
| 32 | { |
| 33 | return &subscr; |
| 34 | } |
| 35 | struct gsm_subscriber *subscr_get_by_imsi(u_int8_t *imsi) |
| 36 | { |
| 37 | return &subscr; |
| 38 | } |
| 39 | |
| 40 | int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts) |
| 41 | { |
| 42 | return 0; |
| 43 | } |