xref: /illumos-gate/usr/src/lib/libzfs_jni/common/libzfs_jni_main.h (revision 7f7322febbcfe774b7270abc3b191c094bfcc517)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 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 /* Header for class com_sun_zfs_common_model_SystemDataModel */
34 
35 #ifndef _Included_com_sun_zfs_common_model_SystemDataModel
36 #define	_Included_com_sun_zfs_common_model_SystemDataModel
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /*
43  * Class:     com_sun_zfs_common_model_SystemDataModel
44  * Method:    getImportablePools
45  * Signature: ([Ljava/lang/String;)[Ljava/lang/String;
46  */
47 JNIEXPORT jobjectArray JNICALL
48 Java_com_sun_zfs_common_model_SystemDataModel_getImportablePools(
49     JNIEnv *, jobject, jobjectArray);
50 
51 /*
52  * Class:     com_sun_zfs_common_model_SystemDataModel
53  * Method:    getPools
54  * Signature: ()[Lcom/sun/zfs/common/model/Pool;
55  */
56 JNIEXPORT jobjectArray JNICALL
57 Java_com_sun_zfs_common_model_SystemDataModel_getPools(
58     JNIEnv *, jobject);
59 
60 /*
61  * Class:     com_sun_zfs_common_model_SystemDataModel
62  * Method:    getPool
63  * Signature: (Ljava/lang/String;)
64  *            Lcom/sun/zfs/common/model/Pool;
65  */
66 JNIEXPORT jobject JNICALL
67 Java_com_sun_zfs_common_model_SystemDataModel_getPool(
68     JNIEnv *, jobject, jstring);
69 
70 /*
71  * Class:     com_sun_zfs_common_model_SystemDataModel
72  * Method:    getFileSystems
73  * Signature: (Ljava/lang/String;)
74  *            [Lcom/sun/zfs/common/model/FileSystem;
75  */
76 JNIEXPORT jobjectArray JNICALL
77 Java_com_sun_zfs_common_model_SystemDataModel_getFileSystems(
78     JNIEnv *, jobject, jstring);
79 
80 /*
81  * Class:     com_sun_zfs_common_model_SystemDataModel
82  * Method:    getFileSystem
83  * Signature: (Ljava/lang/String;)
84  *            Lcom/sun/zfs/common/model/FileSystem;
85  */
86 JNIEXPORT jobject JNICALL
87 Java_com_sun_zfs_common_model_SystemDataModel_getFileSystem(
88     JNIEnv *, jobject, jstring);
89 
90 /*
91  * Class:     com_sun_zfs_common_model_SystemDataModel
92  * Method:    getVolumes
93  * Signature: (Ljava/lang/String;)
94  *            [Lcom/sun/zfs/common/model/Volume;
95  */
96 JNIEXPORT jobjectArray JNICALL
97 Java_com_sun_zfs_common_model_SystemDataModel_getVolumes(
98     JNIEnv *, jobject, jstring);
99 
100 /*
101  * Class:     com_sun_zfs_common_model_SystemDataModel
102  * Method:    getVolume
103  * Signature: (Ljava/lang/String;)
104  *            Lcom/sun/zfs/common/model/Volume;
105  */
106 JNIEXPORT jobject JNICALL
107 Java_com_sun_zfs_common_model_SystemDataModel_getVolume(
108     JNIEnv *, jobject, jstring);
109 
110 /*
111  * Class:     com_sun_zfs_common_model_SystemDataModel
112  * Method:    getSnapshots
113  * Signature: (Ljava/lang/String;)
114  *            [Lcom/sun/zfs/common/model/Snapshot;
115  */
116 JNIEXPORT jobjectArray JNICALL
117 Java_com_sun_zfs_common_model_SystemDataModel_getSnapshots(
118     JNIEnv *, jobject, jstring);
119 
120 /*
121  * Class:     com_sun_zfs_common_model_SystemDataModel
122  * Method:    getSnapshot
123  * Signature: (Ljava/lang/String;)
124  *            Lcom/sun/zfs/common/model/Snapshot;
125  */
126 JNIEXPORT jobject JNICALL
127 Java_com_sun_zfs_common_model_SystemDataModel_getSnapshot(
128     JNIEnv *, jobject, jstring);
129 
130 /*
131  * Class:     com_sun_zfs_common_model_SystemDataModel
132  * Method:    getDatasets
133  * Signature: (Ljava/lang/String;)
134  *            [Lcom/sun/zfs/common/model/Dataset;
135  */
136 JNIEXPORT jobjectArray JNICALL
137 Java_com_sun_zfs_common_model_SystemDataModel_getDatasets(
138     JNIEnv *, jobject, jstring);
139 
140 /*
141  * Class:     com_sun_zfs_common_model_SystemDataModel
142  * Method:    getDataset
143  * Signature: (Ljava/lang/String;)
144  *            Lcom/sun/zfs/common/model/Dataset;
145  */
146 JNIEXPORT jobject JNICALL
147 Java_com_sun_zfs_common_model_SystemDataModel_getDataset(
148     JNIEnv *, jobject, jstring);
149 
150 /*
151  * Class:     com_sun_zfs_common_model_SystemDataModel
152  * Method:    getVirtualDevice
153  * Signature: (Ljava/lang/String;J)Lcom/sun/zfs/common/model/VirtualDevice;
154  */
155 JNIEXPORT jobject JNICALL
156 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevice(
157     JNIEnv *, jobject, jstring, jlong);
158 
159 /*
160  * Class:     com_sun_zfs_common_model_SystemDataModel
161  * Method:    getVirtualDevices
162  * Signature: (Ljava/lang/String;)
163  *            [Lcom/sun/zfs/common/model/VirtualDevice;
164  */
165 JNIEXPORT jobjectArray JNICALL
166 /* CSTYLED */
167 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2(
168     JNIEnv *, jobject, jstring);
169 
170 /*
171  * Class:     com_sun_zfs_common_model_SystemDataModel
172  * Method:    getVirtualDevices
173  * Signature: (Ljava/lang/String;J)[Lcom/sun/zfs/common/model/VirtualDevice;
174  */
175 JNIEXPORT jobjectArray JNICALL
176 /* CSTYLED */
177 Java_com_sun_zfs_common_model_SystemDataModel_getVirtualDevices__Ljava_lang_String_2J(
178     JNIEnv *, jobject, jstring, jlong);
179 
180 /*
181  * Class:     com_sun_zfs_common_model_SystemDataModel
182  * Method:    getAvailableDisks
183  * Signature: ()[Lcom/sun/zfs/common/model/DiskDevice;
184  */
185 JNIEXPORT jobjectArray JNICALL
186 Java_com_sun_zfs_common_model_SystemDataModel_getAvailableDisks(
187     JNIEnv *, jobject);
188 
189 /*
190  * Class:     com_sun_zfs_common_model_SystemDataModel
191  * Method:    getDependents
192  * Signature: ([Ljava/lang/String;)
193  *            [Lcom/sun/zfs/common/model/Dataset;
194  */
195 JNIEXPORT jobjectArray JNICALL
196 Java_com_sun_zfs_common_model_SystemDataModel_getDependents(
197     JNIEnv *, jobject, jobjectArray);
198 
199 /*
200  * Class:     com_sun_zfs_common_model_SystemDataModel
201  * Method:    getPropertyDefault
202  * Signature: (Ljava/lang/String;)
203  *            Lcom/sun/zfs/common/model/Property;
204  */
205 JNIEXPORT jobject JNICALL
206 Java_com_sun_zfs_common_model_SystemDataModel_getPropertyDefault(
207     JNIEnv *, jobject, jstring);
208 
209 /*
210  * Class:     com_sun_zfs_common_model_SystemDataModel
211  * Method:    getValidPropertyNames
212  * Signature: (Ljava/lang/Class;)
213  *            [Ljava/lang/String;
214  */
215 JNIEXPORT jobjectArray JNICALL
216 Java_com_sun_zfs_common_model_SystemDataModel_getValidPropertyNames(
217     JNIEnv *, jobject, jclass);
218 
219 #ifdef __cplusplus
220 }
221 #endif
222 #endif
223 
224 #endif /* _ZLIBZFS_JNI_MAIN_H */
225