Purge underscored header file barriers
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / scripting / script-plugin.h
index 428d82f..54b26ae 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_SCRIPT_PLUGIN_H__
-#define __DALI_SCRIPT_PLUGIN_H__
+#ifndef DALI_SCRIPT_PLUGIN_H
+#define DALI_SCRIPT_PLUGIN_H
 
 /*
- * Copyright (c) 2015 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.
@@ -18,7 +18,7 @@
  *
  */
 
-#include <dali/public-api/common/dali-common.h>
+#include <dali-toolkit/public-api/dali-toolkit-common.h>
 #include <string>
 
 namespace Dali
@@ -34,7 +34,7 @@ namespace Toolkit
  * CreateScriptPlugin()  // returns a pointer to a ScriptPlugin object
  * DestroyScriptPlugin() // destroys the plugin
  */
-class DALI_IMPORT_API ScriptPlugin
+class DALI_TOOLKIT_API ScriptPlugin
 {
 public:
 
@@ -66,15 +66,18 @@ 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
 
@@ -82,4 +85,4 @@ public:
 
 } // namespace Dali
 
-#endif // __DALI_SCRIPT_PLUGIN_H__
+#endif // DALI_SCRIPT_PLUGIN_H