Merge branch 'devel/tizen' into tizen 85/32885/1 accepted/tizen/common/20150105.134502 accepted/tizen/ivi/20150113.060305 accepted/tizen/mobile/20150114.130303 accepted/tizen/tv/20150112.114033 accepted/tizen/wearable/20150112.054921 submit/tizen_common/20150102.092700 submit/tizen_ivi/20150108.111111 submit/tizen_ivi/20150108.222222 submit/tizen_ivi/20150108.333333 submit/tizen_mobile/20150109.000000 submit/tizen_mobile/20150112.000000 submit/tizen_tv/20150109.000000 submit/tizen_wearable/20150109.000000
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 30 Dec 2014 02:40:58 +0000 (11:40 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 30 Dec 2014 02:40:58 +0000 (11:40 +0900)
Change-Id: I165a75f552835b9608a7d4ea6a64a21dcca3449f

drm_slp/drm_slp_bufmgr.c
drm_slp/drm_slp_bufmgr.h
packaging/libtbm.spec

index b5ae07d..3082c23 100755 (executable)
@@ -79,17 +79,17 @@ drm_slp_bo_import(drm_slp_bufmgr bufmgr, unsigned int key)
     return (drm_slp_bo)bo;
 }
 
-unsigned int
+void *
 drm_slp_bo_map(drm_slp_bo bo, int device, int opt)
 {
     tbm_bo_handle bo_handle;
-    unsigned int ret = 0;
+    void *ret = NULL;
 
     bo_handle = tbm_bo_map ((tbm_bo)bo, device, opt);
     if (bo_handle.ptr == NULL)
     {
         TBM_LOG ("[libdrm_slp:%d]: error bo_handle is null\n", getpid());
-        return 0;
+        return NULL;
     }
 
     switch (device)
@@ -98,14 +98,14 @@ drm_slp_bo_map(drm_slp_bo bo, int device, int opt)
         case TBM_DEVICE_2D:
         case TBM_DEVICE_3D:
         case TBM_DEVICE_MM:
-            ret = (unsigned int)bo_handle.u32;
+            ret = (void *)((uintptr_t)bo_handle.u32);
             break;
         case TBM_DEVICE_CPU:
-            ret = (unsigned int)bo_handle.ptr;
+            ret = bo_handle.ptr;
             break;
         default:
             TBM_LOG ("[libdrm_slp:%d]: error wrong device type\n", getpid());
-            return 0;
+            return NULL;
     }
 
     return ret;
index 0add67a..43147f6 100644 (file)
@@ -43,7 +43,7 @@ void           drm_slp_bufmgr_destroy(drm_slp_bufmgr bufmgr);
 /*Functions for bo*/
 void         drm_slp_bo_unref(drm_slp_bo bo);
 drm_slp_bo drm_slp_bo_import(drm_slp_bufmgr bufmgr, unsigned int key);
-unsigned int drm_slp_bo_map(drm_slp_bo bo, int device, int opt);
+void *drm_slp_bo_map(drm_slp_bo bo, int device, int opt);
 int          drm_slp_bo_unmap(drm_slp_bo bo, int device);
 
 #endif /* _DRM_SLP_BUFMGR_H_ */
index e929637..4b24e36 100644 (file)
@@ -2,8 +2,8 @@
 %bcond_with wayland
 
 Name:           libtbm
-Version:        1.1.0
-Release:        3
+Version:        1.1.1
+Release:        1
 License:        MIT
 Summary:        The library for Tizen Buffer Manager
 Group:          System/Libraries