source: mod_gnutls/src/gnutls_watchdog.h @ 4aa63a4

debian/masterproxy-ticket
Last change on this file since 4aa63a4 was 4aa63a4, checked in by Fiona Klute <fiona.klute@…>, 2 years ago

Infrastructure for mod_watchdog support

Asynchronous OCSP cache updates require some kind of timed callbacks
outside of the request handling context. The watchdog module provides
this, is included in HTTPD builds by default, and the documentation
does not mention any restrictions regarding supported MPMs.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  Copyright 2018 Fiona Klute
3 *
4 *  Licensed under the Apache License, Version 2.0 (the "License");
5 *  you may not use this file except in compliance with the License.
6 *  You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *  Unless required by applicable law or agreed to in writing, software
11 *  distributed under the License is distributed on an "AS IS" BASIS,
12 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 *  See the License for the specific language governing permissions and
14 *  limitations under the License.
15 */
16
17#ifndef __MOD_GNUTLS_WATCHDOG_H__
18#define __MOD_GNUTLS_WATCHDOG_H__
19
20#include <httpd.h>
21#include <mod_watchdog.h>
22
23/**
24 * Watchdog object including functions
25 */
26struct mgs_watchdog {
27    APR_OPTIONAL_FN_TYPE(ap_watchdog_get_instance) *get_instance;
28    APR_OPTIONAL_FN_TYPE(ap_watchdog_register_callback) *register_callback;
29    APR_OPTIONAL_FN_TYPE(ap_watchdog_set_callback_interval) *set_callback_interval;
30    ap_watchdog_t *wd;
31};
32
33struct mgs_watchdog* mgs_new_singleton_watchdog(server_rec *s, char *name,
34                                                apr_pool_t *p);
35
36#endif /* __MOD_GNUTLS_WATCHDOG_H__ */
Note: See TracBrowser for help on using the repository browser.