Use modern construct 'using' instead of typedef.
[platform/core/uifw/dali-core.git] / dali / devel-api / object / csharp-type-info.h
index 49472f1..3d147f7 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_CSHARP_TYPE_INFO_H__
-#define __DALI_CSHARP_TYPE_INFO_H__
+#ifndef DALI_CSHARP_TYPE_INFO_H
+#define DALI_CSHARP_TYPE_INFO_H
 
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
@@ -34,9 +34,9 @@ namespace CSharpTypeInfo
    * @param[in] typeName The type name of the object to be created.
    * @return Pointer to a BaseHandle
    */
-  typedef BaseHandle* (*CreateFunction)(const char* const typeName);
+using CreateFunction = BaseHandle *(*)( const char *const );
 
-  /**
+/**
    * @brief Callback to set an event-thread only property.
    *
    * @param[in] object The object whose property should be set.
@@ -44,10 +44,9 @@ namespace CSharpTypeInfo
    * @param[in] value The new value of the property for the object specified.
    * @see PropertyRegistration.
    */
-  typedef void (*SetPropertyFunction)( BaseObject* object, const char* const propertyName , Property::Value* value );
-
+using SetPropertyFunction = void ( * )( BaseObject *, const char *const, Property::Value * );
 
-  /**
+/**
    * @brief Callback to get the value of an event-thread only property.
    *
    * @param[in] object The object whose property value is required.
@@ -55,10 +54,10 @@ namespace CSharpTypeInfo
    * @return The current value of the property for the object specified.
    * @see PropertyRegistration.
    */
-  typedef Property::Value* (*GetPropertyFunction)( BaseObject* object, const char* const propertyName );
+using GetPropertyFunction = Property::Value *(*)( BaseObject *, const char *const );
 }
 
 
 } // namespace Dali
 
-#endif // __DALI_CSHARP_INFO_H__
+#endif // DALI_CSHARP_TYPE_INFO_H