Apache HTTPD
Classes | Macros | Typedefs | Functions
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"

Go to the source code of this file.

Classes

struct  ap_LINK_watchdog_need_t
 
struct  ap_LINK_watchdog_init_t
 
struct  ap_LINK_watchdog_exit_t
 
struct  ap_LINK_watchdog_step_t
 

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)
 
typedef apr_status_t() apr_OFN_ap_watchdog_get_instance_t(ap_watchdog_t **watchdog, const char *name, int parent, int singleton, apr_pool_t *p)
 
typedef apr_status_t() apr_OFN_ap_watchdog_register_callback_t(ap_watchdog_t *watchdog, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
 
typedef apr_status_t() apr_OFN_ap_watchdog_set_callback_interval_t(ap_watchdog_t *w, apr_interval_time_t interval, const void *data, ap_watchdog_callback_fn_t *callback)
 
typedef int ap_HOOK_watchdog_need_t(server_rec *s, const char *name, int parent, int singleton)
 
typedef struct ap_LINK_watchdog_need_t ap_LINK_watchdog_need_t
 
typedef int ap_HOOK_watchdog_init_t(server_rec *s, const char *name, apr_pool_t *pool)
 
typedef struct ap_LINK_watchdog_init_t ap_LINK_watchdog_init_t
 
typedef int ap_HOOK_watchdog_exit_t(server_rec *s, const char *name, apr_pool_t *pool)
 
typedef struct ap_LINK_watchdog_exit_t ap_LINK_watchdog_exit_t
 
typedef int ap_HOOK_watchdog_step_t(server_rec *s, const char *name, apr_pool_t *pool)
 
typedef struct ap_LINK_watchdog_step_t ap_LINK_watchdog_step_t
 

Functions

void ap_hook_watchdog_need (ap_HOOK_watchdog_need_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_watchdog_need (server_rec *s, const char *name, int parent, int singleton)
 
apr_array_header_tap_hook_get_watchdog_need (void)
 
void ap_hook_watchdog_init (ap_HOOK_watchdog_init_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_watchdog_init (server_rec *s, const char *name, apr_pool_t *pool)
 
apr_array_header_tap_hook_get_watchdog_init (void)
 
void ap_hook_watchdog_exit (ap_HOOK_watchdog_exit_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_watchdog_exit (server_rec *s, const char *name, apr_pool_t *pool)
 
apr_array_header_tap_hook_get_watchdog_exit (void)
 
void ap_hook_watchdog_step (ap_HOOK_watchdog_step_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_watchdog_step (server_rec *s, const char *name, apr_pool_t *pool)
 
apr_array_header_tap_hook_get_watchdog_step (void)
 

Detailed Description

Watchdog module for Apache.

Definition in file mod_watchdog.h.