Home | History | Annotate | Download | only in dns
      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-2002 Sun Microsystems, Inc.  All rights reserved.
     24  * Use is subject to license terms.
     25  */
     26 
     27 #ifndef	_DNS_COMMON_H
     28 #define	_DNS_COMMON_H
     29 
     30 #pragma ident	"@(#)dns.h	1.12	07/06/06 SMI"
     31 
     32 #include <unistd.h>
     33 #include <stdio.h>
     34 #include <stdlib.h>
     35 #include <rgm/libdsdev.h>
     36 
     37 #ifdef __cplusplus
     38 extern "C" {
     39 #endif
     40 
     41 /*
     42  * Application name defined for use in scds_syslog messages.
     43  * Using this allows identical messages to be defined in more
     44  * than one data service, hashing to one message explanation.
     45  */
     46 #define	APP_NAME "DNS Server"
     47 
     48 #define	DNS_BINARY "/usr/sbin/in.named"
     49 
     50 #define	 DNS_MODE_USED	"DNS_MODE"
     51 #define	DEFAULT_MODE	"conf"
     52 
     53 #define	SCDS_ARRAY_SIZE	1024
     54 
     55 /* Debug levels for error messages */
     56 #define	DBG_LEVEL_HIGH		9
     57 #define	DBG_LEVEL_MED		5
     58 #define	DBG_LEVEL_LOW		1
     59 
     60 int svc_validate(scds_handle_t handle,
     61 	char *mode, boolean_t print_messages);
     62 
     63 int svc_start(scds_handle_t handle,
     64 	char *mode);
     65 
     66 int svc_stop(scds_handle_t handle);
     67 
     68 int svc_fm_start(scds_handle_t handle);
     69 
     70 int svc_fm_stop(scds_handle_t handle);
     71 
     72 int svc_probe(scds_handle_t handle, boolean_t arg_syslog_msgs);
     73 
     74 int svc_wait(scds_handle_t handle);
     75 
     76 #ifdef	__cplusplus
     77 }
     78 #endif
     79 
     80 #endif /* _DNS_COMMON_H */
     81