Article header database (cache) More...
Go to the source code of this file.
Macros | |
| #define | MAIN_ERR_PREFIX "DATA: " |
| Message prefix for DATABASE module. | |
| #define | DB_PERM (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR) |
| Permissions for database content files. | |
Functions | |
| int | db_init (void) |
| Init database. More... | |
| int | db_exit (void) |
| Shutdown database. More... | |
| int | db_clear (void) |
| Delete all database content. More... | |
| int | db_update_groups (size_t groupcount, const char **grouplist) |
| Delete database content for all groups that are not specified. More... | |
| int | db_add (const char *group, core_anum_t anum, const char *header, size_t len) |
| Add entry. More... | |
| int | db_read (const char *group, core_anum_t anum, char **header, size_t *len) |
| Read entry. More... | |
| int | db_delete (const char *group, core_anum_t start, core_anum_t end) |
| Delete entries. More... | |
Article header database (cache)
Copyright (c) 2012-2021 by the developers. See the LICENSE file for details.
If nothing else is specified, function return zero to indicate success and a negative value to indicate an error.
Definition in file database.c.