xref: /onnv-gate/usr/src/head/klpd.h (revision 6134:27ee74117a16)
1*6134Scasper /*
2*6134Scasper  * CDDL HEADER START
3*6134Scasper  *
4*6134Scasper  * The contents of this file are subject to the terms of the
5*6134Scasper  * Common Development and Distribution License (the "License").
6*6134Scasper  * You may not use this file except in compliance with the License.
7*6134Scasper  *
8*6134Scasper  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6134Scasper  * or http://www.opensolaris.org/os/licensing.
10*6134Scasper  * See the License for the specific language governing permissions
11*6134Scasper  * and limitations under the License.
12*6134Scasper  *
13*6134Scasper  * When distributing Covered Code, include this CDDL HEADER in each
14*6134Scasper  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6134Scasper  * If applicable, add the following below this CDDL HEADER, with the
16*6134Scasper  * fields enclosed by brackets "[]" replaced with your own identifying
17*6134Scasper  * information: Portions Copyright [yyyy] [name of copyright owner]
18*6134Scasper  *
19*6134Scasper  * CDDL HEADER END
20*6134Scasper  */
21*6134Scasper /*
22*6134Scasper  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*6134Scasper  * Use is subject to license terms.
24*6134Scasper  */
25*6134Scasper 
26*6134Scasper #ifndef	_KLPD_H
27*6134Scasper #define	_KLPD_H
28*6134Scasper 
29*6134Scasper #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*6134Scasper 
31*6134Scasper #include <sys/klpd.h>
32*6134Scasper #include <priv.h>
33*6134Scasper #include <ucred.h>
34*6134Scasper 
35*6134Scasper #ifdef	__cplusplus
36*6134Scasper extern "C" {
37*6134Scasper #endif
38*6134Scasper 
39*6134Scasper extern void *klpd_create(boolean_t (*)(void *, const priv_set_t *, void *),
40*6134Scasper     void *);
41*6134Scasper extern int klpd_register_id(const priv_set_t *, void *, idtype_t, id_t);
42*6134Scasper extern int klpd_register(const priv_set_t *, void *);
43*6134Scasper extern int klpd_unregister_id(void *, idtype_t, id_t);
44*6134Scasper extern int klpd_unregister(void *);
45*6134Scasper extern const char *klpd_getpath(void *);
46*6134Scasper extern int klpd_getport(void *, int *);
47*6134Scasper extern int klpd_getucred(ucred_t **, void *);
48*6134Scasper 
49*6134Scasper #ifdef	__cplusplus
50*6134Scasper }
51*6134Scasper #endif
52*6134Scasper 
53*6134Scasper #endif	/* _KLPD_H */
54