MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / GetGVariantTuple

Method GetGVariantTuple

src/events/log.cpp:126–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125
126GVariant *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
147GVariant *Log::GetGVariantDict() const

Callers 10

LogMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
test2Function · 0.45
test2_with_session_tokenFunction · 0.45
SendMethod · 0.45
LastLogEventMethod · 0.45
SendMethod · 0.45
LastStatusChangeMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by 5

TESTFunction · 0.36
TESTFunction · 0.36
test2Function · 0.36
test2_with_session_tokenFunction · 0.36