diff options
author | Oliver Smith <osmith@sysmocom.de> | 2019-03-06 13:17:39 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2019-05-13 08:55:18 +0200 |
commit | cd2af5ead7a6fbba3e7b3df620536619a10ef356 (patch) | |
tree | 4002c7261eba14be13850ce4fbe80054f196c95f /src/db.h | |
parent | e21b45aecddbf388f22ab4832f4a8f5bf41a2ddc (diff) |
db_hlr.c: db_subscr_create(): add flags argument
Allow creating new subscribers without giving them access to CS or PS.
This will be used by the create-subscriber-on-demand feature.
Related: OS#2542
Change-Id: I1a6dd85387723dab5487c53b33d2d9ec6d05d006
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -118,7 +118,10 @@ struct sub_auth_data_str { } u; }; -int db_subscr_create(struct db_context *dbc, const char *imsi); +#define DB_SUBSCR_FLAG_NAM_CS (1 << 1) +#define DB_SUBSCR_FLAG_NAM_PS (1 << 2) + +int db_subscr_create(struct db_context *dbc, const char *imsi, uint8_t flags); int db_subscr_delete_by_id(struct db_context *dbc, int64_t subscr_id); int db_subscr_update_msisdn_by_imsi(struct db_context *dbc, const char *imsi, |