[fix] avoid X11 macro conflict in announcement requests

This commit is contained in:
dijunkun
2026-09-29 14:01:46 +08:00
parent 2d49024bd6
commit bc8dbcbf68
3 changed files with 4 additions and 4 deletions
@@ -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