Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22fb2ffc authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

Fix documentation for AHardwareBuffer_(to|from)HardwareBuffer.

These functions were not showing up in the NDK documentation due to
missing Doxygen commands.

Bug: https://github.com/android-ndk/ndk/issues/706
Bug: 132738639
Test: N/A, documentation-only fix
Change-Id: I329f79da251e62b5f4f05feb7ce837c728e2cb32
parent 0e7098cf
Loading
Loading
Loading
Loading
+16 −8
Original line number Original line Diff line number Diff line
@@ -14,8 +14,14 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


/**
 * @addtogroup AHardwareBuffer
 * @{
 */

/**
/**
 * @file hardware_buffer_jni.h
 * @file hardware_buffer_jni.h
 * @brief JNI glue for native hardware buffers.
 */
 */


#ifndef ANDROID_HARDWARE_BUFFER_JNI_H
#ifndef ANDROID_HARDWARE_BUFFER_JNI_H
@@ -30,23 +36,25 @@
__BEGIN_DECLS
__BEGIN_DECLS


/**
/**
 * Return the AHardwareBuffer associated with a Java HardwareBuffer object,
 * Return the AHardwareBuffer wrapped by a Java HardwareBuffer object.
 * for interacting with it through native code. This method does not acquire any
 *
 * additional reference to the AHardwareBuffer that is returned. To keep the
 * This method does not acquire any additional reference to the AHardwareBuffer
 * AHardwareBuffer live after the Java HardwareBuffer object got garbage
 * that is returned. To keep the AHardwareBuffer live after the Java
 * collected, be sure to use AHardwareBuffer_acquire() to acquire an additional
 * HardwareBuffer object got garbage collected, be sure to use AHardwareBuffer_acquire()
 * reference.
 * to acquire an additional reference.
 */
 */
AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer(JNIEnv* env,
AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer(JNIEnv* env,
        jobject hardwareBufferObj);
        jobject hardwareBufferObj) __INTRODUCED_IN(26);


/**
/**
 * Return a new Java HardwareBuffer object that wraps the passed native
 * Return a new Java HardwareBuffer object that wraps the passed native
 * AHardwareBuffer object.
 * AHardwareBuffer object.
 */
 */
jobject AHardwareBuffer_toHardwareBuffer(JNIEnv* env,
jobject AHardwareBuffer_toHardwareBuffer(JNIEnv* env,
        AHardwareBuffer* hardwareBuffer);
        AHardwareBuffer* hardwareBuffer) __INTRODUCED_IN(26);


__END_DECLS
__END_DECLS


#endif // ANDROID_HARDWARE_BUFFER_JNI_H
#endif // ANDROID_HARDWARE_BUFFER_JNI_H

/** @} */