Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 17 | #pragma once |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 18 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 19 | #include <sys/cdefs.h> |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 20 | |
Orion Hodson | e77ecef | 2020-06-02 12:18:23 +0100 | [diff] [blame] | 21 | #include <jni.h> |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 22 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 23 | __BEGIN_DECLS |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 24 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 25 | // |
| 26 | // Classes in constants cache. |
| 27 | // |
| 28 | // NB The implementations of these methods are generated by the JCLASS_ACCESSOR_IMPL macro in |
| 29 | // JniConstants.c. |
| 30 | // |
| 31 | jclass JniConstants_FileDescriptorClass(JNIEnv* env); |
| 32 | jclass JniConstants_NIOAccessClass(JNIEnv* env); |
| 33 | jclass JniConstants_NioBufferClass(JNIEnv* env); |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 34 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 35 | // |
| 36 | // Methods in the constants cache. |
| 37 | // |
| 38 | // NB The implementations of these methods are generated by the JMETHODID_ACCESSOR_IMPL macro in |
| 39 | // JniConstants.c. |
| 40 | // |
| 41 | jmethodID JniConstants_FileDescriptor_init(JNIEnv* env); |
| 42 | jmethodID JniConstants_NIOAccess_getBaseArray(JNIEnv* env); |
| 43 | jmethodID JniConstants_NIOAccess_getBaseArrayOffset(JNIEnv* env); |
| 44 | jmethodID JniConstants_NioBuffer_array(JNIEnv* env); |
| 45 | jmethodID JniConstants_NioBuffer_arrayOffset(JNIEnv* env); |
Orion Hodson | aadb373 | 2018-11-21 12:58:34 +0000 | [diff] [blame] | 46 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 47 | // |
| 48 | // Fields in the constants cache. |
| 49 | // |
| 50 | // NB The implementations of these methods are generated by the JFIELDID_ACCESSOR_IMPL macro in |
| 51 | // JniConstants.c. |
| 52 | // |
| 53 | jfieldID JniConstants_FileDescriptor_descriptor(JNIEnv* env); |
| 54 | jfieldID JniConstants_NioBuffer_address(JNIEnv* env); |
| 55 | jfieldID JniConstants_NioBuffer__elementSizeShift(JNIEnv* env); |
| 56 | jfieldID JniConstants_NioBuffer_limit(JNIEnv* env); |
| 57 | jfieldID JniConstants_NioBuffer_position(JNIEnv* env); |
Orion Hodson | bcc2b6f | 2019-02-22 16:41:10 +0000 | [diff] [blame] | 58 | |
Orion Hodson | 962ee00 | 2020-04-19 09:45:28 +0100 | [diff] [blame] | 59 | __END_DECLS |