ASA Programming Guide
The Database Tools Interface
DBTools structures
Holds information needed to erase a database using the DBTools library.
typedef struct an_erase_db {
unsigned short version;
const char * dbname;
MSG_CALLBACK confirmrtn;
MSG_CALLBACK errorrtn;
MSG_CALLBACK msgrtn;
a_bit_field quiet : 1;
a_bit_field erase : 1;
const char * encryption_key;
} an_erase_db;
| Member | Description |
|---|---|
| version | DBTools version number |
| dbname | Database file name to erase |
| confirmrtn | Callback routine for confirming an action |
| errorrtn | Callback routine for handling an error message |
| msgrtn | Callback routine for handling an information message |
| quiet | Operate without printing messages (1), or print messages (0) |
| erase | Erase without confirmation (1) or with confirmation (0) |
| encryption_key | The encryption key for the database file. |
For more information on callback functions, see Using callback functions.