xref: /onnv-gate/usr/src/lib/libzfs_jni/common/libzfs_jni_property.h (revision 5094:71a3e95fb9e2)
1789Sahrens /*
2789Sahrens  * CDDL HEADER START
3789Sahrens  *
4789Sahrens  * The contents of this file are subject to the terms of the
51499Stalley  * Common Development and Distribution License (the "License").
61499Stalley  * You may not use this file except in compliance with the License.
7789Sahrens  *
8789Sahrens  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9789Sahrens  * or http://www.opensolaris.org/os/licensing.
10789Sahrens  * See the License for the specific language governing permissions
11789Sahrens  * and limitations under the License.
12789Sahrens  *
13789Sahrens  * When distributing Covered Code, include this CDDL HEADER in each
14789Sahrens  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15789Sahrens  * If applicable, add the following below this CDDL HEADER, with the
16789Sahrens  * fields enclosed by brackets "[]" replaced with your own identifying
17789Sahrens  * information: Portions Copyright [yyyy] [name of copyright owner]
18789Sahrens  *
19789Sahrens  * CDDL HEADER END
20789Sahrens  */
211499Stalley 
22789Sahrens /*
23*5094Slling  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24789Sahrens  * Use is subject to license terms.
25789Sahrens  */
26789Sahrens 
27789Sahrens #ifndef _LIBZFS_JNI_PROPERTY_H
28789Sahrens #define	_LIBZFS_JNI_PROPERTY_H
29789Sahrens 
30789Sahrens #pragma ident	"%Z%%M%	%I%	%E% SMI"
31789Sahrens 
321499Stalley #include <jni.h>
331499Stalley #include <libzfs.h>
341499Stalley 
35789Sahrens #ifdef __cplusplus
36789Sahrens extern "C" {
37789Sahrens #endif
38789Sahrens 
39789Sahrens /*
40789Sahrens  * Function prototypes
41789Sahrens  */
42789Sahrens 
43789Sahrens jobject zjni_get_default_property(JNIEnv *, zfs_prop_t);
44*5094Slling jobject zjni_int_to_Lineage(JNIEnv *, zprop_source_t);
45789Sahrens jobjectArray zjni_get_Dataset_properties(JNIEnv *, zfs_handle_t *);
46789Sahrens zfs_prop_t zjni_get_property_from_name(const char *);
47789Sahrens 
48789Sahrens #ifdef __cplusplus
49789Sahrens }
50789Sahrens #endif
51789Sahrens 
52789Sahrens #endif /* _LIBZFS_JNI_PROPERTY_H */
53