X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fscripting%2Fscript-plugin.h;h=54b26aee6c6e5dc876616f2f97eb6f3712c65c45;hp=428d82f24503c9328875d5081e6c24b9e657e39b;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=1c5674a11a51310ee689d6daf4e6b7d94dec607e diff --git a/dali-toolkit/devel-api/scripting/script-plugin.h b/dali-toolkit/devel-api/scripting/script-plugin.h index 428d82f..54b26ae 100644 --- a/dali-toolkit/devel-api/scripting/script-plugin.h +++ b/dali-toolkit/devel-api/scripting/script-plugin.h @@ -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 +#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 @@ -82,4 +85,4 @@ public: } // namespace Dali -#endif // __DALI_SCRIPT_PLUGIN_H__ +#endif // DALI_SCRIPT_PLUGIN_H