| 124 | |
| 125 | |
| 126 | GVariant *Log::GetGVariantTuple() const |
| 127 | { |
| 128 | if (Format::SESSION_TOKEN == format |
| 129 | || (Format::AUTO == format && !session_token.empty())) |
| 130 | { |
| 131 | return g_variant_new("(uuss)", |
| 132 | static_cast<uint32_t>(group), |
| 133 | static_cast<uint32_t>(category), |
| 134 | session_token.c_str(), |
| 135 | message.c_str()); |
| 136 | } |
| 137 | else |
| 138 | { |
| 139 | return g_variant_new("(uus)", |
| 140 | static_cast<uint32_t>(group), |
| 141 | static_cast<uint32_t>(category), |
| 142 | message.c_str()); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | |
| 147 | GVariant *Log::GetGVariantDict() const |