Data Structures | |
| struct | apr_datum_t |
Modules | |
| SDBM library | |
Defines | |
| #define | APR_DBM_READONLY 1 |
| #define | APR_DBM_READWRITE 2 |
| #define | APR_DBM_RWCREATE 3 |
| #define | APR_DBM_RWTRUNC 4 |
Typedefs | |
| typedef struct apr_dbm_t | apr_dbm_t |
Functions | |
| apr_status_t | apr_dbm_open_ex (apr_dbm_t **dbm, const char *type, const char *name, apr_int32_t mode, apr_fileperms_t perm, apr_pool_t *cntxt) |
| apr_status_t | apr_dbm_open (apr_dbm_t **dbm, const char *name, apr_int32_t mode, apr_fileperms_t perm, apr_pool_t *cntxt) |
| void | apr_dbm_close (apr_dbm_t *dbm) |
| apr_status_t | apr_dbm_fetch (apr_dbm_t *dbm, apr_datum_t key, apr_datum_t *pvalue) |
| apr_status_t | apr_dbm_store (apr_dbm_t *dbm, apr_datum_t key, apr_datum_t value) |
| apr_status_t | apr_dbm_delete (apr_dbm_t *dbm, apr_datum_t key) |
| int | apr_dbm_exists (apr_dbm_t *dbm, apr_datum_t key) |
| apr_status_t | apr_dbm_firstkey (apr_dbm_t *dbm, apr_datum_t *pkey) |
| apr_status_t | apr_dbm_nextkey (apr_dbm_t *dbm, apr_datum_t *pkey) |
| void | apr_dbm_freedatum (apr_dbm_t *dbm, apr_datum_t data) |
| char * | apr_dbm_geterror (apr_dbm_t *dbm, int *errcode, char *errbuf, apr_size_t errbufsize) |
| apr_status_t | apr_dbm_get_usednames_ex (apr_pool_t *pool, const char *type, const char *pathname, const char **used1, const char **used2) |
| void | apr_dbm_get_usednames (apr_pool_t *pool, const char *pathname, const char **used1, const char **used2) |
| #define APR_DBM_READONLY 1 |
open for read-only access
| #define APR_DBM_READWRITE 2 |
open for read-write access
| #define APR_DBM_RWCREATE 3 |
open for r/w, create if needed
| #define APR_DBM_RWTRUNC 4 |
open for r/w, truncating an existing DB if present
| void apr_dbm_close | ( | apr_dbm_t * | dbm | ) |
Close a dbm file previously opened by apr_dbm_open
| dbm | The database to close |
| apr_status_t apr_dbm_delete | ( | apr_dbm_t * | dbm, | |
| apr_datum_t | key | |||
| ) |
Delete a dbm record value by key
| dbm | The database
|
| int apr_dbm_exists | ( | apr_dbm_t * | dbm, | |
| apr_datum_t | key | |||
| ) |
Search for a key within the dbm
| dbm | The database
|
| apr_status_t apr_dbm_fetch | ( | apr_dbm_t * | dbm, | |
| apr_datum_t | key, | |||
| apr_datum_t * | pvalue | |||
| ) |
Fetch a dbm record value by key
| dbm | The database
|
| apr_status_t apr_dbm_firstkey | ( | apr_dbm_t * | dbm, | |
| apr_datum_t * | pkey | |||
| ) |
Retrieve the first record key from a dbm
| dbm | The database
|
| void apr_dbm_freedatum | ( | apr_dbm_t * | dbm, | |
| apr_datum_t | data | |||
| ) |
Proactively toss any memory associated with the apr_datum_t.
| dbm | The database
|
| void apr_dbm_get_usednames | ( | apr_pool_t * | pool, | |
| const char * | pathname, | |||
| const char ** | used1, | |||
| const char ** | used2 | |||
| ) |
If the specified file/path were passed to apr_dbm_open(), return the actual file/path names which would be (created and) used. At most, two files may be used; used2 may be NULL if only one file is used.
| pool | The pool for allocating used1 and used2.
|
| apr_status_t apr_dbm_get_usednames_ex | ( | apr_pool_t * | pool, | |
| const char * | type, | |||
| const char * | pathname, | |||
| const char ** | used1, | |||
| const char ** | used2 | |||
| ) |
If the specified file/path were passed to apr_dbm_open(), return the actual file/path names which would be (created and) used. At most, two files may be used; used2 may be NULL if only one file is used.
| pool | The pool for allocating used1 and used2.
|
| char* apr_dbm_geterror | ( | apr_dbm_t * | dbm, | |
| int * | errcode, | |||
| char * | errbuf, | |||
| apr_size_t | errbufsize | |||
| ) |
Report more information when an apr_dbm function fails.
| dbm | The database
|
| apr_status_t apr_dbm_nextkey | ( | apr_dbm_t * | dbm, | |
| apr_datum_t * | pkey | |||
| ) |
Retrieve the next record key from a dbm
| dbm | The database
|
| apr_status_t apr_dbm_open | ( | apr_dbm_t ** | dbm, | |
| const char * | name, | |||
| apr_int32_t | mode, | |||
| apr_fileperms_t | perm, | |||
| apr_pool_t * | cntxt | |||
| ) |
Open a dbm file by file name
| dbm | The newly opened database
|
| apr_status_t apr_dbm_open_ex | ( | apr_dbm_t ** | dbm, | |
| const char * | type, | |||
| const char * | name, | |||
| apr_int32_t | mode, | |||
| apr_fileperms_t | perm, | |||
| apr_pool_t * | cntxt | |||
| ) |
Open a dbm file by file name and type of DBM
| dbm | The newly opened database
|
| apr_status_t apr_dbm_store | ( | apr_dbm_t * | dbm, | |
| apr_datum_t | key, | |||
| apr_datum_t | value | |||
| ) |
Store a dbm record value by key
| dbm | The database
|
1.6.3