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