aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/gsm_subscriber.h
diff options
context:
space:
mode:
authorJan Luebbe <jluebbe@lasnet.de>2008-12-27 15:59:25 +0000
committerJan Luebbe <jluebbe@lasnet.de>2008-12-27 15:59:25 +0000
commit5c15c85be32079031330354a56951cabe6a4f7ec (patch)
tree3be141c8758ca3f16430a099e8a2dadf1afd26aa /include/openbsc/gsm_subscriber.h
parentb332f61f0d79b4285e0d872f79d99e4046ef8d4b (diff)
rewrite db backend
Diffstat (limited to 'include/openbsc/gsm_subscriber.h')
-rw-r--r--include/openbsc/gsm_subscriber.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/openbsc/gsm_subscriber.h b/include/openbsc/gsm_subscriber.h
index 5bdf57952..d2c0d4f71 100644
--- a/include/openbsc/gsm_subscriber.h
+++ b/include/openbsc/gsm_subscriber.h
@@ -4,13 +4,20 @@
#include <sys/types.h>
#include "gsm_data.h"
+#define GSM_IMSI_LENGTH 17
+#define GSM_TMSI_LENGTH 17
+#define GSM_NAME_LENGTH 128
+
struct gsm_subscriber {
- char *name;
- u_int8_t tmsi[4];
+ char imsi[GSM_IMSI_LENGTH];
+ char tmsi[GSM_TMSI_LENGTH];
+ u_int16_t lac;
+ char name[GSM_NAME_LENGTH];
};
-struct gsm_subscriber *subscr_get_by_tmsi(u_int8_t *tmsi);
-struct gsm_subscriber *subscr_get_by_imsi(u_int8_t *imsi);
-int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts);
+enum gsm_subscriber_field {
+ GSM_SUBSCRIBER_IMSI,
+ GSM_SUBSCRIBER_TMSI,
+};
#endif /* _GSM_SUBSCR_H */