aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/hlr
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-11-25 03:59:50 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2020-04-30 19:22:24 +0200
commit04c2375b385356c9d0fc973f01d2c8928b286cf3 (patch)
tree07c542e075952933c7cd3a689bd5044519a54ba9 /include/osmocom/hlr
parent939f508f00ee56d6e347a4377d4007e7ffe51782 (diff)
db v5: prep for D-GSM: add vlr_via_proxy and sgsn_via_proxy
D-GSM will store in the HLR DB whether a locally connected MSC has attached the subscriber (last_lu_seen[_ps]), or whether the attach happened via a GSUP proxy from a different site. Add columns for this separately in this patch. Change-Id: I98c7b3870559ede84adf56e4bf111f53c7487745
Diffstat (limited to 'include/osmocom/hlr')
-rw-r--r--include/osmocom/hlr/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/hlr/db.h b/include/osmocom/hlr/db.h
index 9be88d8..ca336a0 100644
--- a/include/osmocom/hlr/db.h
+++ b/include/osmocom/hlr/db.h
@@ -51,6 +51,7 @@ void db_remove_reset(sqlite3_stmt *stmt);
bool db_bind_text(sqlite3_stmt *stmt, const char *param_name, const char *text);
bool db_bind_int(sqlite3_stmt *stmt, const char *param_name, int nr);
bool db_bind_int64(sqlite3_stmt *stmt, const char *param_name, int64_t nr);
+bool db_bind_null(sqlite3_stmt *stmt, const char *param_name);
void db_close(struct db_context *dbc);
struct db_context *db_open(void *ctx, const char *fname, bool enable_sqlite3_logging, bool allow_upgrades);
@@ -99,6 +100,9 @@ struct hlr_subscriber {
bool ms_purged_ps;
time_t last_lu_seen;
time_t last_lu_seen_ps;
+ /* talloc'd IPA unit name */
+ struct osmo_ipa_name vlr_via_proxy;
+ struct osmo_ipa_name sgsn_via_proxy;
};
/* A format string for use with strptime(3). This format string is