-#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) 2020 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.
namespace CSharpTypeInfo
{
- typedef BaseHandle* (*CreateFunction)(); ///< Function signature for creating an instance of the associated object type
-
- /**
- * @brief Callback to set an event-thread only property.
- *
- * @param[in] object The object whose property should be set.
- * @param[in] index The index of the property being set.
- * @param[in] value The new value of the property for the object specified.
- * @see PropertyRegistration.
- */
- typedef void (*SetPropertyFunction)( BaseObject* object, Property::Index* index, Property::Value* value );
-
-
- /**
- * @brief Callback to get the value of an event-thread only property.
- *
- * @param[in] object The object whose property value is required.
- * @param[in] index The index of the property required.
- * @return The current value of the property for the object specified.
- * @see PropertyRegistration.
- */
- typedef Property::Value* (*GetPropertyFunction)( BaseObject* object, Property::Index* index );
-}
+/**
+ * @brief Call back used to create an instance of the associated object type
+ *
+ * @param[in] typeName The type name of the object to be created.
+ * @return Pointer to a BaseHandle
+ */
+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.
+ * @param[in] propertyName The name of the property required.
+ * @param[in] value The new value of the property for the object specified.
+ * @see PropertyRegistration.
+ */
+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.
+ * @param[in] propertyName The name of the property required.
+ * @return The current value of the property for the object specified.
+ * @see PropertyRegistration.
+ */
+using GetPropertyFunction = Property::Value *(*)( BaseObject *, const char *const );
+}
} // namespace Dali
-#endif // __DALI_CSHARP_INFO_H__
+#endif // DALI_CSHARP_TYPE_INFO_H