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