Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / object / ref-object.h
index 72b9638..553a1fe 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_REF_OBJECT_H__
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,9 @@
  */
 
 // EXTERNAL INCLUDES
+#include <cstdint> // uint32_t
+
+// INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/common/intrusive-ptr.h>
 
@@ -38,7 +41,7 @@ class Value;
  * instead of calling Reference() and Unreference() methods directly.
  * @SINCE_1_0.0
  */
-class DALI_IMPORT_API RefObject
+class DALI_CORE_API RefObject
 {
 public:
 
@@ -62,7 +65,7 @@ public:
    * @SINCE_1_0.0
    * @return The reference count
    */
-  int ReferenceCount();
+  uint32_t ReferenceCount();
 
 protected:
 
@@ -101,7 +104,7 @@ protected:
 
 private:
 
-  volatile int mCount; ///< Reference count
+  volatile uint32_t mCount; ///< Reference count
 };
 
 /**