#include "theme_plugin/theme_parser.h"
#include <json/json.h>
+#include <sys/types.h>
#include <fstream>
#include <streambuf>
namespace plugin {
loader::ThemeInfo ThemeParser::Inflate(const std::string id,
- const std::string pkgid) {
+ const std::string pkgid, uid_t uid) {
Json::CharReaderBuilder rbuilder;
rbuilder["collectComments"] = false;
// FIXME: this parser should parse more theme information.
ThemeInfoBuilder builder("testid");
builder.PutString("pkgid", pkgid).
+ PutString("uid", std::to_string(uid)).
PutString("version", root["version"].asString()).
PutString("tool_version", root["tool_version"].asString()).
PutString("title", root["header"]["title"].asString()).