xref: /illumos-gate/usr/src/lib/libzfs_jni/common/libzfs_jni_main.h (revision 69a119caa6570c7077699161b7c28b6ee9f8b0f4)
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/OPENSOLARIS.LICENSE
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/OPENSOLARIS.LICENSE.
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 2007 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _ZLIBZFS_JNI_MAIN_H
28 #define	_ZLIBZFS_JNI_MAIN_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <jni.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  * Class:     com_sun_zfs_common_model_SystemDataModel
40  * Method:    getImportablePools
41  * Signature: ([Ljava/lang/String;)[Ljava/lang/String;
42  */
43 JNIEXPORT jobjectArray JNICALL
44 Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools(
45     JNIEnv *, jobject, jobjectArray);
46 
47 /*
48  * Class:     com_sun_zfs_common_model_SystemDataModel
49  * Method:    getPools
50  * Signature: ()[Lcom/sun/zfs/common/model/Pool;
51  */
52 JNIEXPORT jobjectArray JNICALL
53 Java_com_sun_zfs_common_model_SystemDataModel_getPools(
54     JNIEnv *, jobject);
55 
56 /*
57  * Class:     com_sun_zfs_common_model_SystemDataModel
58  * Method:    getPool
59  * Signature: (Ljava/lang/String;)
60  *            Lcom/sun/zfs/common/model/Pool;
61  */
62 JNIEXPORT jobject JNICALL
63 Java_com_sun_zfs_common_model_SystemDataModel_getPool(
64     JNIEnv *, jobject, jstring);
65 
66 /*
67  * Class:     com_sun_zfs_common_model_SystemDataModel
68  * Method:    getFileSystems
69  * Signature: (Ljava/lang/String;)
70  *            [Lcom/sun/zfs/common/model/FileSystem;
71  */
72 JNIEXPORT jobjectArray JNICALL
73 Java_com_sun_zfs_common_model_SystemDataModel_getFileSystems(
74     JNIEnv *, jobject, jstring);
75 
76 /*
77  * Class:     com_sun_zfs_common_model_SystemDataModel
78  * Method:    getFileSystem
79  * Signature: (Ljava/lang/String;)
80  *            Lcom/sun/zfs/common/model/FileSystem;
81  */
82 JNIEXPORT jobject JNICALL
83 Java_com_sun_zfs_common_model_SystemDataModel_getFileSystem(
84     JNIEnv *, jobject, jstring);
85 
86 /*
87  * Class:     com_sun_zfs_common_model_SystemDataModel
88  * Method:    getVolumes
89  * Signature: (Ljava/lang/String;)
90  *            [Lcom/sun/zfs/common/model/Volume;
91  */
92 JNIEXPORT jobjectArray JNICALL
93 Java_com_sun_zfs_common_model_SystemDataModel_getVolumes(
94     JNIEnv *, jobject, jstring);
95 
96 /*
97  * Class:     com_sun_zfs_common_model_SystemDataModel
98  * Method:    getVolume
99  * Signature: (Ljava/lang/String;)
100  *            Lcom/sun/zfs/common/model/Volume;
101  */
102 JNIEXPORT jobject JNICALL
103 Java_com_sun_zfs_common_model_SystemDataModel_getVolume(
104     JNIEnv *, jobject, jstring);
105 
106 /*
107  * Class:     com_sun_zfs_common_model_SystemDataModel
108  * Method:    getSnapshots
109  * Signature: (Ljava/lang/String;)
110  *            [Lcom/sun/zfs/common/model/Snapshot;
111  */
112 JNIEXPORT jobjectArray JNICALL
113 Java_com_sun_zfs_common_model_SystemDataModel_getSnapshots(
114     JNIEnv *, jobject, jstring);
115 
116 /*
117  * Class:     com_sun_zfs_common_model_SystemDataModel
118  * Method:    getSnapshot
119  * Signature: (Ljava/lang/String;)
120  *            Lcom/sun/zfs/common/model/Snapshot;
121  */
122 JNIEXPORT jobject JNICALL
123 Java_com_sun_zfs_common_model_SystemDataModel_getSnapshot(
124     JNIEnv *, jobject, jstring);
125 
126 /*
127  * Class:     com_sun_zfs_common_model_SystemDataModel
128  * Method:    getDatasets
129  * Signature: (Ljava/lang/String;)
130  *            [Lcom/sun/zfs/common/model/Dataset;
131  */
132 JNIEXPORT jobjectArray JNICALL
133 Java_com_sun_zfs_common_model_SystemDataModel_getDatasets(
134     JNIEnv *, jobject, jstring);
135 
136 /*
137  * Class:     com_sun_zfs_common_model_SystemDataModel
138  * Method:    getDataset
139  * Signature: (Ljava/lang/String;)
140  *            Lcom/sun/zfs/common/model/Dataset;
141  */
142 JNIEXPORT jobject JNICALL
143 Java_com_sun_zfs_common_model_SystemDataModel_getDataset(
144     JNIEnv *, jobject, jstring);
145 
146 /*
147  * Class:     com_sun_zfs_common_model_SystemDataModel
148  * Method:    getVirtualDevice
149  * Signature: (Ljava/lang/String;J)Lcom/sun/zfs/common/model/VirtualDevice;
150  */
151 JNIEXPORT jobject JNICALL
152 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevice(
153     JNIEnv *, jobject, jstring, jlong);
154 
155 /*
156  * Class:     com_sun_zfs_common_model_SystemDataModel
157  * Method:    getVirtualDevices
158  * Signature: (Ljava/lang/String;)
159  *            [Lcom/sun/zfs/common/model/VirtualDevice;
160  */
161 JNIEXPORT jobjectArray JNICALL
162 /* CSTYLED */
163 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2(
164     JNIEnv *, jobject, jstring);
165 
166 /*
167  * Class:     com_sun_zfs_common_model_SystemDataModel
168  * Method:    getVirtualDevices
169  * Signature: (Ljava/lang/String;J)[Lcom/sun/zfs/common/model/VirtualDevice;
170  */
171 JNIEXPORT jobjectArray JNICALL
172 /* CSTYLED */
173 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2J(
174     JNIEnv *, jobject, jstring, jlong);
175 
176 /*
177  * Class:     com_sun_zfs_common_model_SystemDataModel
178  * Method:    getAvailableDisks
179  * Signature: ()[Lcom/sun/zfs/common/model/DiskDevice;
180  */
181 JNIEXPORT jobjectArray JNICALL
182 Java_com_sun_zfs_common_model_SystemDataModel_getAvailableDisks(
183     JNIEnv *, jobject);
184 
185 /*
186  * Class:     com_sun_zfs_common_model_SystemDataModel
187  * Method:    getDependents
188  * Signature: ([Ljava/lang/String;)
189  *            [Lcom/sun/zfs/common/model/Dataset;
190  */
191 JNIEXPORT jobjectArray JNICALL
192 Java_com_sun_zfs_common_model_SystemDataModel_getDependents(
193     JNIEnv *, jobject, jobjectArray);
194 
195 /*
196  * Class:     com_sun_zfs_common_model_SystemDataModel
197  * Method:    getPropertyDefault
198  * Signature: (Ljava/lang/String;)
199  *            Lcom/sun/zfs/common/model/Property;
200  */
201 JNIEXPORT jobject JNICALL
202 Java_com_sun_zfs_common_model_SystemDataModel_getPropertyDefault(
203     JNIEnv *, jobject, jstring);
204 
205 /*
206  * Class:     com_sun_zfs_common_model_SystemDataModel
207  * Method:    getValidPropertyNames
208  * Signature: (Ljava/lang/Class;)
209  *            [Ljava/lang/String;
210  */
211 JNIEXPORT jobjectArray JNICALL
212 Java_com_sun_zfs_common_model_SystemDataModel_getValidPropertyNames(
213     JNIEnv *, jobject, jclass);
214 
215 /*
216  * Class:     com_sun_zfs_common_model_SystemDataModel
217  * Method:    getPoolCurrentVersion
218  * Signature: ()J
219  *
220  */
221 JNIEXPORT jlong JNICALL
222 Java_com_sun_zfs_common_model_SystemDataModel_getPoolCurrentVersion(
223     JNIEnv *, jobject);
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif /* _ZLIBZFS_JNI_MAIN_H */
230