rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / mtxclient / patches / version.patch
blob517c4b458f394b97865b763a1f2489383cc35e92
1 diff -Nru mtxclient-0.9.2.orig/lib/structs/events/voip.cpp mtxclient-0.9.2/lib/structs/events/voip.cpp
2 --- mtxclient-0.9.2.orig/lib/structs/events/voip.cpp 2023-02-20 01:56:06.000000000 +0100
3 +++ mtxclient-0.9.2/lib/structs/events/voip.cpp 2023-10-07 14:59:43.056218917 +0200
4 @@ -8,7 +8,7 @@
6 namespace {
7 std::string
8 -version(const json &obj)
9 +m_version(const json &obj)
11 auto v = obj.at("version");
12 return v.is_number() ? "0" : v.get<std::string>();
13 @@ -53,7 +53,7 @@
15 content.call_id = obj.at("call_id").get<std::string>();
16 content.offer = obj.at("offer").get<RTCSessionDescriptionInit>();
17 - content.version = version(obj);
18 + content.version = m_version(obj);
19 content.lifetime = obj.at("lifetime").get<uint32_t>();
20 if (content.version != "0") {
21 content.party_id = obj.at("party_id").get<std::string>();
22 @@ -100,7 +100,7 @@
24 content.call_id = obj.at("call_id").get<std::string>();
25 content.candidates = obj.at("candidates").get<std::vector<CallCandidates::Candidate>>();
26 - content.version = version(obj);
27 + content.version = m_version(obj);
28 if (content.version != "0") {
29 content.party_id = obj.at("party_id").get<std::string>();
31 @@ -123,7 +123,7 @@
33 content.call_id = obj.at("call_id").get<std::string>();
34 content.answer = obj.at("answer").get<RTCSessionDescriptionInit>();
35 - content.version = version(obj);
36 + content.version = m_version(obj);
37 if (content.version != "0") {
38 content.party_id = obj.at("party_id").get<std::string>();
40 @@ -145,7 +145,7 @@
41 from_json(const json &obj, CallHangUp &content)
43 content.call_id = obj.at("call_id").get<std::string>();
44 - content.version = version(obj);
45 + content.version = m_version(obj);
46 if (content.version != "0") {
47 content.party_id = obj.at("party_id").get<std::string>();
49 @@ -198,7 +198,7 @@
50 from_json(const json &obj, CallSelectAnswer &content)
52 content.call_id = obj.at("call_id").get<std::string>();
53 - content.version = version(obj);
54 + content.version = m_version(obj);
55 content.party_id = obj.at("party_id").get<std::string>();
56 content.selected_party_id = obj.at("selected_party_id").get<std::string>();
58 @@ -217,7 +217,7 @@
59 from_json(const json &obj, CallReject &content)
61 content.call_id = obj.at("call_id").get<std::string>();
62 - content.version = version(obj);
63 + content.version = m_version(obj);
64 content.party_id = obj.at("party_id").get<std::string>();