cosmetic: prepend DB_STMT_ to enum stmt_idx entries
There are upcoming additions, and some seem too general without a proper common
prefix in the identifiers, like 'CREATE'.
Change-Id: I51b677db31a1ebbbc45dc7925074de7493fbde1f
diff --git a/src/db.h b/src/db.h
index a60cf62..d424b38 100644
--- a/src/db.h
+++ b/src/db.h
@@ -4,22 +4,22 @@
#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 = 5,
- UPD_PURGE_PS_BY_IMSI = 6,
- SET_NAM_PS_BY_IMSI = 7,
- UNSET_NAM_PS_BY_IMSI = 8,
- _NUM_STMT
+ DB_STMT_SEL_BY_IMSI,
+ DB_STMT_UPD_VLR_BY_ID,
+ DB_STMT_UPD_SGSN_BY_ID,
+ DB_STMT_AUC_BY_IMSI,
+ DB_STMT_AUC_UPD_SQN,
+ DB_STMT_UPD_PURGE_CS_BY_IMSI,
+ DB_STMT_UPD_PURGE_PS_BY_IMSI,
+ DB_STMT_SET_NAM_PS_BY_IMSI,
+ DB_STMT_UNSET_NAM_PS_BY_IMSI,
+ _NUM_DB_STMT
};
struct db_context {
char *fname;
sqlite3 *db;
- sqlite3_stmt *stmt[_NUM_STMT];
+ sqlite3_stmt *stmt[_NUM_DB_STMT];
};
bool db_remove_reset(sqlite3_stmt *stmt);