diff options
author | Max <msuraev@sysmocom.de> | 2017-02-20 11:18:04 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-02-21 11:45:08 +0100 |
commit | 3ce368676849b54f40fc426bf3eb136e17091416 (patch) | |
tree | 4cc9745881d6ba2798fd2fbaa463e31db1b02aa3 /src/db.h | |
parent | 58d4a84a3198bc6c30f5fc9f2182ec2de5deb446 (diff) |
Add routines to update nam_ps
Add SQL queries to change nam_ps value and function which uses them.
Change-Id: I24fb79e084b2dfa6a81b52f448b94a86e47014ef
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -4,13 +4,15 @@ #include <sqlite3.h> enum stmt_idx { - SEL_BY_IMSI = 0, - UPD_VLR_BY_ID = 1, - UPD_SGSN_BY_ID = 2, - AUC_BY_IMSI = 3, - AUC_UPD_SQN = 4, - UPD_PURGE_CS_BY_IMSI, - UPD_PURGE_PS_BY_IMSI, + SEL_BY_IMSI = 0, + UPD_VLR_BY_ID = 1, + UPD_SGSN_BY_ID = 2, + AUC_BY_IMSI = 3, + AUC_UPD_SQN = 4, + UPD_PURGE_CS_BY_IMSI = 5, + UPD_PURGE_PS_BY_IMSI = 6, + SET_NAM_PS_BY_IMSI = 7, + UNSET_NAM_PS_BY_IMSI = 8, _NUM_STMT }; @@ -70,7 +72,7 @@ struct hlr_subscriber { int db_subscr_get(struct db_context *dbc, const char *imsi, struct hlr_subscriber *subscr); - +int db_subscr_ps(struct db_context *dbc, const char *imsi, bool enable); int db_subscr_lu(struct db_context *dbc, const struct hlr_subscriber *subscr, const char *vlr_or_sgsn_number, |