#define __DALI_SCRIPT_PLUGIN_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.
*
*/
-#include <dali/public-api/common/dali-common.h>
+#include <dali-toolkit/public-api/dali-toolkit-common.h>
#include <string>
namespace Dali
* CreateScriptPlugin() // returns a pointer to a ScriptPlugin object
* DestroyScriptPlugin() // destroys the plugin
*/
-class DALI_IMPORT_API ScriptPlugin
+class DALI_TOOLKIT_API ScriptPlugin
{
public:
* Exec buffer contents as a script
* @param buffer script file contents
* @param filename a nominal name for the buffer contents.
- * (NB filename extension may be used to disambiguate script language)
+ * filename extension may be used to disambiguate script language
+ * @return true on success, false on failure
+ *
*/
- virtual void ExecuteBuffer(const std::string& buffer, const std::string& filename) = 0;
+ virtual bool ExecuteBuffer(const std::string& buffer, const std::string& filename) = 0;
/**
* Exec file as a script
* @param filename the filename to read and execute
+ * @return true on success, false on failure
*/
- virtual void ExecuteFile(const std::string& filename) = 0;
+ virtual bool ExecuteFile(const std::string& filename) = 0;
}; // class ScriptPlugin