X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fbuilder%2Fbase64-encoding.h;h=c7067ed333d6c967c1f3f3debbe5ec41e1df2bf3;hb=06cd3bf8b892c26f369aae331b16fba1547ed823;hp=c436c54fbe39246d126b40846afb4436f8840a02;hpb=1d82abb8a1a514ce0af63004706135fb7883f89b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/builder/base64-encoding.h b/dali-toolkit/devel-api/builder/base64-encoding.h index c436c54..c7067ed 100644 --- a/dali-toolkit/devel-api/builder/base64-encoding.h +++ b/dali-toolkit/devel-api/builder/base64-encoding.h @@ -22,6 +22,9 @@ #include #include +// INTERNAL INCLUDES +#include + namespace Dali { namespace Toolkit @@ -37,7 +40,20 @@ namespace Toolkit * @param[out] outputData The output data block * @return True if a data block was decoded successfully. */ -bool DecodeBase64PropertyData(const Property::Value& value, std::vector& outputData); +DALI_TOOLKIT_API bool DecodeBase64PropertyData(const Property::Value& value, std::vector& outputData); + +/** + * @brief Parses a Property::STRING or Property::ARRAY of STRINGS to + * retrieve an array of uint8_t data. + * + * Data can be encoded using the base64 encoding scheme to allow it to be used + * in JSON (The property system maps to JSON types). + * + * @param[in] value The property value to decode + * @param[out] outputData The output data block + * @return True if a data block was decoded successfully. + */ +DALI_TOOLKIT_API bool DecodeBase64PropertyData(const Property::Value& value, std::vector& outputData); /** * @brief Convert a block of uint32_t data into a Property::STRING or ARRAY of STRINGs @@ -46,7 +62,7 @@ bool DecodeBase64PropertyData(const Property::Value& value, std::vector& inputData); +DALI_TOOLKIT_API void EncodeBase64PropertyData(Property::Value& value, const std::vector& inputData); } // namespace Toolkit