diff options
author | Jan Luebbe <jluebbe@lasnet.de> | 2008-12-27 18:04:34 +0000 |
---|---|---|
committer | Jan Luebbe <jluebbe@lasnet.de> | 2008-12-27 18:04:34 +0000 |
commit | fac25fccbd776a5a4ffa1964d47ee78c30f66411 (patch) | |
tree | c69a0a5482c30dd7a87109779cfbed77985f0ddb /include | |
parent | a3d0438ff7b7b8b927e8a2d579c557c1fb3a844c (diff) |
add a equipment table
Diffstat (limited to 'include')
-rw-r--r-- | include/openbsc/db.h | 1 | ||||
-rw-r--r-- | include/openbsc/gsm_subscriber.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/openbsc/db.h b/include/openbsc/db.h index d102dfe59..e02bb6246 100644 --- a/include/openbsc/db.h +++ b/include/openbsc/db.h @@ -32,5 +32,6 @@ struct gsm_subscriber* db_create_subscriber(char imsi[GSM_IMSI_LENGTH]); int db_get_subscriber(enum gsm_subscriber_field field, struct gsm_subscriber* subscriber); int db_set_subscriber(struct gsm_subscriber* subscriber); int db_subscriber_alloc_tmsi(struct gsm_subscriber* subscriber); +int db_subscriber_assoc_imei(struct gsm_subscriber* subscriber, char imei[GSM_IMEI_LENGTH]); #endif /* _DB_H */ diff --git a/include/openbsc/gsm_subscriber.h b/include/openbsc/gsm_subscriber.h index 03333d4b1..0eb3654eb 100644 --- a/include/openbsc/gsm_subscriber.h +++ b/include/openbsc/gsm_subscriber.h @@ -4,11 +4,13 @@ #include <sys/types.h> #include "gsm_data.h" +#define GSM_IMEI_LENGTH 17 #define GSM_IMSI_LENGTH 17 #define GSM_TMSI_LENGTH 17 #define GSM_NAME_LENGTH 128 struct gsm_subscriber { + u_int64_t id; char imsi[GSM_IMSI_LENGTH]; char tmsi[GSM_TMSI_LENGTH]; u_int16_t lac; |