X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fscripting%2Fscript-plugin.h;h=837a5e329506f88f6d7c5b609a5480a9b89df472;hb=653beaaac0b661428036675d3e3bb1adbb8b5b1c;hp=428d82f24503c9328875d5081e6c24b9e657e39b;hpb=c3f7ea6cb0c0b75c2276193aff88b5c7a679a2d5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/scripting/script-plugin.h b/dali-toolkit/devel-api/scripting/script-plugin.h index 428d82f..837a5e3 100644 --- a/dali-toolkit/devel-api/scripting/script-plugin.h +++ b/dali-toolkit/devel-api/scripting/script-plugin.h @@ -2,7 +2,7 @@ #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. @@ -18,7 +18,7 @@ * */ -#include +#include #include 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