bo: use magic number for checking valid of bo
[platform/core/uifw/libtbm.git] / src / tbm_bufmgr_int.h
index da0997d..f4e6e28 100644 (file)
@@ -167,6 +167,7 @@ struct list_head {
  * @brief tbm_bo : buffer object of Tizen Buffer Manager
  */
 struct _tbm_bo {
+       unsigned int magic;              /* tbm bo magic number */
        tbm_bufmgr bufmgr;               /* tbm buffer manager */
        int ref_cnt;                     /* ref count of bo */
        int flags;                       /* TBM_BO_FLAGS :bo memory type */