return NULL;
}
+int
+tbm_bufmgr_internal_support_capabilites(tbm_bufmgr bufmgr, int capabilities)
+{
+ TBM_BUFMGR_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(bufmgr), 0);
+ TBM_BUFMGR_RETURN_VAL_IF_FAIL(capabilities > 0, 0);
+
+ _tbm_bufmgr_mutex_lock();
+
+ // check if the bufmgr does not support capabilities at the same time.
+ if (!(bufmgr->capabilities & capabilities)) {
+ _tbm_set_last_result(TBM_ERROR_NOT_SUPPORTED);
+ _tbm_bufmgr_mutex_unlock();
+ return 0;
+ }
+
+ _tbm_set_last_result(TBM_ERROR_NONE);
+ _tbm_bufmgr_mutex_unlock();
+
+ return 1;
+}
+
/* LCOV_EXCL_STOP */
tbm_bo tbm_bufmgr_internal_alloc_bo_with_bo_data(tbm_bufmgr bufmgr, tbm_bo_data *bo_data, int flags, tbm_error_e *error);
tbm_bo tbm_bufmgr_internal_import_bo_with_key(tbm_bufmgr bufmgr, tbm_key key);
tbm_bo tbm_bufmgr_internal_import_bo_with_fd(tbm_bufmgr bufmgr, tbm_fd fd);
+int tbm_bufmgr_internal_support_capabilites(tbm_bufmgr bufmgr, int capabilities);
#endif /* _TBM_BUFMGR_INT_H_ */