1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the License). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/CDDL.txt 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/CDDL.txt. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets [] replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _APACHE_COMMON_H 28 #define _APACHE_COMMON_H 29 30 #pragma ident "@(#)apache.h 1.31 07/06/06 SMI" 31 32 #include <rgm/libdsdev.h> 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 /* Debug levels for error messages */ 39 #define DBG_LEVEL_HIGH 9 40 #define DBG_LEVEL_MED 5 41 #define DBG_LEVEL_LOW 1 42 43 #define SCDS_CMD_SIZE (8*1024) 44 45 #define SCDS_ARRAY_SIZE 1024 46 47 /* 48 * Application name defined for use in scds_syslog messages. 49 * Using this allows identical messages to be defined in more 50 * than one data service, hashing to one message explanation. 51 */ 52 #define APP_NAME "Apache Web Server" 53 54 typedef enum {ST_ERROR = -1, REGULAR, MOD_SSL, APACHE_SSL} server_type; 55 56 57 int svc_validate(scds_handle_t scds_handle, boolean_t print_messages); 58 59 int svc_start(scds_handle_t scds_handle); 60 61 int svc_stop(scds_handle_t scds_handle); 62 63 int svc_wait(scds_handle_t scds_handle); 64 65 int mon_start(scds_handle_t scds_handle); 66 67 int mon_stop(scds_handle_t scds_handle); 68 69 int svc_probe(scds_handle_t scds_handle, char *hostname, 70 int port, int timeout, boolean_t arg_syslog_msgs); 71 72 server_type webserver_type(scds_handle_t scds_handle); 73 74 int probe_uri(scds_handle_t scds_handle, char *uri, int timeout, 75 boolean_t log_messages); 76 77 #ifdef __cplusplus 78 } 79 #endif 80 81 #endif /* _APACHE_COMMON_H */ 82