mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-17 17:33:21 +08:00
[fix] avoid X11 macro conflict in announcement requests
This commit is contained in:
@@ -142,7 +142,7 @@ void AnnouncementInbox::Fail() {
|
||||
state_.failed = true;
|
||||
++state_.version;
|
||||
}
|
||||
nlohmann::json AnnouncementInbox::NextRequest(
|
||||
nlohmann::json AnnouncementInbox::TakePendingRequest(
|
||||
std::chrono::steady_clock::time_point now) {
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (!connected_ || scope_.empty()) return nullptr;
|
||||
|
||||
@@ -35,7 +35,7 @@ class AnnouncementInbox {
|
||||
void SetConnected(bool connected);
|
||||
void Refresh(int offset = -1);
|
||||
bool Read(int64_t id, int64_t revision);
|
||||
nlohmann::json NextRequest(std::chrono::steady_clock::time_point now =
|
||||
nlohmann::json TakePendingRequest(std::chrono::steady_clock::time_point now =
|
||||
std::chrono::steady_clock::now());
|
||||
void Failed(const std::string& request_id);
|
||||
void Receive(const nlohmann::json& message);
|
||||
@@ -63,4 +63,4 @@ class AnnouncementInbox {
|
||||
};
|
||||
} // namespace crossdesk
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user