|
Namespaces |
| namespace | Countm |
Data Structures |
| struct | countent |
| struct | countm_config |
| | per-server-configuration information More...
|
| struct | db_count_record |
| | the structure stored in DB_COUNT More...
|
| struct | rgb |
Defines |
| #define | DEFAULT_LOCKFILE_STRING "/var/countm/countm.lock" |
| | Default countm lockfile. When file exists, indicates database is locked, and in use. Define as an absolute path/filename. May not be the empty string.
|
|
#define | DEFAULT_FONTSDIR_STRING "/var/countm/fonts" |
| | Default countm fonts directory. Specifies the directory containing the true type fonts countm may use. Must be and absolute path. May not be the empty string (which is an error). Finally, a / must not end the string.
|
| #define | DEFAULT_FONT_STRING "FreeMono" |
| | Defalut countm font. Must be defined as a valid filename. Do not include the .ttf extension suffix. Is considered relative to DEFAULT_FONTSDIR_STRING. A '/' should not begin the name.
|
|
#define | DEFAULT_DB_ENVIRONMENT_HOME_STRING "/var/countm/dbase" |
| | The directory containing database infomation. Must be absolute. A '/' should not end the path.
|
|
#define | DEFAULT_DB_FILE_STRING "countm.db" |
| | The database file of link access hostnames. Relative to the DEFAULT_DB_ENVIRONMENT_HOME_STRING directory. May not be empty string.
|
|
#define | DEFAULT_DB_LOG_FILE_STRING "/var/countm/dbase/db.log" |
| | The database log file. Must be absolute. May not be empty string.
|
|
#define | DB_ERROR_LOG_PREFIX_STRING "dba_err" |
| | The prefix used when writing database errors.
|
|
#define | DB_COUNTER "DB_COUNTER" |
| | The internal name of the counter database.
|
|
#define | DB_ACCESS "DB_ACCESS" |
| | The internal name of the access database.
|
|
#define | MODULE_URI_PATH_STRING "/countm" |
| | The match string for the URI path. Must begin with a /, and be a valid path name. Only alter if absolutely necessary. Matches the directory specified in the <Location> directive.
|
|
#define | MODULE_HANDLER_ID_STRING "mod-countm" |
| | The AddHandler string in the config file Matches the handler string to the module. Only alter if absolutely necessary.
|
|
#define | USE_REMOTE_DOUBLE_REV |
| | If hostname lookup fails, attempts to use double reverse If get_remote_host fails to return a valid hostname, an additional call using REMOTE_DOUBLE_REV will be attempted. To deactivate, comment out the define.
|
|
#define | UNLOCK_ATTEMPTS 3 |
| | The number of database unlock attempts each request tries. If the database may not be unlocked, the request sleeps for a second and tries again. After each attempt, it waits for 1 second.
|
Typedefs |
|
typedef unsigned long | cntval_t |
| | The type for the counter value.
|
Functions |
| void * | countm_per_server_config (apr_pool_t *p, server_rec *s) |
| | Server startup configuration routine.
|
| int | countm_method_handler (request_rec *r) |
| | Handler for the method. Processes the request given in r->args into parameters, and completes request.
|
| void | countm_register_hooks (apr_pool_t *p) |
| | Registers required hooks. Called by API to register hooks necessary for various stages.
|
| int | lock (const char *const sza_fn, apr_pool_t *p) |
| | Locks the database. Locks the database by creating a lock file.
|
| int | unlock (const char *const sza_fn, apr_pool_t *p) |
| | Unlocks the database. Unlocks the database by removing the lock file.
|
| void | rgb_color (const char *hexnum, struct rgb *rgb) |
| | Manipulates rgb color values.
|
| int | display_string (const char *sza_string, struct countent *ce, request_rec *r) |
| | displays the counter back to the requesting client.
|
| DB_ENV * | db_env_init (const char *home, const char *prefix, int cachesize, FILE *fp_log) |
| | Initialize the database environment.
|
| DB * | db_open (DB_ENV *dbenv, const char *fname, const char *dname, DBTYPE dtype, u_int32_t dflags_open, u_int32_t dflags_db, int dmode, u_int32_t dpgsize) |
| int | countm_hook_post_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) |
| | The post configuation hook. Assigns default values to parameters not given in the httpd.conf file, and verifies that required files exist, and are accessable. How return failure, and abort module loading?
|
|
|
Initial value:
{
AP_INIT_TAKE1("CountmLockfile", set_lockfile, NULL, RSRC_CONF,
"the name of the countm database lockfile"),
AP_INIT_TAKE1("CountmFontDir", set_fontsdir, NULL, RSRC_CONF,
"the name of the countm font directory"),
AP_INIT_TAKE1("CountmDefFont", set_font, NULL, RSRC_CONF,
"the name of the default countm font"),
AP_INIT_TAKE1("CountmEnvironmentHome", set_db_environment_home, NULL,
RSRC_CONF, "the name of the countm database directory"),
AP_INIT_TAKE1("CountmDB", set_db_file, NULL, RSRC_CONF,
"the name of the countm database file"),
AP_INIT_TAKE1("CountmDBLog", set_db_log_file, NULL, RSRC_CONF,
"the name of the countm database log file"),
{NULL}
} |