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