Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mod_watchdog.h File Reference

Watchdog module for Apache. More...

#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "ap_provider.h"
#include "apr.h"
#include "apr_strings.h"
#include "apr_pools.h"
#include "apr_shm.h"
#include "apr_hash.h"
#include "apr_hooks.h"
#include "apr_optional.h"
#include "apr_file_io.h"
#include "apr_time.h"
#include "apr_thread_proc.h"
#include "apr_global_mutex.h"
#include "apr_thread_mutex.h"
Include dependency graph for mod_watchdog.h:

Go to the source code of this file.

Macros

#define AP_WATCHDOG_SINGLETON   "_singleton_"
 
#define AP_WATCHDOG_DEFAULT   "_default_"
 
#define AP_WD_TM_INTERVAL   APR_TIME_C(1000000) /* 1 second */
 
#define AP_WD_TM_SLICE   APR_TIME_C(100000) /* 100 ms */
 
#define AP_WATCHDOG_STATE_STARTING   1
 
#define AP_WATCHDOG_STATE_RUNNING   2
 
#define AP_WATCHDOG_STATE_STOPPING   3
 
#define AP_WD_DECLARE(type)   type
 
#define AP_WD_DECLARE_NONSTD(type)   type
 
#define AP_WD_DECLARE_DATA
 

Typedefs

typedef struct ap_watchdog_t ap_watchdog_t
 
typedef apr_status_t ap_watchdog_callback_fn_t (int state, void *data, apr_pool_t *pool)
 

Functions

apr_status_t ap_watchdog_get_instance (ap_watchdog_t **watchdog, const char *name, int parent, int singleton, apr_pool_t *p)
 
apr_status_t ap_watchdog_register_callback (ap_watchdog_t *watchdog, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
 
apr_status_t ap_watchdog_set_callback_interval (ap_watchdog_t *w, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
 
int ap_hook_watchdog_need (server_rec *s, const char *name, int parent, int singleton)
 
int ap_hook_watchdog_init (server_rec *s, const char *name, apr_pool_t *pool)
 
int ap_hook_watchdog_exit (server_rec *s, const char *name, apr_pool_t *pool)
 
int ap_hook_watchdog_step (server_rec *s, const char *name, apr_pool_t *pool)
 

Detailed Description

Watchdog module for Apache.