17 #ifndef MOD_WATCHDOG_H
18 #define MOD_WATCHDOG_H
57 #define AP_WATCHDOG_SINGLETON "_singleton_"
62 #define AP_WATCHDOG_DEFAULT "_default_"
67 #define AP_WD_TM_INTERVAL APR_TIME_C(1000000)
72 #define AP_WD_TM_SLICE APR_TIME_C(100000)
75 #define AP_WATCHDOG_STATE_STARTING 1
76 #define AP_WATCHDOG_STATE_RUNNING 2
77 #define AP_WATCHDOG_STATE_STOPPING 3
84 #if !defined(AP_WD_DECLARE)
86 #define AP_WD_DECLARE(type) type
87 #define AP_WD_DECLARE_NONSTD(type) type
88 #define AP_WD_DECLARE_DATA
89 #elif defined(AP_WD_DECLARE_STATIC)
90 #define AP_WD_DECLARE(type) type __stdcall
91 #define AP_WD_DECLARE_NONSTD(type) type
92 #define AP_WD_DECLARE_DATA
93 #elif defined(AP_WD_DECLARE_EXPORT)
94 #define AP_WD_DECLARE(type) __declspec(dllexport) type __stdcall
95 #define AP_WD_DECLARE_NONSTD(type) __declspec(dllexport) type
96 #define AP_WD_DECLARE_DATA __declspec(dllexport)
98 #define AP_WD_DECLARE(type) __declspec(dllimport) type __stdcall
99 #define AP_WD_DECLARE_NONSTD(type) __declspec(dllimport) type
100 #define AP_WD_DECLARE_DATA __declspec(dllimport)
169 int parent,
int singleton))
APR Platform Definitions.
APR Global Locking Routines.
APR-UTIL registration of functions exported by modules.
APR Shared Memory Routines.
APR Thread Mutex Routines.
APR Thread and Process Library.
#define APR_DECLARE_EXTERNAL_HOOK(ns, link, ret, name, args)
Definition: apr_hooks.h:118
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
const char * s
Definition: mod_dav.h:1327
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
const char * name
Definition: mod_dav.h:805
struct ap_watchdog_t ap_watchdog_t
Definition: mod_watchdog.h:79
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)
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_callback_fn_t(int state, void *data, apr_pool_t *pool)
Definition: mod_watchdog.h:111
apr_status_t ap_watchdog_get_instance(ap_watchdog_t **watchdog, const char *name, int parent, int singleton, apr_pool_t *p)
int apr_status_t
Definition: apr_errno.h:44
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_int64_t apr_interval_time_t
Definition: apr_time.h:55
A structure to store information for each virtual server.
Definition: httpd.h:1382