From b31c41a9745cbcd4656eacaae44920f8e5b7012b Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Thu, 6 Aug 2015 17:30:20 +0900 Subject: [PATCH] Added remarks for fd Change-Id: Ibedce273256d35eb250fee21cc2f51cb9e55b27e --- src/tbm_bufmgr.h | 4 +++- src/tbm_bufmgr_backend.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tbm_bufmgr.h b/src/tbm_bufmgr.h index f0f6ae9..0191d9d 100644 --- a/src/tbm_bufmgr.h +++ b/src/tbm_bufmgr.h @@ -512,6 +512,7 @@ tbm_key tbm_bo_export (tbm_bo bo); * @brief Exports the buffer object by fd. * @details The tbm_bo can be exported to the anther process with the unique fd associated with the the tbm_bo. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @remarks You must release the fd using close(). * @param[in] bo : the buffer object * @return fd associated with the buffer object * @retval #tbm_fd @@ -584,8 +585,9 @@ tbm_bo tbm_bo_import (tbm_bufmgr bufmgr, tbm_key key); * @brief Imports the buffer object associated with the fd. * @details The reference count of the tbm_bo is 1. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @remarks You must release the fd using close(). * @param[in] bufmgr : the buffer manager - * @param[in] fd : the fd associated with the buffer object + * @parak[in] fd : the fd associated with the buffer object * @return a buffer object * @retval #tbm_bo * @see tbm_bo_export_fd() diff --git a/src/tbm_bufmgr_backend.h b/src/tbm_bufmgr_backend.h index 6e67133..ef10e9d 100644 --- a/src/tbm_bufmgr_backend.h +++ b/src/tbm_bufmgr_backend.h @@ -238,6 +238,7 @@ struct _tbm_bufmgr_backend /** * @brief import the buffer object associated with the prime fd. + * @remarks tbm_fd must be free by user. * @param[in] bo : the buffer object * @param[in] fd : the prime fd associated with the buffer object * @return pointer of the bo private. @@ -246,6 +247,7 @@ struct _tbm_bufmgr_backend /** * @brief export the buffer object + * @remarks tbm_fd must be free by user. * @param[in] bo : the buffer object * @return tbm_fd associated with the buffer object */ -- 2.7.4